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 Mar 28, 2024
1 parent 1ef9006 commit be7765d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
6 changes: 4 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
#
asgiref==3.8.1
# via django
backports-zoneinfo==0.2.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 Down
3 changes: 3 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
# linking to it here is good.

-c common_constraints.txt

# For python greater than or equal to 3.9 backports.zoneinfo causing failures
backports.zoneinfo; python_version<'3.9'
9 changes: 2 additions & 7 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ asgiref==3.8.1
# via
# -r requirements/test.txt
# django
astroid==3.1.0
astroid==3.1.0
# via
# -r requirements/test.txt
# pylint
# pylint-celery
backports-zoneinfo==0.2.1
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/test.txt
# django
build==1.2.1
Expand Down Expand Up @@ -73,7 +73,6 @@ coverage[toml]==7.4.4
# via
# -r requirements/test.txt
# pytest-cov
cryptography==42.0.5
cryptography==42.0.5
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -193,7 +192,6 @@ pyjwt[crypto]==2.8.0
# via
# -r requirements/test.txt
# social-auth-core
pylint==3.1.0
pylint==3.1.0
# via
# -r requirements/test.txt
Expand Down Expand Up @@ -271,7 +269,6 @@ sqlparse==0.4.4
# via
# -r requirements/test.txt
# django
stevedore==5.2.0
stevedore==5.2.0
# via
# -r requirements/test.txt
Expand All @@ -293,7 +290,6 @@ tomli==2.0.1
# pyproject-hooks
# pytest
# tox
tomlkit==0.12.4
tomlkit==0.12.4
# via
# -r requirements/test.txt
Expand All @@ -306,7 +302,6 @@ traceback2==1.4.0
# via
# -r requirements/test.txt
# unittest2
typing-extensions==4.10.0
typing-extensions==4.10.0
# via
# -r requirements/test.txt
Expand Down
9 changes: 2 additions & 7 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ asgiref==3.8.1
# via
# -r requirements/base.txt
# django
astroid==3.1.0
astroid==3.1.0
# via
# pylint
# pylint-celery
backports-zoneinfo==0.2.1
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# django
cachetools==5.3.3
Expand Down Expand Up @@ -50,7 +50,6 @@ coverage[toml]==7.4.4
# via
# -r requirements/test.in
# pytest-cov
cryptography==42.0.5
cryptography==42.0.5
# via
# -r requirements/base.txt
Expand Down Expand Up @@ -131,7 +130,6 @@ pyjwt[crypto]==2.8.0
# via
# -r requirements/base.txt
# social-auth-core
pylint==3.1.0
pylint==3.1.0
# via
# edx-lint
Expand Down Expand Up @@ -191,7 +189,6 @@ sqlparse==0.4.4
# via
# -r requirements/base.txt
# django
stevedore==5.2.0
stevedore==5.2.0
# via code-annotations
text-unidecode==1.3
Expand All @@ -203,14 +200,12 @@ tomli==2.0.1
# pyproject-api
# pytest
# tox
tomlkit==0.12.4
tomlkit==0.12.4
# via pylint
tox==4.14.2
# via -r requirements/test.in
traceback2==1.4.0
# via unittest2
typing-extensions==4.10.0
typing-extensions==4.10.0
# via
# -r requirements/base.txt
Expand Down

0 comments on commit be7765d

Please sign in to comment.