Skip to content

Commit e13f498

Browse files
authored
Merge pull request #196 from openedx/jenkins/cleanup-python-code-ea294dc
chore: Post Django32 Cleanup
2 parents ea294dc + 8eaf163 commit e13f498

File tree

5 files changed

+47
-47
lines changed

5 files changed

+47
-47
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
matrix:
1717
os: [ubuntu-20.04]
1818
python-version: ['3.8']
19-
toxenv: [django22-drflatest, quality, docs, django30-drflatest,
20-
django31-drflatest, django32-drflatest]
19+
toxenv: [quality, docs, django32-drflatest, django40-drflatest]
2120
steps:
2221
- uses: actions/checkout@v1
2322
- name: setup python
@@ -37,7 +36,7 @@ jobs:
3736
run: tox
3837

3938
- name: Run Coverage
40-
if: matrix.python-version == '3.8' && matrix.toxenv=='django22-drflatest'
39+
if: matrix.python-version == '3.8' && matrix.toxenv=='django32-drflatest'
4140
uses: codecov/codecov-action@v1
4241
with:
4342
flags: unittests

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ Change Log
1414
Unreleased
1515
~~~~~~~~~~
1616

17+
[2.3.0] - 2022-01-19
18+
~~~~~~~~~~~~~~~~~~~~
19+
* Added Support for Django40 in CI
20+
* Dropped Support for Django22, 30, 31
21+
1722
[2.2.2] - 2021-20-12
1823
~~~~~~~~~~~~~~~~~~~~
1924
* Updated dependencies after removing unnecessary constraint on edx-django-utils, so the constraint will no longer be advertised.

config_models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Configuration models for Django allowing config management with auditing.
33
"""
44

5-
__version__ = '2.2.2'
5+
__version__ = '2.3.0'
66

77
default_app_config = 'config_models.apps.ConfigModelsConfig' # pylint: disable=invalid-name

setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,8 @@ def is_requirement(line):
117117
classifiers=[
118118
'Development Status :: 3 - Alpha',
119119
'Framework :: Django',
120-
'Framework :: Django :: 2.2',
121-
'Framework :: Django :: 3.0',
122-
'Framework :: Django :: 3.1',
123120
'Framework :: Django :: 3.2',
121+
'Framework :: Django :: 4.0',
124122
'Intended Audience :: Developers',
125123
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
126124
'Natural Language :: English',

tox.ini

+38-40
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38-django{22,30,31,32}-drf{latest},quality,docs
2+
envlist = py38-django{32,40}-drf{latest},quality,docs
33

44
[pycodestyle]
55
exclude = .git,.tox,migrations
@@ -14,47 +14,45 @@ addopts = --cov config_models --cov-report term-missing
1414
norecursedirs = .* docs requirements
1515

1616
[testenv]
17-
setenv =
18-
PYTHONPATH = {toxinidir}/mock_apps
19-
DJANGO_SETTINGS_MODULE = test_settings
20-
deps =
21-
django22: Django>=2.2,<2.3
22-
django30: Django>=3.0,<3.1
23-
django31: Django>=3.1,<3.2
24-
django32: Django>=3.2,<3.3
25-
drflatest: djangorestframework
26-
-r{toxinidir}/requirements/test.txt
27-
commands =
28-
python -Wd -m pytest {posargs}
17+
setenv =
18+
PYTHONPATH = {toxinidir}/mock_apps
19+
DJANGO_SETTINGS_MODULE = test_settings
20+
deps =
21+
django32: Django>=3.2,<4.0
22+
django40: Django>=4.0,<4.1
23+
drflatest: djangorestframework
24+
-r{toxinidir}/requirements/test.txt
25+
commands =
26+
python -Wd -m pytest {posargs}
2927

3028
[testenv:docs]
31-
setenv =
32-
DJANGO_SETTINGS_MODULE = test_settings
33-
PYTHONPATH = {toxinidir}/:{toxinidir}/mock_apps
34-
whitelist_externals =
35-
make
36-
rm
37-
deps =
38-
-r{toxinidir}/requirements/doc.txt
39-
commands =
40-
rm -f docs/config_models.rst
41-
rm -f docs/modules.rst
42-
sphinx-apidoc -o docs/ config_models
43-
make -C docs clean
44-
make -C docs html
45-
python setup.py bdist_wheel
46-
twine check dist/*
29+
setenv =
30+
DJANGO_SETTINGS_MODULE = test_settings
31+
PYTHONPATH = {toxinidir}/:{toxinidir}/mock_apps
32+
whitelist_externals =
33+
make
34+
rm
35+
deps =
36+
-r{toxinidir}/requirements/doc.txt
37+
commands =
38+
rm -f docs/config_models.rst
39+
rm -f docs/modules.rst
40+
sphinx-apidoc -o docs/ config_models
41+
make -C docs clean
42+
make -C docs html
43+
python setup.py bdist_wheel
44+
twine check dist/*
4745

4846
[testenv:quality]
49-
whitelist_externals =
50-
make
51-
rm
52-
touch
53-
deps =
54-
-r{toxinidir}/requirements/quality.txt
55-
commands =
56-
pylint config_models
57-
pylint tests
58-
pycodestyle config_models tests
59-
make help
47+
whitelist_externals =
48+
make
49+
rm
50+
touch
51+
deps =
52+
-r{toxinidir}/requirements/quality.txt
53+
commands =
54+
pylint config_models
55+
pylint tests
56+
pycodestyle config_models tests
57+
make help
6058

0 commit comments

Comments
 (0)