Skip to content

Commit

Permalink
Upgrading pytz package (#33760)
Browse files Browse the repository at this point in the history
* chore: upgrading pytz.
  • Loading branch information
awais786 authored Nov 22, 2023
1 parent c41a506 commit 7634301
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
4 changes: 2 additions & 2 deletions openedx/core/djangoapps/user_api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ def _assert_time_zone_is_valid(self, time_zone_info):
assert time_zone_info['description'] == get_display_time_zone(time_zone_name)

# The time zones count may need to change each time we upgrade pytz
@ddt.data((ALL_TIME_ZONES_URI, 434),
(COUNTRY_TIME_ZONES_URI, 24))
@ddt.data((ALL_TIME_ZONES_URI, 433),
(COUNTRY_TIME_ZONES_URI, 23))
@ddt.unpack
def test_get_basic(self, country_uri, expected_count):
""" Verify that correct time zone info is returned """
Expand Down
5 changes: 0 additions & 5 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ babel==2.11.0
social-auth-app-django==5.0.0
algoliasearch==2.6.3

# pytz>2022 has major changes which are causing test failures.
# Pinning this version for now so this could be fixed in a separate PR later on
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/32093
pytz<2023

# urllib3>=2.0.0 conflicts with elastic search && snowflake-connector-python packages
# which require urllib3<2 for now.
# Issue for unpinning: https://github.com/openedx/edx-platform/issues/32222
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,8 @@ python3-openid==3.2.0 ; python_version >= "3"
# social-auth-core
python3-saml==1.16.0
# via -r requirements/edx/kernel.in
pytz==2022.7.1
pytz==2023.3.post1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/kernel.in
# babel
# django
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1693,9 +1693,8 @@ python3-saml==1.16.0
# via
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
pytz==2022.7.1
pytz==2023.3.post1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
# babel
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1162,9 +1162,8 @@ python3-openid==3.2.0 ; python_version >= "3"
# social-auth-core
python3-saml==1.16.0
# via -r requirements/edx/base.txt
pytz==2022.7.1
pytz==2023.3.post1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
# babel
# django
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1279,9 +1279,8 @@ python3-openid==3.2.0 ; python_version >= "3"
# social-auth-core
python3-saml==1.16.0
# via -r requirements/edx/base.txt
pytz==2022.7.1
pytz==2023.3.post1
# via
# -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt
# babel
# django
Expand Down

0 comments on commit 7634301

Please sign in to comment.