Skip to content

Commit da859b3

Browse files
authored
Update CI and supported version (#9)
1 parent 843429d commit da859b3

File tree

15 files changed

+1193
-521
lines changed

15 files changed

+1193
-521
lines changed

.checkignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python-version: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10']
13+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1414

1515
steps:
1616
- uses: actions/checkout@v1

.gitignore

Lines changed: 130 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,132 @@
1-
*.pyc
2-
dist/
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
311
build/
4-
django_fsm.egg-info/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
542
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
131+
# sqlite
132+
test.db

.pre-commit-config.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
default_language_version:
2-
python: python3.8
3-
python_venv: python3.8 # Optional
2+
python: python3.11
43

54
repos:
65
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.4.0
6+
rev: v4.5.0
87
hooks:
98
- id: check-added-large-files
109
args: ["--maxkb=700"]
@@ -31,8 +30,16 @@ repos:
3130
- id: django-upgrade
3231
args: [--target-version, "3.2"]
3332

34-
# - repo: https://github.com/astral-sh/ruff-pre-commit
35-
# rev: v0.0.291
36-
# hooks:
37-
# - id: ruff-format
38-
# - id: ruff
33+
34+
- repo: https://github.com/python-poetry/poetry
35+
rev: 1.6.1
36+
hooks:
37+
- id: poetry-check
38+
- id: poetry-lock
39+
- id: poetry-export
40+
41+
- repo: https://github.com/astral-sh/ruff-pre-commit
42+
rev: v0.0.291
43+
hooks:
44+
- id: ruff-format
45+
- id: ruff

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
# Changelog
2+
3+
## django-fsm unreleased
4+
5+
- Add support for django 5.0
6+
- Remove support for django < 3.2
7+
- Add support for python 3.12
8+
- Add support for python 3.11
9+
- Drop support for Python < 3.7.
10+
- Enable Github actions for testing
11+
- Add support for django 4.2
12+
- Add support for python 3.11
13+
14+
## django-fsm 2.8.1 2022-08-15
15+
16+
- Improve fix for get_available_FIELD_transition
17+
18+
## django-fsm 2.8.0 2021-11-05
19+
20+
- Fix get_available_FIELD_transition on django\>=3.2
21+
- Fix refresh_from_db for ConcurrentTransitionMixin
22+
23+
## django-fsm 2.7.1 2020-10-13
24+
25+
- Fix warnings on Django 3.1+
26+
27+
## django-fsm 2.7.0 2019-12-03
28+
29+
- Django 3.0 support
30+
- Test on Python 3.8
31+
32+
## django-fsm 2.6.1 2019-04-19
33+
34+
- Update pypi classifiers to latest django/python supported versions
35+
- Several fixes for graph_transition command
36+
37+
## django-fsm 2.6.0 2017-06-08
38+
39+
- Fix django 1.11 compatibility
40+
- Fix TypeError in [graph_transitions]{.title-ref} command when using
41+
django\'s lazy translations
42+
43+
## django-fsm 2.5.0 2017-03-04
44+
45+
- graph_transition command fix for django 1.10
46+
- graph_transition command supports GET_STATE targets
47+
- signal data extended with method args/kwargs and field
48+
- sets allowed to be passed to the transition decorator
49+
50+
## django-fsm 2.4.0 2016-05-14
51+
52+
- graph_transition commnad now works with multiple FSM\'s per model
53+
- Add ability to set target state from transition return value or
54+
callable
55+
56+
## django-fsm 2.3.0 2015-10-15
57+
58+
- Add source state shortcut \'+\' to specify transitions from all
59+
states except the target
60+
- Add object-level permission checks
61+
- Fix translated labels for graph of FSMIntegerField
62+
- Fix multiple signals for several transition decorators
63+
64+
## django-fsm 2.2.1 2015-04-27
65+
66+
- Improved exception message for unmet transition conditions.
67+
- Don\'t send post transition signal in case of no state changes on
68+
exception
69+
- Allow empty string as correct state value
70+
- Improved graphviz fsm visualisation
71+
- Clean django 1.8 warnings
72+
73+
## django-fsm 2.2.0 2014-09-03
74+
75+
- Support for [class
76+
substitution](http://schinckel.net/2013/06/13/django-proxy-model-state-machine/)
77+
to proxy classes depending on the state
78+
- Added ConcurrentTransitionMixin with optimistic locking support
79+
- Default db_index=True for FSMIntegerField removed
80+
- Graph transition code migrated to new graphviz library with python 3
81+
support
82+
- Ability to change state on transition exception
83+
84+
## django-fsm 2.1.0 2014-05-15
85+
86+
- Support for attaching permission checks on model transitions
87+
88+
## django-fsm 2.0.0 2014-03-15
89+
90+
- Backward incompatible release
91+
- All public code import moved directly to django_fsm package
92+
- Correct support for several \@transitions decorator with different
93+
source states and conditions on same method
94+
- save parameter from transition decorator removed
95+
- get_available_FIELD_transitions return Transition data object
96+
instead of tuple
97+
- Models got get_available_FIELD_transitions, even if field specified
98+
as string reference
99+
- New get_all_FIELD_transitions method contributed to class
100+
101+
## django-fsm 1.6.0 2014-03-15
102+
103+
- FSMIntegerField and FSMKeyField support
104+
105+
## django-fsm 1.5.1 2014-01-04
106+
107+
- Ad-hoc support for state fields from proxy and inherited models
108+
109+
## django-fsm 1.5.0 2013-09-17
110+
111+
- Python 3 compatibility
112+
113+
## django-fsm 1.4.0 2011-12-21
114+
115+
- Add graph_transition command for drawing state transition picture
116+
117+
## django-fsm 1.3.0 2011-07-28
118+
119+
- Add direct field modification protection
120+
121+
## django-fsm 1.2.0 2011-03-23
122+
123+
- Add pre_transition and post_transition signals
124+
125+
## django-fsm 1.1.0 2011-02-22
126+
127+
- Add support for transition conditions
128+
- Allow multiple FSMField in one model
129+
- Contribute get_available_FIELD_transitions for model class
130+
131+
## django-fsm 1.0.0 2010-10-12
132+
133+
- Initial public release

CHANGELOG.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ Changelog
44
django-fsm unreleased
55
~~~~~~~~~~~~~~~~~~~~~~~~~~~
66

7+
- Add support for django 5.0
8+
- Remove support for django < 3.2
9+
- Add support for python 3.12
10+
- Add support for python 3.11
711
- Drop support for Python < 3.7.
8-
- add support for django 4.2
9-
- add support for python 3.11
12+
- Enable Github actions for testing
13+
- Add support for django 4.2
14+
- Add support for python 3.11
1015

1116
django-fsm 2.8.1 2022-08-15
1217
~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)