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 python 3.12 support #410

Merged
merged 1 commit into from
Apr 23, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
python-version: ["3.8", "3.12"]
django-version: ["pinned"]
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions enterprise_access/apps/events/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def get_serializer(cls):
if cls.SERIALIZER is None:
KAFKA_SCHEMA_REGISTRY_CONFIG = {
'url': getattr(settings, 'SCHEMA_REGISTRY_URL', ''),
'basic.auth.user.info': f"{getattr(settings,'SCHEMA_REGISTRY_API_KEY','')}"
f":{getattr(settings,'SCHEMA_REGISTRY_API_SECRET','')}",
'basic.auth.user.info': f"{getattr(settings, 'SCHEMA_REGISTRY_API_KEY', '')}"
f":{getattr(settings, 'SCHEMA_REGISTRY_API_SECRET', '')}",
}
schema_registry_client = SchemaRegistryClient(KAFKA_SCHEMA_REGISTRY_CONFIG)
cls.TRACKING_EVENT_SERIALIZER = AvroSerializer(schema_str=CouponCodeRequestEvent.AVRO_SCHEMA,
Expand Down
16 changes: 10 additions & 6 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ attrs==23.2.0
# referencing
backoff==1.10.0
# via analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# celery
# django
# kombu
billiard==4.2.0
# via celery
celery==5.3.6
celery==5.4.0
# via
# -r requirements/base.in
# django-celery-results
Expand Down Expand Up @@ -168,11 +169,11 @@ edx-drf-extensions==10.3.0
# edx-rbac
edx-enterprise-subsidy-client==0.4.2
# via -r requirements/base.in
edx-opaque-keys[django]==2.5.1
edx-opaque-keys[django]==2.8.0
# via
# edx-drf-extensions
# openedx-events
edx-rbac==1.8.0
edx-rbac==1.9.0
# via -r requirements/base.in
edx-rest-api-client==5.7.0
# via
Expand Down Expand Up @@ -212,15 +213,15 @@ monotonic==1.6
# via analytics-python
mysqlclient==2.2.4
# via -r requirements/base.in
newrelic==9.8.0
newrelic==9.9.0
# via edx-django-utils
oauthlib==3.2.2
# via
# requests-oauthlib
# social-auth-core
openapi-codec==1.3.2
# via django-rest-swagger
openedx-events==9.9.1
openedx-events==9.9.2
# via -r requirements/base.in
packaging==24.0
# via drf-yasg
Expand Down Expand Up @@ -341,3 +342,6 @@ wcwidth==0.2.13
# via prompt-toolkit
zipp==3.18.1
# via importlib-resources

# The following packages are considered to be unsafe in a requirements file:
# setuptools
3 changes: 3 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
# around default model fields vs. the serializer field defs,
# and the discontinued use of OrderedDict in serializers.
djangorestframework<3.15

# For python greater than or equal to 3.9 backports.zoneinfo causing failures
backports.zoneinfo; python_version<'3.9'
34 changes: 12 additions & 22 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ backoff==1.10.0
# via
# -r requirements/validation.txt
# analytics-python
backports-tarfile==1.0.0
backports-tarfile==1.1.1
# via
# -r requirements/validation.txt
# jaraco-context
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -r requirements/validation.txt
# celery
Expand All @@ -57,7 +57,7 @@ cachetools==5.3.3
# via
# -r requirements/validation.txt
# tox
celery==5.3.6
celery==5.4.0
# via
# -r requirements/validation.txt
# django-celery-results
Expand Down Expand Up @@ -136,7 +136,6 @@ cryptography==42.0.5
# via
# -r requirements/validation.txt
# pyjwt
# secretstorage
# social-auth-core
ddt==1.7.2
# via -r requirements/validation.txt
Expand Down Expand Up @@ -269,24 +268,24 @@ edx-i18n-tools==1.5.0
# via -r requirements/dev.in
edx-lint==5.3.6
# via -r requirements/validation.txt
edx-opaque-keys[django]==2.5.1
edx-opaque-keys[django]==2.8.0
# via
# -r requirements/validation.txt
# edx-drf-extensions
# openedx-events
edx-rbac==1.8.0
edx-rbac==1.9.0
# via -r requirements/validation.txt
edx-rest-api-client==5.7.0
# via
# -r requirements/validation.txt
# edx-enterprise-subsidy-client
exceptiongroup==1.2.0
exceptiongroup==1.2.1
# via
# -r requirements/validation.txt
# pytest
factory-boy==3.3.0
# via -r requirements/validation.txt
faker==24.9.0
faker==24.11.0
# via
# -r requirements/validation.txt
# factory-boy
Expand Down Expand Up @@ -343,15 +342,10 @@ jaraco-context==5.3.0
# via
# -r requirements/validation.txt
# keyring
jaraco-functools==4.0.0
jaraco-functools==4.0.1
# via
# -r requirements/validation.txt
# keyring
jeepney==0.8.0
# via
# -r requirements/validation.txt
# keyring
# secretstorage
jinja2==3.1.3
# via
# -r requirements/validation.txt
Expand Down Expand Up @@ -409,7 +403,7 @@ more-itertools==10.2.0
# jaraco-functools
mysqlclient==2.2.4
# via -r requirements/validation.txt
newrelic==9.8.0
newrelic==9.9.0
# via
# -r requirements/validation.txt
# edx-django-utils
Expand All @@ -426,7 +420,7 @@ openapi-codec==1.3.2
# via
# -r requirements/validation.txt
# django-rest-swagger
openedx-events==9.9.1
openedx-events==9.9.2
# via -r requirements/validation.txt
packaging==24.0
# via
Expand Down Expand Up @@ -459,7 +453,7 @@ platformdirs==4.2.0
# pylint
# tox
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via
# -r requirements/validation.txt
# diff-cover
Expand Down Expand Up @@ -623,10 +617,6 @@ rpds-py==0.18.0
# referencing
rules==3.3
# via -r requirements/validation.txt
secretstorage==3.3.3
# via
# -r requirements/validation.txt
# keyring
semantic-version==2.10.0
# via
# -r requirements/validation.txt
Expand Down Expand Up @@ -729,7 +719,7 @@ vine==5.1.0
# amqp
# celery
# kombu
virtualenv==20.25.1
virtualenv==20.25.3
# via
# -r requirements/validation.txt
# tox
Expand Down
24 changes: 14 additions & 10 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ backoff==1.10.0
# via
# -r requirements/test.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/test.txt
# celery
# django
Expand All @@ -59,7 +60,7 @@ cachetools==5.3.3
# via
# -r requirements/test.txt
# tox
celery==5.3.6
celery==5.4.0
# via
# -r requirements/test.txt
# django-celery-results
Expand Down Expand Up @@ -266,24 +267,24 @@ edx-enterprise-subsidy-client==0.4.2
# via -r requirements/test.txt
edx-lint==5.3.6
# via -r requirements/test.txt
edx-opaque-keys[django]==2.5.1
edx-opaque-keys[django]==2.8.0
# via
# -r requirements/test.txt
# edx-drf-extensions
# openedx-events
edx-rbac==1.8.0
edx-rbac==1.9.0
# via -r requirements/test.txt
edx-rest-api-client==5.7.0
# via
# -r requirements/test.txt
# edx-enterprise-subsidy-client
exceptiongroup==1.2.0
exceptiongroup==1.2.1
# via
# -r requirements/test.txt
# pytest
factory-boy==3.3.0
# via -r requirements/test.txt
faker==24.9.0
faker==24.11.0
# via
# -r requirements/test.txt
# factory-boy
Expand Down Expand Up @@ -368,7 +369,7 @@ monotonic==1.6
# analytics-python
mysqlclient==2.2.4
# via -r requirements/test.txt
newrelic==9.8.0
newrelic==9.9.0
# via
# -r requirements/test.txt
# edx-django-utils
Expand All @@ -383,7 +384,7 @@ openapi-codec==1.3.2
# via
# -r requirements/test.txt
# django-rest-swagger
openedx-events==9.9.1
openedx-events==9.9.2
# via -r requirements/test.txt
packaging==24.0
# via
Expand All @@ -408,7 +409,7 @@ platformdirs==4.2.0
# pylint
# tox
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via
# -r requirements/test.txt
# pytest
Expand Down Expand Up @@ -666,7 +667,7 @@ vine==5.1.0
# amqp
# celery
# kombu
virtualenv==20.25.1
virtualenv==20.25.3
# via
# -r requirements/test.txt
# tox
Expand All @@ -679,3 +680,6 @@ zipp==3.18.1
# -r requirements/test.txt
# importlib-metadata
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
# setuptools
14 changes: 7 additions & 7 deletions requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ backoff==1.10.0
# via
# -r requirements/base.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -r requirements/base.txt
# celery
Expand All @@ -40,7 +40,7 @@ billiard==4.2.0
# via
# -r requirements/base.txt
# celery
celery==5.3.6
celery==5.4.0
# via
# -r requirements/base.txt
# django-celery-results
Expand Down Expand Up @@ -199,12 +199,12 @@ edx-drf-extensions==10.3.0
# edx-rbac
edx-enterprise-subsidy-client==0.4.2
# via -r requirements/base.txt
edx-opaque-keys[django]==2.5.1
edx-opaque-keys[django]==2.8.0
# via
# -r requirements/base.txt
# edx-drf-extensions
# openedx-events
edx-rbac==1.8.0
edx-rbac==1.9.0
# via -r requirements/base.txt
edx-rest-api-client==5.7.0
# via
Expand All @@ -218,7 +218,7 @@ gevent==24.2.1
# via -r requirements/production.in
greenlet==3.0.3
# via gevent
gunicorn==21.2.0
gunicorn==22.0.0
# via -r requirements/production.in
idna==3.7
# via
Expand Down Expand Up @@ -272,7 +272,7 @@ mysqlclient==2.2.4
# via
# -r requirements/base.txt
# -r requirements/production.in
newrelic==9.8.0
newrelic==9.9.0
# via
# -r requirements/base.txt
# edx-django-utils
Expand All @@ -285,7 +285,7 @@ openapi-codec==1.3.2
# via
# -r requirements/base.txt
# django-rest-swagger
openedx-events==9.9.1
openedx-events==9.9.2
# via -r requirements/base.txt
packaging==24.0
# via
Expand Down
Loading
Loading