diff --git a/backport-pytz-zoneinfo.patch b/backport-pytz-zoneinfo.patch index 7e1c6f372761d23de41cf7260df42ada3fbf6902..4daa6619ec94f5425cb394b60f7d804b1c690d86 100644 --- a/backport-pytz-zoneinfo.patch +++ b/backport-pytz-zoneinfo.patch @@ -40,11 +40,11 @@ index e2f49fa..65c1d11 100644 --- a/pytz/__init__.py~ 2021-10-04 09:16:08.981477792 -0500 +++ b/pytz/__init__.py 2021-10-04 11:29:19.283758542 -0500 -@@ -502,1041 +502,37 @@ +@@ -502,1042 +502,37 @@ if __name__ == '__main__': _test() --all_timezones = \ +-_all_timezones_unchecked = \ -['Africa/Abidjan', - 'Africa/Accra', - 'Africa/Addis_Ababa', @@ -140,6 +140,7 @@ index e2f49fa..65c1d11 100644 - 'America/Cayman', - 'America/Chicago', - 'America/Chihuahua', +- 'America/Ciudad_Juarez', - 'America/Coral_Harbour', - 'America/Cordoba', - 'America/Costa_Rica', @@ -640,19 +641,19 @@ index e2f49fa..65c1d11 100644 - 'W-SU', - 'WET', - 'Zulu'] -+all_timezones = [] ++_all_timezones_unchecked = [] +for root, dirs, files in os.walk(_tzinfo_dir): + for exclude in 'posix', 'right': + if exclude in dirs: + del dirs[dirs.index(exclude)] + -+ all_timezones.extend(os.path.join(root, tz_file)[len(_tzinfo_dir)+1:] ++ _all_timezones_unchecked.extend(os.path.join(root, tz_file)[len(_tzinfo_dir)+1:] + for tz_file in files + if tz_file not in ['leapseconds', 'README', 'Theory'] + and '.' not in tz_file) + all_timezones = LazyList( - tz for tz in all_timezones if resource_exists(tz)) + tz for tz in _all_timezones_unchecked if resource_exists(tz)) all_timezones_set = LazySet(all_timezones) -common_timezones = \ @@ -745,6 +746,7 @@ index e2f49fa..65c1d11 100644 - 'America/Cayman', - 'America/Chicago', - 'America/Chihuahua', +- 'America/Ciudad_Juarez', - 'America/Costa_Rica', - 'America/Creston', - 'America/Cuiaba', @@ -816,7 +818,6 @@ index e2f49fa..65c1d11 100644 - 'America/Nuuk', - 'America/Ojinaga', - 'America/Panama', -- 'America/Pangnirtung', - 'America/Paramaribo', - 'America/Phoenix', - 'America/Port-au-Prince', diff --git a/pytz-2022.6.tar.gz b/pytz-2022.6.tar.gz deleted file mode 100644 index e16e33c78cde41f911ac87114db2a27052c85002..0000000000000000000000000000000000000000 Binary files a/pytz-2022.6.tar.gz and /dev/null differ diff --git a/pytz-2022.7.1.tar.gz b/pytz-2022.7.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5557104436a5fa6b831d8dbd00e9311bd7c41a8b Binary files /dev/null and b/pytz-2022.7.1.tar.gz differ diff --git a/pytz.spec b/pytz.spec index 33deab346abe63fe2b69f87b8e4ab8d5b8483f67..50689bc0e5b4c64bea91368c8d39b4df1d968e6b 100644 --- a/pytz.spec +++ b/pytz.spec @@ -1,12 +1,12 @@ %bcond_without tests Name: pytz -Version: 2022.6 +Version: 2022.7.1 Release: 1 Summary: World Timezone Definitions for Python License: MIT URL: http://pytz.sourceforge.net/ -Source0: https://files.pythonhosted.org/packages/76/63/1be349ff0a44e4795d9712cc0b2d806f5e063d4d34631b71b832fac715a8/pytz-2022.6.tar.gz +Source0: https://files.pythonhosted.org/packages/03/3e/dc5c793b62c60d0ca0b7e58f1fdd84d5aaa9f8df23e7589b39cc9ce20a03/pytz-2022.7.1.tar.gz Patch0: backport-pytz-zoneinfo.patch Patch1: backport-remove_tzinfo_test.patch @@ -57,6 +57,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %{python3_sitelib}/* %changelog +* Thu Mar 09 2023 zhouyihang - 2022.7.1-1 +- Type:requirement +- ID:NA +- SUG:NA +- DESC:update pytz to 2022.7.1 + * Mon Nov 14 2022 zhouyihang - 2022.6-1 - Type:requirement - ID:NA