Skip to content

Commit

Permalink
fix: install backports-zoneinfo only for python<3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Feb 26, 2024
1 parent 8fd2910 commit ccf8fdd
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 85 deletions.
3 changes: 2 additions & 1 deletion requirements/base.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ genanki # used to generate Anki flash card deck files convenient
mysqlclient
openai # OpenAI library used to generate flash card candidates from course content
pytz
setuptools
setuptools #setuptools is needed for Python 3.12
backports.zoneinfo;python_version<"3.9" # Can be removed once we upgrade to Python 3.12
17 changes: 12 additions & 5 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
#
anki==2.1.25
anki==23.12.1
# via -r requirements/base.in
annotated-types==0.6.0
# via pydantic
Expand All @@ -16,8 +16,6 @@ asgiref==3.7.2
# via
# django
# django-cors-headers
backports-zoneinfo==0.2.1
# via django
beautifulsoup4==4.12.3
# via anki
cached-property==1.5.2
Expand Down Expand Up @@ -122,10 +120,14 @@ idna==3.6
# anyio
# httpx
# requests
importlib-metadata==7.0.1
# via markdown
itypes==1.2.0
# via coreapi
jinja2==3.1.3
# via coreschema
markdown==3.5.2
# via anki
markupsafe==2.1.5
# via jinja2
mysqlclient==2.2.4
Expand All @@ -140,6 +142,8 @@ openai==1.12.0
# via -r requirements/base.in
openapi-codec==1.3.2
# via django-rest-swagger
orjson==3.9.15
# via anki
pbr==6.0.0
# via stevedore
protobuf==4.25.3
Expand All @@ -163,6 +167,8 @@ pymongo==3.13.0
# via edx-opaque-keys
pynacl==1.5.0
# via edx-django-utils
pysocks==1.7.1
# via requests
python3-openid==3.2.0
# via social-auth-core
pytz==2024.1
Expand Down Expand Up @@ -217,7 +223,6 @@ tqdm==4.66.2
# via openai
typing-extensions==4.10.0
# via
# annotated-types
# anyio
# asgiref
# edx-opaque-keys
Expand All @@ -228,6 +233,8 @@ uritemplate==4.1.1
# via coreapi
urllib3==2.2.1
# via requests
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
setuptools==69.1.1
Expand Down
2 changes: 1 addition & 1 deletion requirements/ci.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
Expand Down
1 change: 0 additions & 1 deletion requirements/common_constraints.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@



# A central location for most common version constraints
# (across edx repos) for pip-installation.
#
Expand Down
24 changes: 11 additions & 13 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
#
anki==2.1.25
anki==23.12.1
# via -r requirements/validation.txt
annotated-types==0.6.0
# via
Expand All @@ -25,10 +25,6 @@ astroid==3.1.0
# -r requirements/validation.txt
# pylint
# pylint-celery
backports-zoneinfo==0.2.1
# via
# -r requirements/validation.txt
# django
beautifulsoup4==4.12.3
# via
# -r requirements/validation.txt
Expand Down Expand Up @@ -241,11 +237,8 @@ importlib-metadata==7.0.1
# -r requirements/validation.txt
# build
# keyring
# markdown
# twine
importlib-resources==6.1.2
# via
# -r requirements/validation.txt
# keyring
iniconfig==2.0.0
# via
# -r requirements/validation.txt
Expand Down Expand Up @@ -274,6 +267,10 @@ keyring==24.3.0
# twine
lxml==5.1.0
# via edx-i18n-tools
markdown==3.5.2
# via
# -r requirements/validation.txt
# anki
markdown-it-py==3.0.0
# via
# -r requirements/validation.txt
Expand Down Expand Up @@ -315,6 +312,10 @@ openapi-codec==1.3.2
# via
# -r requirements/validation.txt
# django-rest-swagger
orjson==3.9.15
# via
# -r requirements/validation.txt
# anki
packaging==23.2
# via
# -r requirements/pip-tools.txt
Expand Down Expand Up @@ -571,7 +572,6 @@ twine==5.0.0
typing-extensions==4.10.0
# via
# -r requirements/validation.txt
# annotated-types
# anyio
# asgiref
# astroid
Expand All @@ -580,7 +580,6 @@ typing-extensions==4.10.0
# pydantic
# pydantic-core
# pylint
# rich
uritemplate==4.1.1
# via
# -r requirements/validation.txt
Expand All @@ -603,7 +602,6 @@ zipp==3.17.0
# -r requirements/pip-tools.txt
# -r requirements/validation.txt
# importlib-metadata
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
pip==24.0
Expand Down
43 changes: 22 additions & 21 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
#
accessible-pygments==0.0.4
# via pydata-sphinx-theme
alabaster==0.7.13
alabaster==0.7.16
# via sphinx
anki==2.1.25
anki==23.12.1
# via -r requirements/test.txt
annotated-types==0.6.0
# via
Expand All @@ -33,10 +33,6 @@ babel==2.14.0
# via
# pydata-sphinx-theme
# sphinx
backports-zoneinfo==0.2.1
# via
# -r requirements/test.txt
# django
beautifulsoup4==4.12.3
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -172,7 +168,7 @@ djangorestframework==3.14.0
# edx-drf-extensions
doc8==1.1.1
# via -r requirements/doc.in
docutils==0.19
docutils==0.20.1
# via
# doc8
# pydata-sphinx-theme
Expand Down Expand Up @@ -240,12 +236,12 @@ imagesize==1.4.1
# via sphinx
importlib-metadata==7.0.1
# via
# -r requirements/test.txt
# build
# keyring
# markdown
# sphinx
# twine
importlib-resources==6.1.2
# via keyring
iniconfig==2.0.0
# via
# -r requirements/test.txt
Expand All @@ -268,6 +264,10 @@ jinja2==3.1.3
# sphinx
keyring==24.3.0
# via twine
markdown==3.5.2
# via
# -r requirements/test.txt
# anki
markdown-it-py==3.0.0
# via rich
markupsafe==2.1.5
Expand Down Expand Up @@ -301,6 +301,10 @@ openapi-codec==1.3.2
# via
# -r requirements/test.txt
# django-rest-swagger
orjson==3.9.15
# via
# -r requirements/test.txt
# anki
packaging==23.2
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -425,7 +429,6 @@ python3-openid==3.2.0
pytz==2024.1
# via
# -r requirements/test.txt
# babel
# djangorestframework
pyyaml==6.0.1
# via
Expand Down Expand Up @@ -499,24 +502,24 @@ soupsieve==2.5
# via
# -r requirements/test.txt
# beautifulsoup4
sphinx==6.2.1
sphinx==7.2.6
# via
# -r requirements/doc.in
# pydata-sphinx-theme
# sphinx-book-theme
sphinx-book-theme==1.0.1
sphinx-book-theme==1.1.2
# via -r requirements/doc.in
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-applehelp==1.0.8
# via sphinx
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-devhelp==1.0.6
# via sphinx
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-htmlhelp==2.0.5
# via sphinx
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-qthelp==1.0.7
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
sphinxcontrib-serializinghtml==1.1.10
# via sphinx
sqlparse==0.4.4
# via
Expand Down Expand Up @@ -559,7 +562,6 @@ twine==5.0.0
typing-extensions==4.10.0
# via
# -r requirements/test.txt
# annotated-types
# anyio
# asgiref
# astroid
Expand All @@ -569,7 +571,6 @@ typing-extensions==4.10.0
# pydantic-core
# pydata-sphinx-theme
# pylint
# rich
uritemplate==4.1.1
# via
# -r requirements/test.txt
Expand All @@ -585,8 +586,8 @@ virtualenv==20.25.1
# tox
zipp==3.17.0
# via
# -r requirements/test.txt
# importlib-metadata
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
setuptools==69.1.1
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip-tools.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
Expand Down
2 changes: 1 addition & 1 deletion requirements/pip.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# make upgrade
Expand Down
Loading

0 comments on commit ccf8fdd

Please sign in to comment.