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

chore: Upgrade Python requirements #50

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
97 changes: 51 additions & 46 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
#
# make upgrade
#
anki==23.12.1
anki==24.6.3
# via -r requirements/base.in
annotated-types==0.6.0
annotated-types==0.7.0
# via pydantic
anyio==4.3.0
anyio==4.4.0
# via
# httpx
# openai
asgiref==3.7.2
asgiref==3.8.1
# via
# django
# django-cors-headers
beautifulsoup4==4.12.3
# via anki
cached-property==1.5.2
# via genanki
certifi==2024.2.2
certifi==2024.7.4
# via
# httpcore
# httpx
Expand All @@ -41,7 +41,7 @@ coreapi==2.3.3
# openapi-codec
coreschema==0.0.4
# via coreapi
cryptography==42.0.5
cryptography==43.0.0
# via
# pyjwt
# social-auth-core
Expand All @@ -52,9 +52,12 @@ defusedxml==0.8.0rc2
# python3-openid
# social-auth-core
distro==1.9.0
# via openai
django==4.2.10
# via
# anki
# openai
django==4.2.14
# via
# -c requirements/common_constraints.txt
# -r requirements/base.in
# django-cors-headers
# django-crum
Expand All @@ -67,7 +70,7 @@ django==4.2.10
# edx-django-utils
# edx-drf-extensions
# social-auth-app-django
django-cors-headers==4.3.1
django-cors-headers==4.4.0
# via -r requirements/base.in
django-crum==0.7.9
# via edx-django-utils
Expand All @@ -80,81 +83,85 @@ django-waffle==4.1.0
# -r requirements/base.in
# edx-django-utils
# edx-drf-extensions
djangorestframework==3.14.0
djangorestframework==3.15.2
# via
# -r requirements/base.in
# django-rest-swagger
# drf-jwt
# edx-drf-extensions
dnspython==2.6.1
# via pymongo
drf-jwt==1.19.2
# via edx-drf-extensions
edx-auth-backends==4.2.0
edx-auth-backends==4.3.0
# via -r requirements/base.in
edx-django-release-util==1.3.0
edx-django-release-util==1.4.0
# via -r requirements/base.in
edx-django-utils==5.10.1
edx-django-utils==5.14.2
# via
# -r requirements/base.in
# edx-drf-extensions
# edx-rest-api-client
edx-drf-extensions==10.2.0
edx-drf-extensions==10.3.0
# via -r requirements/base.in
edx-opaque-keys==2.5.1
edx-opaque-keys==2.10.0
# via edx-drf-extensions
edx-rest-api-client==5.6.1
edx-rest-api-client==5.7.1
# via -r requirements/base.in
exceptiongroup==1.2.0
exceptiongroup==1.2.2
# via anyio
frozendict==2.4.0
frozendict==2.4.4
# via genanki
genanki==0.13.1
# via -r requirements/base.in
h11==0.14.0
# via httpcore
httpcore==1.0.4
httpcore==1.0.5
# via httpx
httpx==0.27.0
# via openai
idna==3.6
idna==3.7
# via
# anyio
# httpx
# requests
importlib-metadata==7.0.1
# via markdown
importlib-metadata==6.11.0
# via
# -c requirements/common_constraints.txt
# markdown
itypes==1.2.0
# via coreapi
jinja2==3.1.3
jinja2==3.1.4
# via coreschema
markdown==3.5.2
markdown==3.6
# via anki
markupsafe==2.1.5
# via jinja2
mysqlclient==2.2.4
# via -r requirements/base.in
newrelic==9.7.0
newrelic==9.12.0
# via edx-django-utils
oauthlib==3.2.2
# via
# requests-oauthlib
# social-auth-core
openai==1.12.0
openai==1.36.1
# via -r requirements/base.in
openapi-codec==1.3.2
# via django-rest-swagger
orjson==3.9.15
orjson==3.10.6
# via anki
pbr==6.0.0
# via stevedore
protobuf==4.25.3
protobuf==5.27.2
# via anki
psutil==5.9.8
psutil==6.0.0
# via edx-django-utils
pycparser==2.21
pycparser==2.22
# via cffi
pydantic==2.6.2
pydantic==2.8.2
# via openai
pydantic-core==2.16.3
pydantic-core==2.20.1
# via pydantic
pyjwt[crypto]==2.8.0
# via
Expand All @@ -163,7 +170,7 @@ pyjwt[crypto]==2.8.0
# edx-drf-extensions
# edx-rest-api-client
# social-auth-core
pymongo==3.13.0
pymongo==4.8.0
# via edx-opaque-keys
pynacl==1.5.0
# via edx-django-utils
Expand All @@ -172,14 +179,12 @@ pysocks==1.7.1
python3-openid==3.2.0
# via social-auth-core
pytz==2024.1
# via
# -r requirements/base.in
# djangorestframework
# via -r requirements/base.in
pyyaml==6.0.1
# via
# edx-django-release-util
# genanki
requests[socks]==2.31.0
requests[socks]==2.32.3
# via
# anki
# coreapi
Expand All @@ -188,7 +193,7 @@ requests[socks]==2.31.0
# requests-oauthlib
# slumber
# social-auth-core
requests-oauthlib==1.3.1
requests-oauthlib==2.0.0
# via social-auth-core
semantic-version==2.10.0
# via edx-drf-extensions
Expand All @@ -205,23 +210,23 @@ sniffio==1.3.1
# anyio
# httpx
# openai
social-auth-app-django==5.4.0
social-auth-app-django==5.4.2
# via edx-auth-backends
social-auth-core==4.5.3
social-auth-core==4.5.4
# via
# edx-auth-backends
# social-auth-app-django
soupsieve==2.5
# via beautifulsoup4
sqlparse==0.4.4
sqlparse==0.5.1
# via django
stevedore==5.2.0
# via
# edx-django-utils
# edx-opaque-keys
tqdm==4.66.2
tqdm==4.66.4
# via openai
typing-extensions==4.10.0
typing-extensions==4.12.2
# via
# anyio
# asgiref
Expand All @@ -231,11 +236,11 @@ typing-extensions==4.10.0
# pydantic-core
uritemplate==4.1.1
# via coreapi
urllib3==2.2.1
urllib3==2.2.2
# via requests
zipp==3.17.0
zipp==3.19.2
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
setuptools==69.1.1
setuptools==71.1.0
# via -r requirements/base.in
10 changes: 5 additions & 5 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
#
distlib==0.3.8
# via virtualenv
filelock==3.13.1
filelock==3.15.4
# via
# tox
# virtualenv
packaging==23.2
packaging==24.1
# via
# pyproject-api
# tox
platformdirs==4.2.0
platformdirs==4.2.2
# via
# tox
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via tox
py==1.11.0
# via tox
Expand All @@ -34,5 +34,5 @@ tox==3.28.0
# tox-battery
tox-battery==0.6.2
# via -r requirements/ci.in
virtualenv==20.25.1
virtualenv==20.26.3
# via tox
20 changes: 18 additions & 2 deletions requirements/common_constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@


# A central location for most common version constraints
# (across edx repos) for pip-installation.
#
Expand All @@ -15,11 +14,28 @@


# using LTS django version

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
# See https://github.com/openedx/edx-platform/issues/35126 for more info
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

# Cause: https://github.com/openedx/event-tracking/pull/290
# event-tracking 2.4.1 upgrades to pymongo 4.4.0 which is not supported on edx-platform.
# We will pin event-tracking to do not break existing installations
# This can be unpinned once https://github.com/openedx/edx-platform/issues/34586
# has been resolved and edx-platform is running with pymongo>=4.4.0
event-tracking<2.4.1
Loading
Loading