Skip to content

Commit e81df93

Browse files
authored
Run tests for Django 4.0 (#72)
1 parent 1868d3d commit e81df93

File tree

6 files changed

+174
-14
lines changed

6 files changed

+174
-14
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
tox_env: py38-django31
2929
- python: "3.8"
3030
tox_env: py38-django32
31+
- python: "3.8"
32+
tox_env: py38-django40
3133
- python: "3.9"
3234
tox_env: py39-django22
3335
- python: "3.9"
@@ -36,8 +38,12 @@ jobs:
3638
tox_env: py39-django31
3739
- python: "3.9"
3840
tox_env: py39-django32
41+
- python: "3.9"
42+
tox_env: py39-django40
3943
- python: "3.10"
4044
tox_env: py310-django32
45+
- python: "3.10"
46+
tox_env: py310-django40
4147
- python: "3.7"
4248
tox_env: checks
4349
name: ${{ matrix.tox_env }}

.gitignore

Lines changed: 160 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,162 @@
1-
*.pyc
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
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
226
*.egg
3-
*.egg-info
4-
/build/
5-
/dist/
6-
/.idea/
7-
.DS_Store
8-
/.coverage
9-
/htmlcov/
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
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+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/#use-with-ide
110+
.pdm.toml
111+
112+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113+
__pypackages__/
114+
115+
# Celery stuff
116+
celerybeat-schedule
117+
celerybeat.pid
118+
119+
# SageMath parsed files
120+
*.sage.py
121+
122+
# Environments
123+
.env
124+
.venv
125+
env/
126+
venv/
127+
ENV/
128+
env.bak/
129+
venv.bak/
130+
131+
# Spyder project settings
132+
.spyderproject
133+
.spyproject
134+
135+
# Rope project settings
136+
.ropeproject
137+
138+
# mkdocs documentation
139+
/site
140+
141+
# mypy
142+
.mypy_cache/
143+
.dmypy.json
144+
dmypy.json
145+
146+
# Pyre type checker
147+
.pyre/
148+
149+
# pytype static type analyzer
150+
.pytype/
151+
152+
# Cython debug symbols
153+
cython_debug/
154+
155+
# PyCharm
156+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158+
# and can be added to the global gitignore or merged into this file. For a more nuclear
159+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160+
#.idea/
161+
10162
migrations/
11-
/.tox/
12-
.mypy_cache

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Dropped support for Django < 2.2
99
- Added support for Django 3.2
1010
- Added support for Python 3.10
11+
- Added support for Django 4.0
1112

1213
## [2.0.2]
1314

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Provides an enumeration Django model field (using `IntegerField`) with reusable
1212
Installation
1313
------------
1414

15-
Currently, [we test](https://github.com/5monkeys/django-enumfield/actions) Django versions 2.2-3.2 and Python versions 3.7-3.10.
15+
Currently, [we test](https://github.com/5monkeys/django-enumfield/actions) Django versions 2.2-4.0 and Python versions 3.7-3.10.
1616

1717
Install `django-enumfield` in your Python environment:
1818

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def fullsplit(path, result=None):
7676
"Programming Language :: Python :: 3",
7777
"Programming Language :: Python :: 3.7",
7878
"Programming Language :: Python :: 3.8",
79+
"Programming Language :: Python :: 3.9",
80+
"Programming Language :: Python :: 3.10",
7981
"Framework :: Django",
8082
"Natural Language :: English",
8183
"Environment :: Web Environment",

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[tox]
22
envlist =
33
py37-django{22,30,31,32}
4-
py38-django{22,30,31,32}
5-
py39-django{22,30,31,32}
6-
py310-django32
4+
py38-django{22,30,31,32,40}
5+
py39-django{22,30,31,32,40}
6+
py310-django{32,40}
77
checks
88

99
[testenv]
@@ -13,6 +13,7 @@ deps=
1313
django30: Django>=3.0b1,<3.1
1414
django31: Django>=3.1,<3.2
1515
django32: Django>=3.2,<4.0
16+
django40: Django>=4.0,<4.1
1617
commands = make test
1718

1819
[testenv:checks]

0 commit comments

Comments
 (0)