Skip to content

Commit

Permalink
feat: upgrade to Django 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairshakoorarbisoft committed Jul 17, 2023
1 parent 630cd2f commit 7f9a062
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, docs, pii_check, django32, django40]
toxenv: [quality, docs, pii_check, django32, django42]

steps:
- uses: actions/checkout@v3
Expand All @@ -37,7 +37,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django32'
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v3
with:
flags: unittests
Expand Down
4 changes: 1 addition & 3 deletions event_routing_backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
Various backends for receiving edX LMS events..
"""

__version__ = '5.5.1'

default_app_config = 'event_routing_backends.apps.EventRoutingBackendsConfig' # pylint: disable=invalid-name
__version__ = '5.5.0'
4 changes: 1 addition & 3 deletions event_routing_backends/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from event_routing_backends.models import RouterConfiguration


@admin.register(RouterConfiguration)
class RouterConfigurationAdmin(KeyedConfigurationModelAdmin):
"""
Admin model class for RouterConfiguration model.
Expand All @@ -20,6 +21,3 @@ def get_displayable_field_names(self):
Get the list display.
"""
return ['backend_name', 'enabled', 'route_url', 'configurations']


admin.site.register(RouterConfiguration, RouterConfigurationAdmin)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def is_requirement(line):
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: English',
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{32,40} quality, docs, pii_check
envlist = py38-django{32,42}, quality, docs, pii_check

[doc8]
ignore = D001
Expand Down Expand Up @@ -36,7 +36,7 @@ norecursedirs = .* docs requirements site-packages
[testenv]
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django42: Django>=4.2,<4.3
-r{toxinidir}/requirements/test.txt
commands =
pytest {posargs}
Expand All @@ -45,7 +45,7 @@ commands =
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}
whitelist_externals =
allowlist_externals =
make
rm
deps =
Expand All @@ -63,7 +63,7 @@ commands =
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = .
whitelist_externals =
allowlist_externals =
make
rm
touch
Expand Down

0 comments on commit 7f9a062

Please sign in to comment.