Skip to content

Commit

Permalink
Merge pull request #433 from openedx/jenkins/python312-support-4988d93
Browse files Browse the repository at this point in the history
feat!: add Python 3.12 and drop Django 3.2 support
  • Loading branch information
UsamaSadiq authored Mar 7, 2024
2 parents 4988d93 + 5d79c73 commit fe601a2
Show file tree
Hide file tree
Showing 19 changed files with 398 additions and 237 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ jobs:
run_tests:
name: Tests
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, data-django32, data-django42, reporting-django32, reporting-django42]
python-version: ['3.8', '3.12']
toxenv: [quality, data-django42, reporting-django42]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -48,7 +49,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.8' && (matrix.toxenv=='django42-data' || matrix.toxenv=='django42-reporting')
if: matrix.python-version == '3.12' && (matrix.toxenv=='django42-data' || matrix.toxenv=='django42-reporting')
uses: codecov/codecov-action@v3
with:
flags: unittests
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ Unreleased
----------

=========================
[6.2.0] - 2024-03-06
---------------------
* Dropped support for ``Django<4.2``
* Added support for ``Python 3.12``

[6.1.1] - 2024-02-22
---------------------
* Update uuid4 regex
Expand Down
2 changes: 1 addition & 1 deletion enterprise_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Enterprise data api application. This Django app exposes API endpoints used by enterprises.
"""

__version__ = "6.1.1"
__version__ = "6.2.0"
70 changes: 48 additions & 22 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,32 @@
#
# make upgrade
#
amqp==2.6.1
amqp==5.2.0
# via kombu
asgiref==3.7.2
# via django
asn1crypto==1.5.1
# via snowflake-connector-python
awscli==1.32.35
awscli==1.32.56
# via -r requirements/reporting.in
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# celery
# django
# kombu
bcrypt==4.1.2
# via paramiko
billiard==3.6.4.0
billiard==4.2.0
# via celery
boto3==1.34.35
boto3==1.34.56
# via -r requirements/reporting.in
botocore==1.34.35
botocore==1.34.56
# via
# awscli
# boto3
# s3transfer
celery==4.4.7
celery==5.3.6
# via -r requirements/reporting.in
certifi==2024.2.2
# via
Expand All @@ -40,10 +46,21 @@ charset-normalizer==3.3.2
# requests
# snowflake-connector-python
click==8.1.7
# via edx-django-utils
# via
# celery
# click-didyoumean
# click-plugins
# click-repl
# edx-django-utils
click-didyoumean==0.3.0
# via celery
click-plugins==1.1.1
# via celery
click-repl==0.3.0
# via celery
colorama==0.4.4
# via awscli
cryptography==41.0.7
cryptography==42.0.5
# via
# -r requirements/reporting.in
# django-fernet-fields-v2
Expand All @@ -52,7 +69,7 @@ cryptography==41.0.7
# pyjwt
# pyopenssl
# snowflake-connector-python
django==3.2.23
django==4.2.11
# via
# -c requirements/common_constraints.txt
# -r requirements/base.in
Expand All @@ -74,7 +91,7 @@ django-fernet-fields-v2==0.9
# via -r requirements/base.in
django-filter==23.5
# via -r requirements/base.in
django-model-utils==4.3.1
django-model-utils==4.4.0
# via
# -r requirements/base.in
# edx-rbac
Expand Down Expand Up @@ -112,7 +129,7 @@ edx-rest-api-client==5.6.1
# via -r requirements/base.in
factory-boy==3.3.0
# via -r requirements/base.in
faker==22.7.0
faker==24.0.0
# via factory-boy
filelock==3.13.1
# via snowflake-connector-python
Expand All @@ -126,11 +143,11 @@ jmespath==1.0.1
# via
# boto3
# botocore
kombu==4.6.11
kombu==5.3.5
# via celery
monotonic==1.6
# via py2neo
newrelic==9.6.0
newrelic==9.7.0
# via edx-django-utils
packaging==23.2
# via
Expand All @@ -146,6 +163,8 @@ pgpy==0.6.0
# via -r requirements/reporting.in
platformdirs==3.11.0
# via snowflake-connector-python
prompt-toolkit==3.0.43
# via click-repl
psutil==5.9.8
# via edx-django-utils
py2neo @ https://github.com/overhangio/py2neo/releases/download/2021.2.3/py2neo-2021.2.3.tar.gz
Expand All @@ -172,17 +191,16 @@ pynacl==1.5.0
# via
# edx-django-utils
# paramiko
pyopenssl==23.3.0
pyopenssl==24.0.0
# via snowflake-connector-python
python-dateutil==2.8.2
python-dateutil==2.9.0.post0
# via
# botocore
# celery
# faker
# vertica-python
pytz==2024.1
# via
# celery
# django
# djangorestframework
# interchange
# snowflake-connector-python
Expand Down Expand Up @@ -215,24 +233,29 @@ six==1.16.0
# vertica-python
slumber==0.7.1
# via edx-rest-api-client
snowflake-connector-python==3.7.0
snowflake-connector-python==3.7.1
# via -r requirements/reporting.in
sortedcontainers==2.4.0
# via snowflake-connector-python
sqlparse==0.4.4
# via django
stevedore==5.1.0
stevedore==5.2.0
# via
# edx-django-utils
# edx-opaque-keys
tomlkit==0.12.3
tomlkit==0.12.4
# via snowflake-connector-python
typing-extensions==4.9.0
typing-extensions==4.10.0
# via
# asgiref
# edx-opaque-keys
# faker
# kombu
# snowflake-connector-python
tzdata==2024.1
# via
# backports-zoneinfo
# celery
unicodecsv==0.14.1
# via -r requirements/reporting.in
urllib3==1.26.18
Expand All @@ -243,7 +266,10 @@ urllib3==1.26.18
# snowflake-connector-python
vertica-python==1.3.8
# via -r requirements/reporting.in
vine==1.3.0
vine==5.1.0
# via
# amqp
# celery
# kombu
wcwidth==0.2.13
# via prompt-toolkit
30 changes: 19 additions & 11 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
#
# make upgrade
#
coverage==7.4.1
cachetools==5.3.3
# via tox
chardet==5.2.0
# via tox
colorama==0.4.6
# via tox
coverage==7.4.3
# via -r requirements/ci.in
distlib==0.3.8
# via virtualenv
Expand All @@ -13,20 +19,22 @@ filelock==3.13.1
# tox
# virtualenv
packaging==23.2
# via tox
# 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
virtualenv==20.25.0
# pyproject-api
# tox
tox==4.14.0
# via -r requirements/ci.in
virtualenv==20.25.1
# via tox
2 changes: 1 addition & 1 deletion requirements/common_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


# 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
Expand Down
3 changes: 2 additions & 1 deletion requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
# Common constraints for edx repos
-c common_constraints.txt

tox<4.0.0
# Needed for Django 4.2 + Python 3.12 compatibility
backports.zoneinfo; python_version<"3.9"
Loading

0 comments on commit fe601a2

Please sign in to comment.