Skip to content

Commit ccecab7

Browse files
committed
Adding support for newer versions of Python and Django
1 parent 7e1c772 commit ccecab7

File tree

7 files changed

+28
-4
lines changed

7 files changed

+28
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ dist/
4040
build/
4141

4242
# Virtualenv
43-
venv/
43+
venv/
44+
.python-version

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: python
22

33
python:
4+
- "3.8"
5+
- "3.7"
46
- "3.6"
57
- "3.5"
68
- "3.4"

docs/tests.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Running the tests
33

44
To run the tests against configured environments:
55

6+
* Install pyenv and add all of the supported python versions there
7+
* Add all of the version to your locals `pyenv local system 3.7.9 3.6.12 3.5.10` for example
8+
* Install the development dependencies in `requirements_dev.txt`
9+
* Run the tests with tox
10+
611
::
712

813
tox

menu_generator/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ def clean_app_config(app_path):
3232
return new_app
3333
else: # pragma: no cover
3434
raise ImproperlyConfigured(
35-
"The application {0} is not in the configured apps or does" +
36-
"not have the pattern app.apps.AppConfig".format(app_path)
35+
f"The application {app_path} is not in the configured apps or does" +
36+
"not have the pattern app.apps.AppConfig"
3737
)

requirements_dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tox
2+
tox-pyenv
3+
coverage
4+
flake8

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,18 @@
2525
"Programming Language :: Python :: 3.4",
2626
"Programming Language :: Python :: 3.5",
2727
"Programming Language :: Python :: 3.6",
28+
"Programming Language :: Python :: 3.7",
29+
"Programming Language :: Python :: 3.8",
2830
"Framework :: Django",
2931
"Framework :: Django :: 1.8",
3032
"Framework :: Django :: 1.9",
3133
"Framework :: Django :: 1.10",
3234
"Framework :: Django :: 1.11",
35+
"Framework :: Django :: 2.0",
36+
"Framework :: Django :: 2.1",
37+
"Framework :: Django :: 2.2",
38+
"Framework :: Django :: 3.0",
39+
"Framework :: Django :: 3.1",
3340
'Topic :: Utilities'
3441
]
3542

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# content of: tox.ini , put in same dir as setup.py
22
[tox]
3-
envlist = py34,py35,py36
3+
envlist =
4+
py34-django{18,19,110,111,20,21,22,30,31},
5+
py35-django{18,19,110,111,20,21,22,30,31},
6+
py36-django{18,19,110,111,20,21,22,30,31},
7+
py37-django{18,19,110,111,20,21,22,30,31},
8+
py38-django{18,19,110,111,20,21,22,30,31}
49
[testenv]
510
deps=django
611
coverage

0 commit comments

Comments
 (0)