Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add python311 support #300

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, django32, django42, check_keywords]
python-version: ['3.8', '3.11']
toxenv: [quality, django42, check_keywords]

steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ Unreleased

*

[4.3.0] - 2024-03-29
--------------------

Added
~~~~~~~
* Added support for Python 3.11

Removed
~~~~~~~
* Removed support for Django 3.2

[4.2.0] - 2023-08-03
--------------------

Expand Down
2 changes: 1 addition & 1 deletion auth_backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
These package is designed to be used primarily with Open edX Django projects, but should be compatible with non-edX
projects as well.
"""
__version__ = '4.2.0' # pragma: no cover
__version__ = '4.3.0' # pragma: no cover
12 changes: 7 additions & 5 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
#
# make upgrade
#
asgiref==3.7.2
asgiref==3.8.1
# via django
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# django
certifi==2024.2.2
# via requests
cffi==1.16.0
Expand All @@ -20,7 +24,7 @@ defusedxml==0.8.0rc2
# via
# python3-openid
# social-auth-core
django==3.2.24
django==4.2.11
# via
# -c requirements/common_constraints.txt
# -r requirements/base.in
Expand All @@ -39,13 +43,11 @@ pyjwt[crypto]==2.8.0
# social-auth-core
python3-openid==3.2.0
# via social-auth-core
pytz==2024.1
# via django
requests==2.31.0
# via
# requests-oauthlib
# social-auth-core
requests-oauthlib==1.3.1
requests-oauthlib==2.0.0
# via social-auth-core
six==1.16.0
# via -r requirements/base.in
Expand Down
30 changes: 19 additions & 11 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,35 @@
#
# make upgrade
#
cachetools==5.3.3
# via tox
chardet==5.2.0
# via tox
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
# via tox
packaging==24.0
# via
# pyproject-api
# tox
platformdirs==4.2.0
# via virtualenv
# via
# tox
# virtualenv
pluggy==1.4.0
# via tox
py==1.11.0
# via tox
six==1.16.0
pyproject-api==1.6.1
# via tox
tomli==2.0.1
# via tox
tox==3.28.0
# via
# -c requirements/constraints.txt
# -r requirements/ci.in
# pyproject-api
# tox
tox==4.14.2
# via -r requirements/ci.in
virtualenv==20.25.1
# via tox
11 changes: 10 additions & 1 deletion requirements/common_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@


# using LTS django version
Django<4.0
Django<5.0

# elasticsearch>=7.14.0 includes breaking changes in it which caused issues in discovery upgrade process.
# elastic search changelog: https://www.elastic.co/guide/en/enterprise-search/master/release-notes-7.14.0.html
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
5 changes: 2 additions & 3 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@

-c common_constraints.txt

# tox>4.0.0 isn't yet compatible with many tox plugins, causing CI failures in almost all repos.
# Details can be found in this discussion: https://github.com/tox-dev/tox/discussions/1810
tox<4.0.0
# For python greater than or equal to 3.9 backports.zoneinfo causing failures
backports.zoneinfo; python_version<'3.9'
71 changes: 44 additions & 27 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ argparse==1.4.0
# via
# -r requirements/test.txt
# unittest2
asgiref==3.7.2
asgiref==3.8.1
# via
# -r requirements/test.txt
# django
Expand All @@ -17,10 +17,20 @@ astroid==3.1.0
# -r requirements/test.txt
# pylint
# pylint-celery
build==1.0.3
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/test.txt
# django
build==1.2.1
# via
# -r requirements/pip-tools.txt
# pip-tools
cachetools==5.3.3
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# tox
certifi==2024.2.2
# via
# -r requirements/test.txt
Expand All @@ -29,6 +39,11 @@ cffi==1.16.0
# via
# -r requirements/test.txt
# cryptography
chardet==5.2.0
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# tox
charset-normalizer==3.3.2
# via
# -r requirements/test.txt
Expand All @@ -45,11 +60,16 @@ click-log==0.4.0
# via
# -r requirements/test.txt
# edx-lint
code-annotations==1.6.0
code-annotations==1.7.0
# via
# -r requirements/test.txt
# edx-lint
coverage[toml]==7.4.3
colorama==0.4.6
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# tox
coverage[toml]==7.4.4
# via
# -r requirements/test.txt
# pytest-cov
Expand All @@ -72,7 +92,7 @@ distlib==0.3.8
# -r requirements/ci.txt
# -r requirements/test.txt
# virtualenv
django==3.2.24
django==4.2.11
# via
# -c requirements/common_constraints.txt
# -r requirements/test.txt
Expand All @@ -86,7 +106,7 @@ exceptiongroup==1.2.0
# via
# -r requirements/test.txt
# pytest
filelock==3.13.1
filelock==3.13.3
# via
# -r requirements/ci.txt
# -r requirements/test.txt
Expand All @@ -98,8 +118,9 @@ idna==3.6
# via
# -r requirements/test.txt
# requests
importlib-metadata==7.0.1
importlib-metadata==6.11.0
# via
# -c requirements/common_constraints.txt
# -r requirements/pip-tools.txt
# build
iniconfig==2.0.0
Expand Down Expand Up @@ -131,37 +152,34 @@ oauthlib==3.2.2
# -r requirements/test.txt
# requests-oauthlib
# social-auth-core
packaging==23.2
packaging==24.0
# via
# -r requirements/ci.txt
# -r requirements/pip-tools.txt
# -r requirements/test.txt
# build
# pyproject-api
# pytest
# tox
pbr==6.0.0
# via
# -r requirements/test.txt
# stevedore
pip-tools==7.4.0
pip-tools==7.4.1
# via -r requirements/pip-tools.txt
platformdirs==4.2.0
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# pylint
# tox
# virtualenv
pluggy==1.4.0
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# pytest
# tox
py==1.11.0
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# tox
pycodestyle==2.11.1
# via -r requirements/test.txt
pycparser==2.21
Expand Down Expand Up @@ -194,17 +212,22 @@ pylint-plugin-utils==0.8.2
# -r requirements/test.txt
# pylint-celery
# pylint-django
pyproject-api==1.6.1
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# tox
pyproject-hooks==1.0.0
# via
# -r requirements/pip-tools.txt
# build
# pip-tools
pytest==8.0.2
pytest==8.1.1
# via
# -r requirements/test.txt
# pytest-cov
# pytest-django
pytest-cov==4.1.0
pytest-cov==5.0.0
# via -r requirements/test.txt
pytest-django==4.8.0
# via -r requirements/test.txt
Expand All @@ -216,10 +239,6 @@ python3-openid==3.2.0
# via
# -r requirements/test.txt
# social-auth-core
pytz==2024.1
# via
# -r requirements/test.txt
# django
pyyaml==6.0.1
# via
# -r requirements/test.txt
Expand All @@ -230,17 +249,15 @@ requests==2.31.0
# -r requirements/test.txt
# requests-oauthlib
# social-auth-core
requests-oauthlib==1.3.1
requests-oauthlib==2.0.0
# via
# -r requirements/test.txt
# social-auth-core
six==1.16.0
# via
# -r requirements/ci.txt
# -r requirements/test.txt
# edx-django-release-util
# edx-lint
# tox
# unittest2
social-auth-app-django==5.4.0
# via -r requirements/test.txt
Expand Down Expand Up @@ -269,16 +286,16 @@ tomli==2.0.1
# coverage
# pip-tools
# pylint
# pyproject-api
# pyproject-hooks
# pytest
# tox
tomlkit==0.12.4
# via
# -r requirements/test.txt
# pylint
tox==3.28.0
tox==4.14.2
# via
# -c requirements/constraints.txt
# -r requirements/ci.txt
# -r requirements/test.txt
traceback2==1.4.0
Expand All @@ -302,11 +319,11 @@ virtualenv==20.25.1
# -r requirements/ci.txt
# -r requirements/test.txt
# tox
wheel==0.42.0
wheel==0.43.0
# via
# -r requirements/pip-tools.txt
# pip-tools
zipp==3.17.0
zipp==3.18.1
# via
# -r requirements/pip-tools.txt
# importlib-metadata
Expand Down
Loading
Loading