Skip to content

Commit 2fc5b51

Browse files
authored
Merge pull request #42 from openedx/jenkins/cleanup-python-code-f1a1997
chore: Post Django32 Cleanup
2 parents 9a84d51 + a6b3d35 commit 2fc5b51

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-20.04]
1818
python-version: ['3.8']
19-
toxenv: [django22, quality, django30, django31, django32]
19+
toxenv: [quality, django32, django40]
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: setup python
@@ -36,7 +36,7 @@ jobs:
3636
run: tox
3737

3838
- name: Run Coverage
39-
if: matrix.python-version == '3.8' && matrix.toxenv=='django22'
39+
if: matrix.python-version == '3.8' && matrix.toxenv=='django32'
4040
uses: codecov/codecov-action@v1
4141
with:
4242
flags: unittests

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Change Log
1111

1212
.. There should always be an "Unreleased" section for changes pending release.
1313
14+
[2.2.0] - 2022-01-20
15+
====================
16+
17+
* Dropped support for django2.2, 3.0, 3.1 and 3.2
18+
* Added Django40 support in CI
1419

1520
[2.1.0] - 2020-07-07
1621
====================

help_tokens/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
from .context_processor import context_processor
66

7-
__version__ = '2.1.0'
7+
__version__ = '2.2.0'
88

99
default_app_config = 'help_tokens.apps.HelpTokensConfig' # pylint: disable=invalid-name

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,8 @@ def is_requirement(line):
118118
classifiers=[
119119
'Development Status :: 5 - Production/Stable',
120120
'Framework :: Django',
121-
'Framework :: Django :: 2.2',
122-
'Framework :: Django :: 3.0',
123-
'Framework :: Django :: 3.1',
124121
'Framework :: Django :: 3.2',
122+
'Framework :: Django :: 4.0',
125123
'Intended Audience :: Developers',
126124
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
127125
'Natural Language :: English',

tox.ini

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38-django{22,30,31,32}, quality
2+
envlist = py38-django{32,40}, quality
33

44
[pycodestyle]
55
exclude = .git,.tox,migrations
@@ -15,32 +15,30 @@ addopts = --cov help_tokens --cov-report term-missing --cov-report xml
1515
norecursedirs = .* requirements
1616

1717
[testenv]
18-
deps =
19-
django22: Django>=2.2,<2.3
20-
django30: Django>=3.0,<3.1
21-
django31: Django>=3.1,<3.2
22-
django32: Django>=3.2,<3.3
23-
-r{toxinidir}/requirements/test.txt
18+
deps =
19+
django32: Django>=3.2,<4.0
20+
django40: Django>=4.0,<4.1
21+
-r{toxinidir}/requirements/test.txt
2422
commands =
25-
python -Wd -m pytest {posargs}
23+
python -Wd -m pytest {posargs}
2624

2725
[testenv:quality]
28-
setenv =
29-
DJANGO_SETTINGS_MODULE = test_settings
26+
setenv =
27+
DJANGO_SETTINGS_MODULE = test_settings
3028
whitelist_externals =
31-
make
32-
rm
33-
touch
29+
make
30+
rm
31+
touch
3432
deps =
35-
-r{toxinidir}/requirements/quality.txt
36-
-r{toxinidir}/requirements/test.txt
33+
-r{toxinidir}/requirements/quality.txt
34+
-r{toxinidir}/requirements/test.txt
3735
commands =
38-
touch tests/__init__.py
39-
pylint help_tokens tests
40-
rm tests/__init__.py
41-
pycodestyle help_tokens tests
42-
pydocstyle help_tokens tests
43-
python setup.py check --restructuredtext --strict
44-
isort --check-only --recursive tests help_tokens manage.py setup.py test_settings.py
45-
make selfcheck
36+
touch tests/__init__.py
37+
pylint help_tokens tests
38+
rm tests/__init__.py
39+
pycodestyle help_tokens tests
40+
pydocstyle help_tokens tests
41+
python setup.py check --restructuredtext --strict
42+
isort --check-only tests help_tokens manage.py setup.py test_settings.py
43+
make selfcheck
4644

0 commit comments

Comments
 (0)