Skip to content

Commit

Permalink
feat: add support for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Feb 19, 2024
1 parent 4753ecb commit e424083
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ["3.8"]
python-version: ["3.8", "3.12"]
toxenv:
[
quality,
docs,
pii_check,
django32-celery53,
django42-celery53,
]

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Change Log
Unreleased

* Added support for python 3.12.


[1.0.2] - 2023-06-14
Expand Down
2 changes: 1 addition & 1 deletion bulk_grades/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Support for bulk scoring and grading.
"""

__version__ = '1.0.2'
__version__ = '1.1.0'

default_app_config = 'bulk_grades.apps.BulkGradesConfig' # pylint: disable=invalid-name
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ amqp==5.1.1
# via kombu
asgiref==3.7.2
# via django
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9'
# via
# celery
# kombu
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ astroid==2.15.6
# -r requirements/quality.txt
# pylint
# pylint-celery
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9'
# via
# -r requirements/quality.txt
# backports-zoneinfo
Expand Down
2 changes: 1 addition & 1 deletion requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ babel==2.12.1
# via
# pydata-sphinx-theme
# sphinx
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9'
# via
# -r requirements/test.txt
# backports-zoneinfo
Expand Down
2 changes: 1 addition & 1 deletion requirements/pii_check.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ asgiref==3.7.2
# via
# -r requirements/base.txt
# django
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9'
# via
# -r requirements/base.txt
# backports-zoneinfo
Expand Down
2 changes: 1 addition & 1 deletion requirements/quality.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ astroid==2.15.6
# via
# pylint
# pylint-celery
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9'
# via
# -r requirements/test.txt
# backports-zoneinfo
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ asgiref==3.7.2
# via
# -r requirements/base.txt
# django
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1; python_version < '3.9'
# via
# -r requirements/base.txt
# backports-zoneinfo
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,13 @@ def is_requirement(line):
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: Django',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.12',
],
entry_points={
'lms.djangoapp': [
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38-django{32,42}-celery{53},quality,docs,pii_check
envlist = py{38,312}-django{42}-celery{53},quality,docs,pii_check

[pytest]
DJANGO_SETTINGS_MODULE = test_settings
Expand All @@ -11,7 +11,6 @@ setenv =
PYTHONPATH = {toxinidir}/mock_apps/
deps =
-r{toxinidir}/requirements/test.txt
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
celery53: -r{toxinidir}/requirements/celery53.txt
commands =
Expand All @@ -32,6 +31,7 @@ commands =
rm -f docs/modules.rst
make -C docs clean
make -C docs html
pip install setuptools
python setup.py bdist_wheel
twine check dist/*

Expand All @@ -46,6 +46,7 @@ allowlist_externals =
deps =
-r{toxinidir}/requirements/quality.txt
commands =
pip install setuptools
touch tests/__init__.py
pylint bulk_grades manage.py setup.py
rm tests/__init__.py
Expand Down

0 comments on commit e424083

Please sign in to comment.