From d11ec931f09bbc906590eafc6a65d18fcca88e65 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Fri, 23 Feb 2024 07:37:43 -0500 Subject: [PATCH 01/14] feat: add python 3.11 and 3.12 support --- .github/workflows/ci.yml | 54 ++++++++++--------- docs/conf.py | 2 +- requirements/ci.txt | 6 +-- requirements/common_constraints.txt | 9 ++++ requirements/constraints.txt | 5 ++ tox.ini | 83 ++++++++++++++--------------- web_fragments/__init__.py | 2 +- 7 files changed, 88 insertions(+), 73 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbc6948..1e98d12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,31 +13,33 @@ jobs: strategy: matrix: os: [ubuntu-20.04] - python-version: ['3.8'] - toxenv: [django32, django42, docs, quality] + python-version: + - '3.8' + - '3.11' + toxenv: [django42, docs, quality] steps: - - uses: actions/checkout@v4 - - name: setup python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install pip - run: pip install -r requirements/pip.txt - - - name: Install Dependencies - run: pip install -r requirements/ci.txt - - - name: Run Tests - env: - TOXENV: ${{ matrix.toxenv }} - run: tox - - - name: Run coverage - if: matrix.python-version == '3.8' && matrix.toxenv == 'django42' - uses: codecov/codecov-action@v3 - with: - flags: unittests - token: ${{ secrets.CODECOV_TOKEN }} - fail_ci_if_error: true + - uses: actions/checkout@v4 + - name: setup python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install pip + run: pip install -r requirements/pip.txt + + - name: Install Dependencies + run: pip install -r requirements/ci.txt + + - name: Run Tests + env: + TOXENV: ${{ matrix.toxenv }} + run: tox + + - name: Run coverage + if: matrix.python-version == '3.8' && matrix.toxenv == 'django42' + uses: codecov/codecov-action@v3 + with: + flags: unittests + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true diff --git a/docs/conf.py b/docs/conf.py index 058a4d3..45f5478 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -46,7 +46,7 @@ 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.ifconfig', - 'sphinxcontrib.napoleon' + 'sphinx.ext.napoleon' ] # A list of warning types to suppress arbitrary warning messages. diff --git a/requirements/ci.txt b/requirements/ci.txt index 0a99169..ed1e0e0 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -12,11 +12,11 @@ colorama==0.4.6 # via tox distlib==0.3.8 # via virtualenv -filelock==3.13.1 +filelock==3.13.3 # via # tox # virtualenv -packaging==23.2 +packaging==24.0 # via # pyproject-api # tox @@ -34,7 +34,7 @@ tomli==2.0.1 # via # pyproject-api # tox -tox==4.13.0 +tox==4.14.2 # via -r requirements/ci.in virtualenv==20.25.1 # via diff --git a/requirements/common_constraints.txt b/requirements/common_constraints.txt index 96cc5db..e3bf8ea 100644 --- a/requirements/common_constraints.txt +++ b/requirements/common_constraints.txt @@ -21,3 +21,12 @@ elasticsearch<7.14.0 # django-simple-history>3.0.0 adds indexing and causes a lot of migrations to be affected django-simple-history==3.0.0 + +# opentelemetry requires version 6.x at the moment: +# https://github.com/open-telemetry/opentelemetry-python/issues/3570 +# Normally this could be added as a constraint in edx-django-utils, where we're +# adding the opentelemetry dependency. However, when we compile pip-tools.txt, +# that uses version 7.x, and then there's no undoing that when compiling base.txt. +# So we need to pin it globally, for now. +# Ticket for unpinning: https://github.com/openedx/edx-lint/issues/407 +importlib-metadata<7 diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 194646a..eedab7d 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -10,3 +10,8 @@ # This file contains all common constraints for edx-repos -c common_constraints.txt + + + +# Temporary to Support the python 3.11 Upgrade +backports.zoneinfo;python_version<"3.9" # Newer versions have zoneinfo available in the standard library diff --git a/tox.ini b/tox.ini index ae42f34..dcc6af7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,53 +1,52 @@ [tox] -envlist = py38-django{32,42}, docs, quality +envlist = py{38, 311}-django{42}, docs, quality [pytest] addopts = --cov web_fragments --cov-report term-missing --cov-report xml [testenv] -deps = - django32: Django>=3.2,<3.3 - django42: Django>=4.2,<4.3 - -r{toxinidir}/requirements/test.txt -setenv = - DJANGO_SETTINGS_MODULE = test_settings -commands = - python -Wd -m pytest {posargs} +deps = + django42: Django>=4.2,<4.3 + -r{toxinidir}/requirements/test.txt +setenv = + DJANGO_SETTINGS_MODULE = test_settings +commands = + python -Wd -m pytest {posargs} [testenv:docs] -setenv = - DJANGO_SETTINGS_MODULE = test_settings - PYTHONPATH = {toxinidir} -allowlist_externals = - make - rm -deps = - -r{toxinidir}/requirements/doc.txt -commands = - doc8 --ignore-path docs/_build README.rst docs - rm -f docs/web_fragments.rst - rm -f docs/modules.rst - make -C docs clean - make -C docs html - python setup.py bdist_wheel - twine check dist/* +setenv = + DJANGO_SETTINGS_MODULE = test_settings + PYTHONPATH = {toxinidir} +allowlist_externals = + make + rm +deps = + -r{toxinidir}/requirements/doc.txt +commands = + doc8 --ignore-path docs/_build README.rst docs + rm -f docs/web_fragments.rst + rm -f docs/modules.rst + make -C docs clean + make -C docs html + python setup.py bdist_wheel + twine check dist/* [testenv:quality] -setenv = - DJANGO_SETTINGS_MODULE = test_settings - PYTHONPATH = {toxinidir} -allowlist_externals = - make - rm - touch -deps = - -r{toxinidir}/requirements/doc.txt - -r{toxinidir}/requirements/quality.txt - -r{toxinidir}/requirements/test.txt -commands = - touch web_fragments/tests/__init__.py - pylint web_fragments - rm web_fragments/tests/__init__.py - isort --check-only web_fragments manage.py setup.py test_settings.py - make help +setenv = + DJANGO_SETTINGS_MODULE = test_settings + PYTHONPATH = {toxinidir} +allowlist_externals = + make + rm + touch +deps = + -r{toxinidir}/requirements/doc.txt + -r{toxinidir}/requirements/quality.txt + -r{toxinidir}/requirements/test.txt +commands = + touch web_fragments/tests/__init__.py + pylint web_fragments + rm web_fragments/tests/__init__.py + isort --check-only web_fragments manage.py setup.py test_settings.py + make help diff --git a/web_fragments/__init__.py b/web_fragments/__init__.py index b6d7ebf..feadaae 100644 --- a/web_fragments/__init__.py +++ b/web_fragments/__init__.py @@ -1,4 +1,4 @@ """ Web fragments. """ -__version__ = '2.1.0' +__version__ = '2.2.0' From 0ea9d927281ecfa46126ee46d2e98134114c256b Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Sun, 31 Mar 2024 19:16:19 +0500 Subject: [PATCH 02/14] feat: Adding python3.11, 3.12 support. --- .github/workflows/ci.yml | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e98d12..8a691a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: python-version: - '3.8' - '3.11' + - '3.12' toxenv: [django42, docs, quality] steps: diff --git a/tox.ini b/tox.ini index dcc6af7..e6019ad 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38, 311}-django{42}, docs, quality +envlist = py{38, 311,312}-django{42}, docs, quality [pytest] addopts = --cov web_fragments --cov-report term-missing --cov-report xml From 83d665ea4c5de01e5fc01fbda2152eb791ab4a20 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Sun, 31 Mar 2024 10:21:21 -0400 Subject: [PATCH 03/14] chore: Updating Python Requirements --- requirements/dev.txt | 47 +++++++++++++++++++++++--------------- requirements/doc.txt | 37 ++++++++++++++++++------------ requirements/pip-tools.txt | 16 +++++++------ requirements/pip.txt | 4 ++-- requirements/quality.txt | 12 ++++++---- requirements/test.txt | 8 +++---- 6 files changed, 73 insertions(+), 51 deletions(-) diff --git a/requirements/dev.txt b/requirements/dev.txt index db21058..499c30a 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -4,14 +4,16 @@ # # make upgrade # -asgiref==3.7.2 +asgiref==3.8.1 # via django astroid==3.1.0 # via # pylint # pylint-celery -backports-zoneinfo==0.2.1 - # via django +backports-zoneinfo==0.2.1 ; python_version < "3.9" + # via + # -c requirements/constraints.txt + # django cachetools==5.3.3 # via tox certifi==2024.2.2 @@ -31,7 +33,7 @@ click==8.1.7 # edx-lint click-log==0.4.0 # via edx-lint -code-annotations==1.6.0 +code-annotations==1.7.0 # via edx-lint colorama==0.4.6 # via tox @@ -43,7 +45,7 @@ dill==0.3.8 # via pylint distlib==0.3.8 # via virtualenv -django==4.2.10 +django==4.2.11 # via # -c requirements/common_constraints.txt # -r requirements/quality.in @@ -54,23 +56,28 @@ edx-i18n-tools==1.3.0 # via -r requirements/dev.in edx-lint==5.3.6 # via -r requirements/quality.in -filelock==3.13.1 +filelock==3.13.3 # via # tox # virtualenv idna==3.6 # via requests -importlib-metadata==7.0.1 +importlib-metadata==6.11.0 # via + # -c requirements/common_constraints.txt # keyring # twine -importlib-resources==6.1.2 +importlib-resources==6.4.0 # via keyring isort==5.13.2 # via # -r requirements/quality.in # pylint -jaraco-classes==3.3.1 +jaraco-classes==3.4.0 + # via keyring +jaraco-context==4.3.0 + # via keyring +jaraco-functools==4.0.0 # via keyring jeepney==0.8.0 # via @@ -80,9 +87,9 @@ jinja2==3.1.3 # via # code-annotations # diff-cover -keyring==24.3.1 +keyring==25.0.0 # via twine -lxml==5.1.0 +lxml==5.2.0 # via edx-i18n-tools markdown-it-py==3.0.0 # via rich @@ -93,10 +100,12 @@ mccabe==0.7.0 mdurl==0.1.2 # via markdown-it-py more-itertools==10.2.0 - # via jaraco-classes -nh3==0.2.15 + # via + # jaraco-classes + # jaraco-functools +nh3==0.2.17 # via readme-renderer -packaging==23.2 +packaging==24.0 # via # pyproject-api # tox @@ -104,7 +113,7 @@ path==16.10.0 # via edx-i18n-tools pbr==6.0.0 # via stevedore -pkginfo==1.9.6 +pkginfo==1.10.0 # via twine platformdirs==4.2.0 # via @@ -120,7 +129,7 @@ polib==1.2.0 # via edx-i18n-tools pycodestyle==2.11.1 # via -r requirements/quality.in -pycparser==2.21 +pycparser==2.22 # via cffi pydocstyle==6.3.0 # via -r requirements/quality.in @@ -182,7 +191,7 @@ tomli==2.0.1 # tox tomlkit==0.12.4 # via pylint -tox==4.13.0 +tox==4.14.2 # via -r requirements/dev.in twine==5.0.0 # via -r requirements/dev.in @@ -200,9 +209,9 @@ virtualenv==20.25.1 # via # -r requirements/dev.in # tox -wheel==0.42.0 +wheel==0.43.0 # via -r requirements/dev.in -zipp==3.17.0 +zipp==3.18.1 # via # importlib-metadata # importlib-resources diff --git a/requirements/doc.txt b/requirements/doc.txt index 318a15a..7ca3ff9 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -8,14 +8,16 @@ accessible-pygments==0.0.4 # via pydata-sphinx-theme alabaster==0.7.13 # via sphinx -asgiref==3.7.2 +asgiref==3.8.1 # via django babel==2.14.0 # via # pydata-sphinx-theme # sphinx -backports-zoneinfo==0.2.1 - # via django +backports-zoneinfo==0.2.1 ; python_version < "3.9" + # via + # -c requirements/constraints.txt + # django beautifulsoup4==4.12.3 # via pydata-sphinx-theme certifi==2024.2.2 @@ -26,7 +28,7 @@ charset-normalizer==3.3.2 # via requests cryptography==42.0.5 # via secretstorage -django==4.2.10 +django==4.2.11 # via # -c requirements/common_constraints.txt # -r requirements/doc.in @@ -43,14 +45,19 @@ idna==3.6 # via requests imagesize==1.4.1 # via sphinx -importlib-metadata==7.0.1 +importlib-metadata==6.11.0 # via + # -c requirements/common_constraints.txt # keyring # sphinx # twine -importlib-resources==6.1.2 +importlib-resources==6.4.0 # via keyring -jaraco-classes==3.3.1 +jaraco-classes==3.4.0 + # via keyring +jaraco-context==4.3.0 + # via keyring +jaraco-functools==4.0.0 # via keyring jeepney==0.8.0 # via @@ -58,7 +65,7 @@ jeepney==0.8.0 # secretstorage jinja2==3.1.3 # via sphinx -keyring==24.3.1 +keyring==25.0.0 # via twine markdown-it-py==3.0.0 # via rich @@ -67,20 +74,22 @@ markupsafe==2.1.5 mdurl==0.1.2 # via markdown-it-py more-itertools==10.2.0 - # via jaraco-classes -nh3==0.2.15 + # via + # jaraco-classes + # jaraco-functools +nh3==0.2.17 # via readme-renderer -packaging==23.2 +packaging==24.0 # via # pydata-sphinx-theme # sphinx pbr==6.0.0 # via stevedore -pkginfo==1.9.6 +pkginfo==1.10.0 # via twine pockets==0.9.1 # via sphinxcontrib-napoleon -pycparser==2.21 +pycparser==2.22 # via cffi pydata-sphinx-theme==0.14.4 # via sphinx-book-theme @@ -159,7 +168,7 @@ urllib3==2.2.1 # via # requests # twine -zipp==3.17.0 +zipp==3.18.1 # via # importlib-metadata # importlib-resources diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index 8528adb..6401f54 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -4,15 +4,17 @@ # # make upgrade # -build==1.1.1 +build==1.2.1 # via pip-tools click==8.1.7 # via pip-tools -importlib-metadata==7.0.1 - # via build -packaging==23.2 +importlib-metadata==6.11.0 + # via + # -c requirements/common_constraints.txt + # build +packaging==24.0 # via build -pip-tools==7.4.0 +pip-tools==7.4.1 # via -r requirements/pip-tools.in pyproject-hooks==1.0.0 # via @@ -23,9 +25,9 @@ tomli==2.0.1 # build # pip-tools # pyproject-hooks -wheel==0.42.0 +wheel==0.43.0 # via pip-tools -zipp==3.17.0 +zipp==3.18.1 # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: diff --git a/requirements/pip.txt b/requirements/pip.txt index 6665603..cf44902 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -4,11 +4,11 @@ # # make upgrade # -wheel==0.42.0 +wheel==0.43.0 # via -r requirements/pip.in # The following packages are considered to be unsafe in a requirements file: pip==24.0 # via -r requirements/pip.in -setuptools==69.1.1 +setuptools==69.2.0 # via -r requirements/pip.in diff --git a/requirements/quality.txt b/requirements/quality.txt index 2d63b76..392c5ed 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -4,14 +4,16 @@ # # make upgrade # -asgiref==3.7.2 +asgiref==3.8.1 # via django astroid==3.1.0 # via # pylint # pylint-celery -backports-zoneinfo==0.2.1 - # via django +backports-zoneinfo==0.2.1 ; python_version < "3.9" + # via + # -c requirements/constraints.txt + # django click==8.1.7 # via # click-log @@ -19,11 +21,11 @@ click==8.1.7 # edx-lint click-log==0.4.0 # via edx-lint -code-annotations==1.6.0 +code-annotations==1.7.0 # via edx-lint dill==0.3.8 # via pylint -django==4.2.10 +django==4.2.11 # via # -c requirements/common_constraints.txt # -r requirements/quality.in diff --git a/requirements/test.txt b/requirements/test.txt index 9dd8b7c..6aad064 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -4,7 +4,7 @@ # # make upgrade # -coverage[toml]==7.4.3 +coverage[toml]==7.4.4 # via pytest-cov ddt==1.3.1 # via -r requirements/test.in @@ -12,15 +12,15 @@ exceptiongroup==1.2.0 # via pytest iniconfig==2.0.0 # via pytest -packaging==23.2 +packaging==24.0 # via pytest pluggy==1.4.0 # via pytest -pytest==8.0.2 +pytest==8.1.1 # via # pytest-cov # pytest-django -pytest-cov==4.1.0 +pytest-cov==5.0.0 # via -r requirements/test.in pytest-django==4.8.0 # via -r requirements/test.in From 7a281879cb3f8a04ada053ed98de29e8f1154cd1 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Sun, 31 Mar 2024 19:25:15 +0500 Subject: [PATCH 04/14] feat: Adding python3.11, 3.12 support. --- requirements/doc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements/doc.in b/requirements/doc.in index e841fdf..27ad3b9 100644 --- a/requirements/doc.in +++ b/requirements/doc.in @@ -9,3 +9,4 @@ readme_renderer # Validates README.rst for usage on PyPI Sphinx # Documentation builder sphinxcontrib-napoleon # Google Style docstring support for sphinx twine +setuptools From 2f434033f6fc4f49ff2236566b1172106b96c4dc Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Sun, 31 Mar 2024 10:26:21 -0400 Subject: [PATCH 05/14] chore: Updating Python Requirements --- requirements/doc.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements/doc.txt b/requirements/doc.txt index 7ca3ff9..4008afb 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -172,3 +172,6 @@ zipp==3.18.1 # via # importlib-metadata # importlib-resources + +# The following packages are considered to be unsafe in a requirements file: +# setuptools From db6b0b7f59a93c82e150188193327af9ca2a38ae Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Sun, 31 Mar 2024 19:29:02 +0500 Subject: [PATCH 06/14] feat: Adding python3.11, 3.12 support. --- requirements/doc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements/doc.in b/requirements/doc.in index 27ad3b9..2923237 100644 --- a/requirements/doc.in +++ b/requirements/doc.in @@ -10,3 +10,4 @@ Sphinx # Documentation builder sphinxcontrib-napoleon # Google Style docstring support for sphinx twine setuptools +wheel \ No newline at end of file From c0ed04661f569b7916334e23abefcbec42169cd5 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Sun, 31 Mar 2024 10:31:59 -0400 Subject: [PATCH 07/14] chore: Updating Python Requirements --- requirements/doc.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements/doc.txt b/requirements/doc.txt index 4008afb..d57974a 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -168,6 +168,8 @@ urllib3==2.2.1 # via # requests # twine +wheel==0.43.0 + # via -r requirements/doc.in zipp==3.18.1 # via # importlib-metadata From 19d10bf95d0b27f9b089055ec5267837c34a6129 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Sun, 31 Mar 2024 19:39:03 +0500 Subject: [PATCH 08/14] feat: Adding python3.11, 3.12 support. --- Makefile | 2 +- requirements/doc.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 053dab9..d763451 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ upgrade: $(COMMON_CONSTRAINTS_TXT) pip install -qr requirements/pip-tools.txt pip-compile --upgrade -o requirements/base.txt requirements/base.in pip-compile --upgrade -o requirements/dev.txt requirements/dev.in requirements/quality.in - pip-compile --upgrade -o requirements/doc.txt requirements/base.in requirements/doc.in + pip-compile --upgrade --allow-unsafe -o requirements/doc.txt requirements/base.in requirements/doc.in pip-compile --upgrade -o requirements/quality.txt requirements/quality.in pip-compile --upgrade -o requirements/test.txt requirements/base.in requirements/test.in pip-compile --upgrade -o requirements/ci.txt requirements/ci.in diff --git a/requirements/doc.in b/requirements/doc.in index 2923237..3c2abd8 100644 --- a/requirements/doc.in +++ b/requirements/doc.in @@ -10,4 +10,4 @@ Sphinx # Documentation builder sphinxcontrib-napoleon # Google Style docstring support for sphinx twine setuptools -wheel \ No newline at end of file +wheel From 90f3eff4f4444ec70a3cbed1279a940db650e5e7 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Sun, 31 Mar 2024 10:40:08 -0400 Subject: [PATCH 09/14] chore: Updating Python Requirements --- requirements/doc.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements/doc.txt b/requirements/doc.txt index d57974a..7dcd72b 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -176,4 +176,5 @@ zipp==3.18.1 # importlib-resources # The following packages are considered to be unsafe in a requirements file: -# setuptools +setuptools==69.2.0 + # via -r requirements/doc.in From 8a2c12f66d31dc8eece40883815e5b6b606ee0c2 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Sun, 31 Mar 2024 22:37:10 +0500 Subject: [PATCH 10/14] feat: Adding python3.11, 3.12 support. --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 514802d..22cbc5d 100644 --- a/setup.py +++ b/setup.py @@ -49,16 +49,16 @@ def get_version(*file_paths): classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', - 'Framework :: Django :: 3.0', - 'Framework :: Django :: 3.1', - 'Framework :: Django :: 3.2', + '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.11', + 'Programming Language :: Python :: 3.12', ], extras_require={ - 'Django': ['Django>=3.0,<3.3'], + 'Django': ['Django>=4.2,<4.3'], } ) From 7c1b5177fb1bd6b0bd3cedba0bc5c0142ceadae0 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Mon, 1 Apr 2024 14:55:50 +0500 Subject: [PATCH 11/14] feat: Adding python3.11, 3.12 support. --- Makefile | 2 +- requirements/doc.in | 2 -- tox.ini | 4 +++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index d763451..053dab9 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ upgrade: $(COMMON_CONSTRAINTS_TXT) pip install -qr requirements/pip-tools.txt pip-compile --upgrade -o requirements/base.txt requirements/base.in pip-compile --upgrade -o requirements/dev.txt requirements/dev.in requirements/quality.in - pip-compile --upgrade --allow-unsafe -o requirements/doc.txt requirements/base.in requirements/doc.in + pip-compile --upgrade -o requirements/doc.txt requirements/base.in requirements/doc.in pip-compile --upgrade -o requirements/quality.txt requirements/quality.in pip-compile --upgrade -o requirements/test.txt requirements/base.in requirements/test.in pip-compile --upgrade -o requirements/ci.txt requirements/ci.in diff --git a/requirements/doc.in b/requirements/doc.in index 3c2abd8..e841fdf 100644 --- a/requirements/doc.in +++ b/requirements/doc.in @@ -9,5 +9,3 @@ readme_renderer # Validates README.rst for usage on PyPI Sphinx # Documentation builder sphinxcontrib-napoleon # Google Style docstring support for sphinx twine -setuptools -wheel diff --git a/tox.ini b/tox.ini index e6019ad..af22e3e 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,9 @@ commands = python -Wd -m pytest {posargs} [testenv:docs] -setenv = +setenv = + setuptools + setuptools DJANGO_SETTINGS_MODULE = test_settings PYTHONPATH = {toxinidir} allowlist_externals = From a94b30a28954966d0bc8dfe13e1dcba69c7ba1f3 Mon Sep 17 00:00:00 2001 From: edX requirements bot Date: Mon, 1 Apr 2024 05:57:04 -0400 Subject: [PATCH 12/14] chore: Updating Python Requirements --- requirements/doc.txt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/requirements/doc.txt b/requirements/doc.txt index 7dcd72b..7ca3ff9 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -168,13 +168,7 @@ urllib3==2.2.1 # via # requests # twine -wheel==0.43.0 - # via -r requirements/doc.in zipp==3.18.1 # via # importlib-metadata # importlib-resources - -# The following packages are considered to be unsafe in a requirements file: -setuptools==69.2.0 - # via -r requirements/doc.in From 0ed37f2b3dfd336bd7df79a25062c363e33c52a5 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Mon, 1 Apr 2024 14:57:56 +0500 Subject: [PATCH 13/14] feat: Adding python3.11, 3.12 support. --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index af22e3e..88b7462 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ commands = [testenv:docs] setenv = setuptools - setuptools + wheel DJANGO_SETTINGS_MODULE = test_settings PYTHONPATH = {toxinidir} allowlist_externals = From de9eca455d2cf9401732d361e608e264610e40f2 Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Mon, 1 Apr 2024 14:58:48 +0500 Subject: [PATCH 14/14] feat: Adding python3.11, 3.12 support. --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 88b7462..b838493 100644 --- a/tox.ini +++ b/tox.ini @@ -15,14 +15,14 @@ commands = [testenv:docs] setenv = - setuptools - wheel DJANGO_SETTINGS_MODULE = test_settings PYTHONPATH = {toxinidir} allowlist_externals = make rm -deps = +deps = + setuptools + wheel -r{toxinidir}/requirements/doc.txt commands = doc8 --ignore-path docs/_build README.rst docs