Skip to content

Commit 141da28

Browse files
authored
Update supported versions of Python, Django, Flask (#69)
Update support to the currently supported versions: * Python 3.7 to 3.10 * Django 3.2 and 4.0 * Flask 0.12, 1.0, 1.1, 2.0, and 2.1 * Sanic 20 This drops: * Python 3.6 * Flask 0.11 * Django 2.2, 3.0, and 3.1 * Sanic 19 This adds: * Python 3.10 * Flask 1.0, 2.0, and 2.1 * Django 3.2 It also: * Cleans up some lingering Python 2.7 code * Update Python target for Black, re-formats, fixes linting * Narrows requirements to fix Flask 0.12, 1.0 tests
1 parent 5e30d69 commit 141da28

21 files changed

Lines changed: 46 additions & 66 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
python-version: ['3.6', '3.7', '3.8', '3.9']
12+
python-version: ['3.7', '3.8', '3.9', '3.10']
1313

1414
# Service containers to run with `container-job`
1515
services:

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ recursive-include docs *
22
recursive-include tests *
33
include pytest.ini AUTHORS.rst CODE_OF_CONDUCT.md pyproject.toml LICENSE README.rst tox.ini .coveragerc .isort.cfg
44
prune docs/_build
5-
prune *.pyc
5+
global-exclude *.pyc
66
prune __pycache__

docs/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
master_doc = "index"
6060

6161
# General information about the project.
62-
project = u"python-dockerflow"
63-
copyright = u"2016, Mozilla Foundation"
64-
author = u"Mozilla Foundation"
62+
project = "python-dockerflow"
63+
copyright = "2016, Mozilla Foundation"
64+
author = "Mozilla Foundation"
6565

6666
# The version info for the project you're documenting, acts as replacement for
6767
# |version| and |release|, also used in various other places throughout the
@@ -270,8 +270,8 @@
270270
(
271271
master_doc,
272272
"python-dockerflow.tex",
273-
u"python-dockerflow Documentation",
274-
u"Mozilla Foundation",
273+
"python-dockerflow Documentation",
274+
"Mozilla Foundation",
275275
"manual",
276276
)
277277
]
@@ -314,7 +314,7 @@
314314
# One entry per manual page. List of tuples
315315
# (source start file, name, description, authors, manual section).
316316
man_pages = [
317-
(master_doc, "python-dockerflow", u"python-dockerflow Documentation", [author], 1)
317+
(master_doc, "python-dockerflow", "python-dockerflow Documentation", [author], 1)
318318
]
319319

320320
# If true, show URL addresses after external links.
@@ -331,7 +331,7 @@
331331
(
332332
master_doc,
333333
"python-dockerflow",
334-
u"python-dockerflow Documentation",
334+
"python-dockerflow Documentation",
335335
author,
336336
"python-dockerflow",
337337
"One line description of project.",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.black]
22
line-length = 88
3-
target-version = ['py27', 'py36', 'py37']
3+
target-version = ['py37', 'py38', 'py39', 'py310']
44
include = '\.pyi?$'
55
exclude = '''
66
/(

setup.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,18 @@ def read(*parts):
2727
"Development Status :: 5 - Production/Stable",
2828
"Environment :: Web Environment :: Mozilla",
2929
"Framework :: Django",
30-
"Framework :: Django :: 2.2",
31-
"Framework :: Django :: 3.0",
32-
"Framework :: Django :: 3.1",
30+
"Framework :: Django :: 3.2",
31+
"Framework :: Django :: 4.0",
3332
"Framework :: Flask",
3433
"Intended Audience :: Developers",
3534
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
3635
"Programming Language :: Python",
3736
"Programming Language :: Python :: 3",
3837
"Programming Language :: Python :: 3 :: Only",
39-
"Programming Language :: Python :: 3.6",
4038
"Programming Language :: Python :: 3.7",
4139
"Programming Language :: Python :: 3.8",
4240
"Programming Language :: Python :: 3.9",
41+
"Programming Language :: Python :: 3.10",
4342
"Topic :: Internet :: WWW/HTTP",
4443
],
4544
extras_require={
@@ -48,5 +47,5 @@ def read(*parts):
4847
"sanic": ["sanic"],
4948
},
5049
zip_safe=False,
51-
python_requires='>=3.6,<4',
50+
python_requires=">=3.7,<4",
5251
)

src/dockerflow/flask/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(
108108
silenced_checks=None,
109109
version_path=None,
110110
*args,
111-
**kwargs
111+
**kwargs,
112112
):
113113
# The Flask blueprint to add the Dockerflow signal callbacks and views
114114
self._blueprint = flask.Blueprint("dockerflow", "dockerflow.flask.app")

src/dockerflow/sanic/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(
8282
silenced_checks=None,
8383
version_path=".",
8484
*args,
85-
**kwargs
85+
**kwargs,
8686
):
8787

8888
# The Dockerflow specific logger to be used by internals of this

tests/constraints/django-2.2.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/constraints/django-3.0.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/constraints/django-3.1.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)