From 4665adeea5af26630593cde773f1025d84941e1c Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Wed, 14 Feb 2024 00:18:49 +0500 Subject: [PATCH] feat: Add 3.11 testing. Update classifiers, changelog and bump the version. --- .github/workflows/ci.yml | 2 +- CHANGELOG.rst | 7 +++++++ edx_django_utils/__init__.py | 2 +- requirements/doc.in | 1 + requirements/doc.txt | 2 ++ requirements/quality.in | 1 + setup.py | 1 + tox.ini | 29 +++++++++++++++-------------- 8 files changed, 29 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70954c89..e6ef247e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8', '3.12'] + python-version: ['3.8', '3.11', '3.12'] toxenv: [docs, quality, django42] steps: diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 13811a92..b0744c27 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -11,6 +11,13 @@ Change Log .. There should always be an "Unreleased" section for changes pending release. + +[5.12.0] - 2024-03-29 +--------------------- +Added +~~~~~ +* Added support for ``Python 3.11`` + [5.11.0] - 2024-03-06 --------------------- Added diff --git a/edx_django_utils/__init__.py b/edx_django_utils/__init__.py index ae56e85f..dba7a3da 100644 --- a/edx_django_utils/__init__.py +++ b/edx_django_utils/__init__.py @@ -2,7 +2,7 @@ EdX utilities for Django Application development.. """ -__version__ = "5.11.0" +__version__ = "5.12.0" default_app_config = ( "edx_django_utils.apps.EdxDjangoUtilsConfig" diff --git a/requirements/doc.in b/requirements/doc.in index 65db8348..3ad8d9ab 100644 --- a/requirements/doc.in +++ b/requirements/doc.in @@ -10,3 +10,4 @@ Sphinx # Documentation builder twine factory-boy pytest #Needed? +wheel diff --git a/requirements/doc.txt b/requirements/doc.txt index 0a80748f..a91ba7df 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -243,6 +243,8 @@ urllib3==2.2.1 # via # requests # twine +wheel==0.42.0 + # via -r requirements/doc.in zipp==3.18.1 # via # importlib-metadata diff --git a/requirements/quality.in b/requirements/quality.in index 738b13f9..3e741c49 100644 --- a/requirements/quality.in +++ b/requirements/quality.in @@ -7,3 +7,4 @@ edx-lint # edX pylint rules and plugins isort # to standardize order of imports pycodestyle # PEP 8 compliance validation pydocstyle # PEP 257 compliance validation + diff --git a/setup.py b/setup.py index 89bcf132..fa20891f 100644 --- a/setup.py +++ b/setup.py @@ -133,6 +133,7 @@ def is_requirement(line): 'Natural Language :: English', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', ], ) diff --git a/tox.ini b/tox.ini index 0170ed04..7aa97191 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38, 312}-django{42}, docs, quality +envlist = py{38, 311, 312}-django{42}, docs, quality [doc8] ignore = D000, D001 @@ -36,25 +36,25 @@ addopts = --cov edx_django_utils --cov-report term-missing --cov-report xml norecursedirs = .* docs requirements [testenv] -deps = +deps = setuptools django42: Django>=4.2,<4.3 -r{toxinidir}/requirements/test.txt -commands = +commands = python -Wd -m pytest {posargs} [testenv:docs] -setenv = +setenv = DJANGO_SETTINGS_MODULE = test_settings PYTHONPATH = {toxinidir} -allowlist_externals = +allowlist_externals = make rm -deps = +deps = setuptools wheel -r{toxinidir}/requirements/doc.txt -commands = +commands = doc8 --ignore-path docs/_build README.rst docs rm -f docs/edx_django_utils.rst rm -f docs/modules.rst @@ -64,17 +64,18 @@ commands = twine check dist/* [testenv:quality] -setenv = +setenv = DJANGO_SETTINGS_MODULE = test_settings PYTHONPATH = {toxinidir} -allowlist_externals = +allowlist_externals = make rm touch -deps = +deps = setuptools -r{toxinidir}/requirements/quality.txt -commands = + setuptools +commands = touch tests/__init__.py pylint edx_django_utils tests test_utils manage.py setup.py rm tests/__init__.py @@ -84,9 +85,9 @@ commands = make selfcheck [testenv:isort] -allowlist_externals = +allowlist_externals = make -deps = +deps = -r{toxinidir}/requirements/quality.txt -commands = +commands = isort tests test_utils edx_django_utils manage.py setup.py test_settings.py