From 7634301111d8199a7e1ae79b580888d52dea795d Mon Sep 17 00:00:00 2001 From: Awais Qureshi Date: Wed, 22 Nov 2023 15:04:35 +0500 Subject: [PATCH] Upgrading pytz package (#33760) * chore: upgrading pytz. --- openedx/core/djangoapps/user_api/tests/test_views.py | 4 ++-- requirements/constraints.txt | 5 ----- requirements/edx/base.txt | 3 +-- requirements/edx/development.txt | 3 +-- requirements/edx/doc.txt | 3 +-- requirements/edx/testing.txt | 3 +-- 6 files changed, 6 insertions(+), 15 deletions(-) diff --git a/openedx/core/djangoapps/user_api/tests/test_views.py b/openedx/core/djangoapps/user_api/tests/test_views.py index fe577d7b85..981cc52dfd 100644 --- a/openedx/core/djangoapps/user_api/tests/test_views.py +++ b/openedx/core/djangoapps/user_api/tests/test_views.py @@ -635,8 +635,8 @@ class CountryTimeZoneListViewTest(UserApiTestCase): 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 """ diff --git a/requirements/constraints.txt b/requirements/constraints.txt index c5f415d45f..e85d5e5e19 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -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 diff --git a/requirements/edx/base.txt b/requirements/edx/base.txt index 34dc1822c6..4795c227d0 100644 --- a/requirements/edx/base.txt +++ b/requirements/edx/base.txt @@ -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 diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index 3a88c5229b..434ce0aba3 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -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 diff --git a/requirements/edx/doc.txt b/requirements/edx/doc.txt index b3e3a6bb24..159805d5f6 100644 --- a/requirements/edx/doc.txt +++ b/requirements/edx/doc.txt @@ -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 diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index f23bca533f..7ca7d2890d 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -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