From 2fbc1a474622be075555092ddb2fb85aaa0af00b Mon Sep 17 00:00:00 2001 From: Hunia Fatima Date: Tue, 22 Oct 2024 02:43:54 +0500 Subject: [PATCH] feat!: drop python3.8 support, add python3.12 support feat! : removed support for python3.8, added support for python3.12 --- .github/workflows/ci.yml | 4 +- .github/workflows/pypi-publish.yml | 2 +- CHANGELOG.rst | 9 +++ pylintrc | 9 ++- pylintrc_tweaks | 3 + requirements/base.txt | 26 ++++---- requirements/ci.txt | 14 ++--- requirements/dev.txt | 97 +++++++++++++++--------------- requirements/doc.txt | 72 +++++++++++----------- requirements/pip-tools.txt | 6 +- requirements/pip.txt | 4 +- requirements/quality.txt | 72 +++++++++++----------- requirements/test.txt | 40 ++++++------ setup.py | 1 - tox.ini | 28 ++++----- 15 files changed, 196 insertions(+), 191 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 383f2674..d5ce08cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: ['3.11'] + python-version: ['3.12'] toxenv: [quality, docs, pii_check, django42] steps: @@ -37,7 +37,7 @@ jobs: run: tox - name: Run coverage - if: matrix.python-version == '3.11' && matrix.toxenv == 'django42' + if: matrix.python-version == '3.12' && matrix.toxenv == 'django42' uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 42c80d89..ea81e83e 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -15,7 +15,7 @@ jobs: - name: setup python uses: actions/setup-python@v5 with: - python-version: 3.11 + python-version: 3.12 - name: Install pip run: pip install -r requirements/pip.txt diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2738683d..5af8e1b1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,6 +14,15 @@ Change Log Unreleased ********** +[6.0.0] - 2024-08-24 +******************** +Added +======= +* Added support for python3.12 +Removed +======= +* Removed the support for python3.8 + [5.8.1] - 2024-08-02 ******************** Changed diff --git a/pylintrc b/pylintrc index 13e9175b..00aa81d9 100644 --- a/pylintrc +++ b/pylintrc @@ -64,7 +64,7 @@ # SERIOUSLY. # # ------------------------------ -# Generated by edx-lint version: 5.3.1 +# Generated by edx-lint version: 5.4.0 # ------------------------------ [MASTER] ignore = migrations @@ -291,6 +291,9 @@ disable = django-not-configured, consider-using-with, bad-option-value, + broad-exception-caught, + import-error, + too-many-positional-arguments [REPORTS] output-format = text @@ -385,6 +388,6 @@ ext-import-graph = int-import-graph = [EXCEPTIONS] -overgeneral-exceptions = Exception +overgeneral-exceptions = builtins.Exception -# e2e15bd7aac117677679a6d0e18619f34292e8db +# ede89753f5f1c1b60f1013ef33ed9541bdf23550 diff --git a/pylintrc_tweaks b/pylintrc_tweaks index 7b6eb35c..c4d8ffe6 100644 --- a/pylintrc_tweaks +++ b/pylintrc_tweaks @@ -9,3 +9,6 @@ disable+= django-not-configured, consider-using-with, bad-option-value, + broad-exception-caught, + import-error, + too-many-positional-arguments diff --git a/requirements/base.txt b/requirements/base.txt index 267f671d..f53e8be4 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -8,7 +8,7 @@ asgiref==3.8.1 # via django attrs==24.2.0 # via openedx-events -cffi==1.17.0 +cffi==1.17.1 # via pynacl click==8.1.7 # via @@ -16,7 +16,7 @@ click==8.1.7 # edx-django-utils code-annotations==1.8.0 # via edx-toggles -django==4.2.15 +django==4.2.16 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/base.in @@ -33,38 +33,38 @@ django-waffle==4.1.0 # via # edx-django-utils # edx-toggles -dnspython==2.6.1 +dnspython==2.7.0 # via pymongo edx-ccx-keys==1.3.0 # via openedx-events -edx-django-utils==5.15.0 +edx-django-utils==7.0.0 # via # -r requirements/base.in # edx-toggles # openedx-events -edx-opaque-keys[django]==2.10.0 +edx-opaque-keys[django]==2.11.0 # via # edx-ccx-keys # openedx-events edx-toggles==5.2.0 # via -r requirements/base.in -fastavro==1.9.5 +fastavro==1.9.7 # via openedx-events jinja2==3.1.4 # via code-annotations -markupsafe==2.1.5 +markupsafe==3.0.2 # via jinja2 -newrelic==9.13.0 +newrelic==10.2.0 # via edx-django-utils -openedx-events==9.12.0 +openedx-events==9.15.0 # via -r requirements/base.in -pbr==6.0.0 +pbr==6.1.0 # via stevedore -psutil==6.0.0 +psutil==6.1.0 # via edx-django-utils pycparser==2.22 # via cffi -pymongo==4.8.0 +pymongo==4.10.1 # via edx-opaque-keys pynacl==1.5.0 # via edx-django-utils diff --git a/requirements/ci.txt b/requirements/ci.txt index e39ed77c..5e829bcd 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -10,9 +10,9 @@ chardet==5.2.0 # via tox colorama==0.4.6 # via tox -distlib==0.3.8 +distlib==0.3.9 # via virtualenv -filelock==3.15.4 +filelock==3.16.1 # via # tox # virtualenv @@ -20,15 +20,15 @@ packaging==24.1 # via # pyproject-api # tox -platformdirs==4.2.2 +platformdirs==4.3.6 # via # tox # virtualenv pluggy==1.5.0 # via tox -pyproject-api==1.7.1 +pyproject-api==1.8.0 # via tox -tox==4.18.0 +tox==4.23.0 # via -r requirements/ci.in -virtualenv==20.26.3 +virtualenv==20.27.0 # via tox diff --git a/requirements/dev.txt b/requirements/dev.txt index 9946d289..e1ea6edd 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -8,7 +8,7 @@ asgiref==3.8.1 # via # -r requirements/quality.txt # django -astroid==3.2.4 +astroid==3.3.5 # via # -r requirements/quality.txt # pylint @@ -21,11 +21,7 @@ avro==1.12.0 # via # -r requirements/quality.txt # confluent-kafka -backports-tarfile==1.2.0 - # via - # -r requirements/quality.txt - # jaraco-context -build==1.2.1 +build==1.2.2.post1 # via # -r requirements/pip-tools.txt # pip-tools @@ -33,11 +29,11 @@ cachetools==5.5.0 # via # -r requirements/ci.txt # tox -certifi==2024.7.4 +certifi==2024.8.30 # via # -r requirements/quality.txt # requests -cffi==1.17.0 +cffi==1.17.1 # via # -r requirements/quality.txt # pynacl @@ -46,7 +42,7 @@ chardet==5.2.0 # -r requirements/ci.txt # diff-cover # tox -charset-normalizer==3.3.2 +charset-normalizer==3.4.0 # via # -r requirements/quality.txt # requests @@ -72,25 +68,25 @@ colorama==0.4.6 # via # -r requirements/ci.txt # tox -confluent-kafka[avro,schema-registry]==2.5.0 +confluent-kafka[avro,schema-registry]==2.6.0 # via -r requirements/quality.txt -coverage[toml]==7.6.1 +coverage[toml]==7.6.4 # via # -r requirements/quality.txt # pytest-cov ddt==1.7.2 # via -r requirements/quality.txt -diff-cover==9.1.1 +diff-cover==9.2.0 # via -r requirements/dev.in -dill==0.3.8 +dill==0.3.9 # via # -r requirements/quality.txt # pylint -distlib==0.3.8 +distlib==0.3.9 # via # -r requirements/ci.txt # virtualenv -django==4.2.15 +django==4.2.16 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/quality.txt @@ -110,7 +106,7 @@ django-waffle==4.1.0 # -r requirements/quality.txt # edx-django-utils # edx-toggles -dnspython==2.6.1 +dnspython==2.7.0 # via # -r requirements/quality.txt # pymongo @@ -122,40 +118,39 @@ edx-ccx-keys==1.3.0 # via # -r requirements/quality.txt # openedx-events -edx-django-utils==5.15.0 +edx-django-utils==7.0.0 # via # -r requirements/quality.txt # edx-toggles # openedx-events -edx-i18n-tools==1.6.2 +edx-i18n-tools==1.6.3 # via -r requirements/dev.in -edx-lint==5.3.7 +edx-lint==5.4.0 # via -r requirements/quality.txt -edx-opaque-keys[django]==2.10.0 +edx-opaque-keys[django]==2.11.0 # via # -r requirements/quality.txt # edx-ccx-keys # openedx-events edx-toggles==5.2.0 # via -r requirements/quality.txt -fastavro==1.9.5 +fastavro==1.9.7 # via # -r requirements/quality.txt # confluent-kafka # openedx-events -filelock==3.15.4 +filelock==3.16.1 # via # -r requirements/ci.txt # tox # virtualenv -idna==3.7 +idna==3.10 # via # -r requirements/quality.txt # requests -importlib-metadata==8.4.0 +importlib-metadata==8.5.0 # via # -r requirements/quality.txt - # keyring # twine iniconfig==2.0.0 # via @@ -173,7 +168,7 @@ jaraco-context==6.0.1 # via # -r requirements/quality.txt # keyring -jaraco-functools==4.0.2 +jaraco-functools==4.1.0 # via # -r requirements/quality.txt # keyring @@ -182,17 +177,21 @@ jinja2==3.1.4 # -r requirements/quality.txt # code-annotations # diff-cover -keyring==25.3.0 +keyring==25.4.1 # via # -r requirements/quality.txt # twine -lxml==5.3.0 - # via edx-i18n-tools +lxml[html-clean,html_clean]==5.3.0 + # via + # edx-i18n-tools + # lxml-html-clean +lxml-html-clean==0.3.1 + # via lxml markdown-it-py==3.0.0 # via # -r requirements/quality.txt # rich -markupsafe==2.1.5 +markupsafe==3.0.2 # via # -r requirements/quality.txt # jinja2 @@ -204,12 +203,12 @@ mdurl==0.1.2 # via # -r requirements/quality.txt # markdown-it-py -more-itertools==10.4.0 +more-itertools==10.5.0 # via # -r requirements/quality.txt # jaraco-classes # jaraco-functools -newrelic==9.13.0 +newrelic==10.2.0 # via # -r requirements/quality.txt # edx-django-utils @@ -217,7 +216,7 @@ nh3==0.2.18 # via # -r requirements/quality.txt # readme-renderer -openedx-events==9.12.0 +openedx-events==9.15.0 # via -r requirements/quality.txt packaging==24.1 # via @@ -230,7 +229,7 @@ packaging==24.1 # tox path==16.16.0 # via edx-i18n-tools -pbr==6.0.0 +pbr==6.1.0 # via # -r requirements/quality.txt # stevedore @@ -240,7 +239,7 @@ pkginfo==1.10.0 # via # -r requirements/quality.txt # twine -platformdirs==4.2.2 +platformdirs==4.3.6 # via # -r requirements/ci.txt # -r requirements/quality.txt @@ -256,7 +255,7 @@ pluggy==1.5.0 # tox polib==1.2.0 # via edx-i18n-tools -psutil==6.0.0 +psutil==6.1.0 # via # -r requirements/quality.txt # edx-django-utils @@ -274,7 +273,7 @@ pygments==2.18.0 # diff-cover # readme-renderer # rich -pylint==3.2.6 +pylint==3.3.1 # via # -r requirements/quality.txt # edx-lint @@ -285,7 +284,7 @@ pylint-celery==0.3 # via # -r requirements/quality.txt # edx-lint -pylint-django==2.5.5 +pylint-django==2.6.1 # via # -r requirements/quality.txt # edx-lint @@ -294,7 +293,7 @@ pylint-plugin-utils==0.8.2 # -r requirements/quality.txt # pylint-celery # pylint-django -pymongo==4.8.0 +pymongo==4.10.1 # via # -r requirements/quality.txt # edx-opaque-keys @@ -302,23 +301,23 @@ pynacl==1.5.0 # via # -r requirements/quality.txt # edx-django-utils -pyproject-api==1.7.1 +pyproject-api==1.8.0 # via # -r requirements/ci.txt # tox -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via # -r requirements/pip-tools.txt # build # pip-tools -pytest==8.3.2 +pytest==8.3.3 # via # -r requirements/quality.txt # pytest-cov # pytest-django pytest-cov==5.0.0 # via -r requirements/quality.txt -pytest-django==4.8.0 +pytest-django==4.9.0 # via -r requirements/quality.txt python-slugify==8.0.4 # via @@ -347,7 +346,7 @@ rfc3986==2.0.0 # via # -r requirements/quality.txt # twine -rich==13.7.1 +rich==13.9.2 # via # -r requirements/quality.txt # twine @@ -378,7 +377,7 @@ tomlkit==0.13.2 # via # -r requirements/quality.txt # pylint -tox==4.18.0 +tox==4.23.0 # via -r requirements/ci.txt twine==5.1.1 # via -r requirements/quality.txt @@ -386,12 +385,12 @@ typing-extensions==4.12.2 # via # -r requirements/quality.txt # edx-opaque-keys -urllib3==2.2.2 +urllib3==2.2.3 # via # -r requirements/quality.txt # requests # twine -virtualenv==20.26.3 +virtualenv==20.27.0 # via # -r requirements/ci.txt # tox @@ -399,7 +398,7 @@ wheel==0.44.0 # via # -r requirements/pip-tools.txt # pip-tools -zipp==3.20.0 +zipp==3.20.2 # via # -r requirements/quality.txt # importlib-metadata diff --git a/requirements/doc.txt b/requirements/doc.txt index c4b6a9ae..b75ae37e 100644 --- a/requirements/doc.txt +++ b/requirements/doc.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -24,21 +24,19 @@ babel==2.16.0 # via # pydata-sphinx-theme # sphinx -backports-tarfile==1.2.0 - # via jaraco-context beautifulsoup4==4.12.3 # via pydata-sphinx-theme -build==1.2.1 +build==1.2.2.post1 # via -r requirements/doc.in -certifi==2024.7.4 +certifi==2024.8.30 # via # -r requirements/test.txt # requests -cffi==1.17.0 +cffi==1.17.1 # via # -r requirements/test.txt # pynacl -charset-normalizer==3.3.2 +charset-normalizer==3.4.0 # via # -r requirements/test.txt # requests @@ -51,15 +49,15 @@ code-annotations==1.8.0 # via # -r requirements/test.txt # edx-toggles -confluent-kafka[avro,schema-registry]==2.5.0 +confluent-kafka[avro,schema-registry]==2.6.0 # via -r requirements/test.txt -coverage[toml]==7.6.1 +coverage[toml]==7.6.4 # via # -r requirements/test.txt # pytest-cov ddt==1.7.2 # via -r requirements/test.txt -django==4.2.15 +django==4.2.16 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/test.txt @@ -78,13 +76,13 @@ django-waffle==4.1.0 # -r requirements/test.txt # edx-django-utils # edx-toggles -dnspython==2.6.1 +dnspython==2.7.0 # via # -r requirements/test.txt # pymongo -doc8==1.1.1 +doc8==1.1.2 # via -r requirements/doc.in -docutils==0.20.1 +docutils==0.21.2 # via # doc8 # pydata-sphinx-theme @@ -95,33 +93,31 @@ edx-ccx-keys==1.3.0 # via # -r requirements/test.txt # openedx-events -edx-django-utils==5.15.0 +edx-django-utils==7.0.0 # via # -r requirements/test.txt # edx-toggles # openedx-events -edx-opaque-keys[django]==2.10.0 +edx-opaque-keys[django]==2.11.0 # via # -r requirements/test.txt # edx-ccx-keys # openedx-events edx-toggles==5.2.0 # via -r requirements/test.txt -fastavro==1.9.5 +fastavro==1.9.7 # via # -r requirements/test.txt # confluent-kafka # openedx-events -idna==3.7 +idna==3.10 # via # -r requirements/test.txt # requests imagesize==1.4.1 # via sphinx -importlib-metadata==8.4.0 - # via - # keyring - # twine +importlib-metadata==8.5.0 + # via twine iniconfig==2.0.0 # via # -r requirements/test.txt @@ -130,34 +126,34 @@ jaraco-classes==3.4.0 # via keyring jaraco-context==6.0.1 # via keyring -jaraco-functools==4.0.2 +jaraco-functools==4.1.0 # via keyring jinja2==3.1.4 # via # -r requirements/test.txt # code-annotations # sphinx -keyring==25.3.0 +keyring==25.4.1 # via twine markdown-it-py==3.0.0 # via rich -markupsafe==2.1.5 +markupsafe==3.0.2 # via # -r requirements/test.txt # jinja2 mdurl==0.1.2 # via markdown-it-py -more-itertools==10.4.0 +more-itertools==10.5.0 # via # jaraco-classes # jaraco-functools -newrelic==9.13.0 +newrelic==10.2.0 # via # -r requirements/test.txt # edx-django-utils nh3==0.2.18 # via readme-renderer -openedx-events==9.12.0 +openedx-events==9.15.0 # via -r requirements/test.txt packaging==24.1 # via @@ -166,7 +162,7 @@ packaging==24.1 # pydata-sphinx-theme # pytest # sphinx -pbr==6.0.0 +pbr==6.1.0 # via # -r requirements/test.txt # stevedore @@ -176,7 +172,7 @@ pluggy==1.5.0 # via # -r requirements/test.txt # pytest -psutil==6.0.0 +psutil==6.1.0 # via # -r requirements/test.txt # edx-django-utils @@ -194,7 +190,7 @@ pygments==2.18.0 # readme-renderer # rich # sphinx -pymongo==4.8.0 +pymongo==4.10.1 # via # -r requirements/test.txt # edx-opaque-keys @@ -202,16 +198,16 @@ pynacl==1.5.0 # via # -r requirements/test.txt # edx-django-utils -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via build -pytest==8.3.2 +pytest==8.3.3 # via # -r requirements/test.txt # pytest-cov # pytest-django pytest-cov==5.0.0 # via -r requirements/test.txt -pytest-django==4.8.0 +pytest-django==4.9.0 # via -r requirements/test.txt python-slugify==8.0.4 # via @@ -221,7 +217,7 @@ pyyaml==6.0.2 # via # -r requirements/test.txt # code-annotations -readme-renderer==43.0 +readme-renderer==44.0 # via twine requests==2.32.3 # via @@ -236,7 +232,7 @@ restructuredtext-lint==1.4.0 # via doc8 rfc3986==2.0.0 # via twine -rich==13.7.1 +rich==13.9.2 # via twine six==1.16.0 # via @@ -246,7 +242,7 @@ snowballstemmer==2.2.0 # via sphinx soupsieve==2.6 # via beautifulsoup4 -sphinx==8.0.2 +sphinx==8.1.3 # via # -r requirements/doc.in # pydata-sphinx-theme @@ -287,10 +283,10 @@ typing-extensions==4.12.2 # -r requirements/test.txt # edx-opaque-keys # pydata-sphinx-theme -urllib3==2.2.2 +urllib3==2.2.3 # via # -r requirements/test.txt # requests # twine -zipp==3.20.0 +zipp==3.20.2 # via importlib-metadata diff --git a/requirements/pip-tools.txt b/requirements/pip-tools.txt index fedf88df..cf4131e2 100644 --- a/requirements/pip-tools.txt +++ b/requirements/pip-tools.txt @@ -1,10 +1,10 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade # -build==1.2.1 +build==1.2.2.post1 # via pip-tools click==8.1.7 # via pip-tools @@ -12,7 +12,7 @@ packaging==24.1 # via build pip-tools==7.4.1 # via -r requirements/pip-tools.in -pyproject-hooks==1.1.0 +pyproject-hooks==1.2.0 # via # build # pip-tools diff --git a/requirements/pip.txt b/requirements/pip.txt index f0fca188..35655630 100644 --- a/requirements/pip.txt +++ b/requirements/pip.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -10,5 +10,5 @@ wheel==0.44.0 # The following packages are considered to be unsafe in a requirements file: pip==24.2 # via -r requirements/pip.in -setuptools==73.0.1 +setuptools==75.2.0 # via -r requirements/pip.in diff --git a/requirements/quality.txt b/requirements/quality.txt index 4e25a479..ae378b58 100644 --- a/requirements/quality.txt +++ b/requirements/quality.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -8,7 +8,7 @@ asgiref==3.8.1 # via # -r requirements/test.txt # django -astroid==3.2.4 +astroid==3.3.5 # via # pylint # pylint-celery @@ -20,17 +20,15 @@ avro==1.12.0 # via # -r requirements/test.txt # confluent-kafka -backports-tarfile==1.2.0 - # via jaraco-context -certifi==2024.7.4 +certifi==2024.8.30 # via # -r requirements/test.txt # requests -cffi==1.17.0 +cffi==1.17.1 # via # -r requirements/test.txt # pynacl -charset-normalizer==3.3.2 +charset-normalizer==3.4.0 # via # -r requirements/test.txt # requests @@ -48,17 +46,17 @@ code-annotations==1.8.0 # -r requirements/test.txt # edx-lint # edx-toggles -confluent-kafka[avro,schema-registry]==2.5.0 +confluent-kafka[avro,schema-registry]==2.6.0 # via -r requirements/test.txt -coverage[toml]==7.6.1 +coverage[toml]==7.6.4 # via # -r requirements/test.txt # pytest-cov ddt==1.7.2 # via -r requirements/test.txt -dill==0.3.8 +dill==0.3.9 # via pylint -django==4.2.15 +django==4.2.16 # via # -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt # -r requirements/test.txt @@ -77,7 +75,7 @@ django-waffle==4.1.0 # -r requirements/test.txt # edx-django-utils # edx-toggles -dnspython==2.6.1 +dnspython==2.7.0 # via # -r requirements/test.txt # pymongo @@ -87,33 +85,31 @@ edx-ccx-keys==1.3.0 # via # -r requirements/test.txt # openedx-events -edx-django-utils==5.15.0 +edx-django-utils==7.0.0 # via # -r requirements/test.txt # edx-toggles # openedx-events -edx-lint==5.3.7 +edx-lint==5.4.0 # via -r requirements/quality.in -edx-opaque-keys[django]==2.10.0 +edx-opaque-keys[django]==2.11.0 # via # -r requirements/test.txt # edx-ccx-keys # openedx-events edx-toggles==5.2.0 # via -r requirements/test.txt -fastavro==1.9.5 +fastavro==1.9.7 # via # -r requirements/test.txt # confluent-kafka # openedx-events -idna==3.7 +idna==3.10 # via # -r requirements/test.txt # requests -importlib-metadata==8.4.0 - # via - # keyring - # twine +importlib-metadata==8.5.0 + # via twine iniconfig==2.0.0 # via # -r requirements/test.txt @@ -126,17 +122,17 @@ jaraco-classes==3.4.0 # via keyring jaraco-context==6.0.1 # via keyring -jaraco-functools==4.0.2 +jaraco-functools==4.1.0 # via keyring jinja2==3.1.4 # via # -r requirements/test.txt # code-annotations -keyring==25.3.0 +keyring==25.4.1 # via twine markdown-it-py==3.0.0 # via rich -markupsafe==2.1.5 +markupsafe==3.0.2 # via # -r requirements/test.txt # jinja2 @@ -144,35 +140,35 @@ mccabe==0.7.0 # via pylint mdurl==0.1.2 # via markdown-it-py -more-itertools==10.4.0 +more-itertools==10.5.0 # via # jaraco-classes # jaraco-functools -newrelic==9.13.0 +newrelic==10.2.0 # via # -r requirements/test.txt # edx-django-utils nh3==0.2.18 # via readme-renderer -openedx-events==9.12.0 +openedx-events==9.15.0 # via -r requirements/test.txt packaging==24.1 # via # -r requirements/test.txt # pytest -pbr==6.0.0 +pbr==6.1.0 # via # -r requirements/test.txt # stevedore pkginfo==1.10.0 # via twine -platformdirs==4.2.2 +platformdirs==4.3.6 # via pylint pluggy==1.5.0 # via # -r requirements/test.txt # pytest -psutil==6.0.0 +psutil==6.1.0 # via # -r requirements/test.txt # edx-django-utils @@ -188,7 +184,7 @@ pygments==2.18.0 # via # readme-renderer # rich -pylint==3.2.6 +pylint==3.3.1 # via # edx-lint # pylint-celery @@ -196,13 +192,13 @@ pylint==3.2.6 # pylint-plugin-utils pylint-celery==0.3 # via edx-lint -pylint-django==2.5.5 +pylint-django==2.6.1 # via edx-lint pylint-plugin-utils==0.8.2 # via # pylint-celery # pylint-django -pymongo==4.8.0 +pymongo==4.10.1 # via # -r requirements/test.txt # edx-opaque-keys @@ -210,14 +206,14 @@ pynacl==1.5.0 # via # -r requirements/test.txt # edx-django-utils -pytest==8.3.2 +pytest==8.3.3 # via # -r requirements/test.txt # pytest-cov # pytest-django pytest-cov==5.0.0 # via -r requirements/test.txt -pytest-django==4.8.0 +pytest-django==4.9.0 # via -r requirements/test.txt python-slugify==8.0.4 # via @@ -239,7 +235,7 @@ requests-toolbelt==1.0.0 # via twine rfc3986==2.0.0 # via twine -rich==13.7.1 +rich==13.9.2 # via twine six==1.16.0 # via @@ -270,10 +266,10 @@ typing-extensions==4.12.2 # via # -r requirements/test.txt # edx-opaque-keys -urllib3==2.2.2 +urllib3==2.2.3 # via # -r requirements/test.txt # requests # twine -zipp==3.20.0 +zipp==3.20.2 # via importlib-metadata diff --git a/requirements/test.txt b/requirements/test.txt index 0825d363..82c2c6a1 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make upgrade @@ -14,13 +14,13 @@ attrs==24.2.0 # openedx-events avro==1.12.0 # via confluent-kafka -certifi==2024.7.4 +certifi==2024.8.30 # via requests -cffi==1.17.0 +cffi==1.17.1 # via # -r requirements/base.txt # pynacl -charset-normalizer==3.3.2 +charset-normalizer==3.4.0 # via requests click==8.1.7 # via @@ -32,9 +32,9 @@ code-annotations==1.8.0 # -r requirements/base.txt # -r requirements/test.in # edx-toggles -confluent-kafka[avro,schema-registry]==2.5.0 +confluent-kafka[avro,schema-registry]==2.6.0 # via -r requirements/test.in -coverage[toml]==7.6.1 +coverage[toml]==7.6.4 # via pytest-cov ddt==1.7.2 # via -r requirements/test.in @@ -56,7 +56,7 @@ django-waffle==4.1.0 # -r requirements/base.txt # edx-django-utils # edx-toggles -dnspython==2.6.1 +dnspython==2.7.0 # via # -r requirements/base.txt # pymongo @@ -64,24 +64,24 @@ edx-ccx-keys==1.3.0 # via # -r requirements/base.txt # openedx-events -edx-django-utils==5.15.0 +edx-django-utils==7.0.0 # via # -r requirements/base.txt # edx-toggles # openedx-events -edx-opaque-keys[django]==2.10.0 +edx-opaque-keys[django]==2.11.0 # via # -r requirements/base.txt # edx-ccx-keys # openedx-events edx-toggles==5.2.0 # via -r requirements/base.txt -fastavro==1.9.5 +fastavro==1.9.7 # via # -r requirements/base.txt # confluent-kafka # openedx-events -idna==3.7 +idna==3.10 # via requests iniconfig==2.0.0 # via pytest @@ -89,25 +89,25 @@ jinja2==3.1.4 # via # -r requirements/base.txt # code-annotations -markupsafe==2.1.5 +markupsafe==3.0.2 # via # -r requirements/base.txt # jinja2 -newrelic==9.13.0 +newrelic==10.2.0 # via # -r requirements/base.txt # edx-django-utils -openedx-events==9.12.0 +openedx-events==9.15.0 # via -r requirements/base.txt packaging==24.1 # via pytest -pbr==6.0.0 +pbr==6.1.0 # via # -r requirements/base.txt # stevedore pluggy==1.5.0 # via pytest -psutil==6.0.0 +psutil==6.1.0 # via # -r requirements/base.txt # edx-django-utils @@ -115,7 +115,7 @@ pycparser==2.22 # via # -r requirements/base.txt # cffi -pymongo==4.8.0 +pymongo==4.10.1 # via # -r requirements/base.txt # edx-opaque-keys @@ -123,13 +123,13 @@ pynacl==1.5.0 # via # -r requirements/base.txt # edx-django-utils -pytest==8.3.2 +pytest==8.3.3 # via # pytest-cov # pytest-django pytest-cov==5.0.0 # via -r requirements/test.in -pytest-django==4.8.0 +pytest-django==4.9.0 # via -r requirements/test.in python-slugify==8.0.4 # via @@ -163,5 +163,5 @@ typing-extensions==4.12.2 # via # -r requirements/base.txt # edx-opaque-keys -urllib3==2.2.2 +urllib3==2.2.3 # via requests diff --git a/setup.py b/setup.py index 7dacadca..6f46a3ec 100755 --- a/setup.py +++ b/setup.py @@ -125,7 +125,6 @@ def is_requirement(line): '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', ], ) diff --git a/tox.ini b/tox.ini index e4c1be7f..cbd1453a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38,311}-django{42} +envlist = py{312}-django{42} [doc8] ; D001 = Line too long @@ -35,25 +35,25 @@ addopts = --cov edx_event_bus_kafka --cov-report term-missing --cov-report xml norecursedirs = .* docs requirements site-packages [testenv] -deps = +deps = django42: Django>=4.2,<4.3 -r{toxinidir}/requirements/test.txt -commands = +commands = python manage.py check pytest {posargs} [testenv:docs] -setenv = +setenv = DJANGO_SETTINGS_MODULE = test_settings PYTHONPATH = {toxinidir} # Adding the option here instead of as a default in the docs Makefile because that Makefile is generated by shpinx. SPHINXOPTS = -W -allowlist_externals = +allowlist_externals = make rm -deps = +deps = -r{toxinidir}/requirements/doc.txt -commands = +commands = doc8 --ignore-path docs/_build README.rst docs rm -f docs/edx_event_bus_kafka.rst rm -f docs/modules.rst @@ -63,15 +63,15 @@ commands = twine check dist/* [testenv:quality] -setenv = +setenv = DJANGO_SETTINGS_MODULE = test_settings -allowlist_externals = +allowlist_externals = make rm touch -deps = +deps = -r{toxinidir}/requirements/quality.txt -commands = +commands = touch tests/__init__.py pylint edx_event_bus_kafka tests test_utils manage.py setup.py rm tests/__init__.py @@ -81,9 +81,9 @@ commands = make selfcheck [testenv:pii_check] -setenv = +setenv = DJANGO_SETTINGS_MODULE = test_settings -deps = +deps = -r{toxinidir}/requirements/test.txt -commands = +commands = code_annotations django_find_annotations --config_file .pii_annotations.yml --lint --report --coverage