Skip to content

Commit c19d649

Browse files
committed
Update CI and supported version
1 parent cb58a01 commit c19d649

File tree

12 files changed

+197
-192
lines changed

12 files changed

+197
-192
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

.pylintrc

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

.travis.yml

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

CHANGELOG.rst

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

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

1115
django-fsm 2.8.1 2022-08-15
1216
~~~~~~~~~~~~~~~~~~~~~~~~~~~

LICENSE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
copyright (c) 2010 Mikhail Podgurskiy
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2010 Mikhail Podgurskiy
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy
46
of this software and associated documentation files (the "Software"), to deal

django_fsm/management/commands/graph_transitions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
from django.core.management.base import BaseCommand
66
try:
7-
from django.utils.encoding import force_text
7+
from django.utils.encoding import force_str
88
_requires_system_checks = True
99
except ImportError: # Django >= 4.0
10-
from django.utils.encoding import force_str as force_text
10+
from django.utils.encoding import force_str
1111
from django.core.management.base import ALL_CHECKS
1212
_requires_system_checks = ALL_CHECKS
1313

@@ -41,7 +41,7 @@ def node_name(field, state):
4141

4242
def node_label(field, state):
4343
if type(state) == int or (type(state) == bool and hasattr(field, "choices")):
44-
return force_text(dict(field.choices).get(state))
44+
return force_str(dict(field.choices).get(state))
4545
else:
4646
return state
4747

requirements.txt

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
django>=1.6
1+
asgiref==3.7.2 ; python_version >= "3.8" and python_version < "4.0" \
2+
--hash=sha256:89b2ef2247e3b562a16eef663bc0e2e703ec6468e2fa8a5cd61cd449786d4f6e \
3+
--hash=sha256:9e0ce3aa93a819ba5b45120216b23878cf6e8525eb3848653452b4192b92afed
4+
backports-zoneinfo==0.2.1 ; python_version >= "3.8" and python_version < "3.9" \
5+
--hash=sha256:17746bd546106fa389c51dbea67c8b7c8f0d14b5526a579ca6ccf5ed72c526cf \
6+
--hash=sha256:1b13e654a55cd45672cb54ed12148cd33628f672548f373963b0bff67b217328 \
7+
--hash=sha256:1c5742112073a563c81f786e77514969acb58649bcdf6cdf0b4ed31a348d4546 \
8+
--hash=sha256:4a0f800587060bf8880f954dbef70de6c11bbe59c673c3d818921f042f9954a6 \
9+
--hash=sha256:5c144945a7752ca544b4b78c8c41544cdfaf9786f25fe5ffb10e838e19a27570 \
10+
--hash=sha256:7b0a64cda4145548fed9efc10322770f929b944ce5cee6c0dfe0c87bf4c0c8c9 \
11+
--hash=sha256:8439c030a11780786a2002261569bdf362264f605dfa4d65090b64b05c9f79a7 \
12+
--hash=sha256:8961c0f32cd0336fb8e8ead11a1f8cd99ec07145ec2931122faaac1c8f7fd987 \
13+
--hash=sha256:89a48c0d158a3cc3f654da4c2de1ceba85263fafb861b98b59040a5086259722 \
14+
--hash=sha256:a76b38c52400b762e48131494ba26be363491ac4f9a04c1b7e92483d169f6582 \
15+
--hash=sha256:da6013fd84a690242c310d77ddb8441a559e9cb3d3d59ebac9aca1a57b2e18bc \
16+
--hash=sha256:e55b384612d93be96506932a786bbcde5a2db7a9e6a4bb4bffe8b733f5b9036b \
17+
--hash=sha256:e81b76cace8eda1fca50e345242ba977f9be6ae3945af8d46326d776b4cf78d1 \
18+
--hash=sha256:e8236383a20872c0cdf5a62b554b27538db7fa1bbec52429d8d106effbaeca08 \
19+
--hash=sha256:f04e857b59d9d1ccc39ce2da1021d196e47234873820cbeaad210724b1ee28ac \
20+
--hash=sha256:fadbfe37f74051d024037f223b8e001611eac868b5c5b06144ef4d8b799862f2
21+
django==4.2.6 ; python_version >= "3.8" and python_version < "4.0" \
22+
--hash=sha256:08f41f468b63335aea0d904c5729e0250300f6a1907bf293a65499496cdbc68f \
23+
--hash=sha256:a64d2487cdb00ad7461434320ccc38e60af9c404773a2f95ab0093b4453a3215
24+
sqlparse==0.4.4 ; python_version >= "3.8" and python_version < "4.0" \
25+
--hash=sha256:5430a4fe2ac7d0f93e66f1efc6e1338a41884b7ddf2a350cedd20ccc4d9d28f3 \
26+
--hash=sha256:d446183e84b8349fa3061f0fe7f06ca94ba65b426946ffebe6e3e8295332420c
27+
typing-extensions==4.8.0 ; python_version >= "3.8" and python_version < "3.11" \
28+
--hash=sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0 \
29+
--hash=sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef
30+
tzdata==2023.3 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32" \
31+
--hash=sha256:11ef1e08e54acb0d4f95bdb1be05da659673de4acbd21bf9c69e94cc5e907a3a \
32+
--hash=sha256:7e65763eef3120314099b6939b5546db7adce1e7d6f2e179e3df563c70511eda

setup.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,17 @@
2626
'License :: OSI Approved :: MIT License',
2727
'Operating System :: OS Independent',
2828
"Framework :: Django",
29-
"Framework :: Django :: 1.6",
30-
"Framework :: Django :: 1.8",
31-
"Framework :: Django :: 1.9",
32-
"Framework :: Django :: 1.10",
33-
"Framework :: Django :: 1.11",
34-
"Framework :: Django :: 2.0",
35-
"Framework :: Django :: 2.1",
36-
"Framework :: Django :: 2.2",
37-
"Framework :: Django :: 3.1",
3829
"Framework :: Django :: 3.2",
39-
"Framework :: Django :: 4.0",
4030
"Framework :: Django :: 4.1",
4131
"Framework :: Django :: 4.2",
32+
"Framework :: Django :: 5.0",
4233
'Programming Language :: Python',
4334
'Programming Language :: Python :: 3',
44-
'Programming Language :: Python :: 3.7',
4535
'Programming Language :: Python :: 3.8',
4636
'Programming Language :: Python :: 3.9',
4737
'Programming Language :: Python :: 3.10',
4838
'Programming Language :: Python :: 3.11',
39+
'Programming Language :: Python :: 3.12',
4940
'Topic :: Software Development :: Libraries :: Python Modules',
5041
]
5142
)

0 commit comments

Comments
 (0)