From e93b04f1a0a9291529182f2ced3b21ab26ae3fd9 Mon Sep 17 00:00:00 2001 From: yangl777 Date: Tue, 31 May 2022 20:18:49 +0800 Subject: [PATCH] replace sensitive local name and remove useless patch --- pytz.spec | 9 ++++++++- remove_tzinfo_test.patch | 12 ------------ 2 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 remove_tzinfo_test.patch diff --git a/pytz.spec b/pytz.spec index b498cdf..fe532f3 100644 --- a/pytz.spec +++ b/pytz.spec @@ -2,7 +2,7 @@ Name: pytz Version: 2021.3 -Release: 1 +Release: 2 Summary: World Timezone Definitions for Python License: MIT URL: http://pytz.sourceforge.net/ @@ -44,6 +44,7 @@ python3 for pytz rm -r %{buildroot}%{python3_sitelib}/pytz/zoneinfo pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitelib} sed -i '/pytz\/zoneinfo\/Asia\/Macau/d' %{buildroot}%{python3_sitelib}/*.egg-info/SOURCES.txt +sed -i 's/ROC/Taiwan/g' %{buildroot}%{python3_sitelib}/*.egg-info/SOURCES.txt %check %if %{with tests} @@ -57,6 +58,12 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %{python3_sitelib}/* %changelog +* Tue May 31 2022 yanglu - 2021.3-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:replace sensitive local name and remove useless patch + * Tue Mar 22 2022 xihaochen - 2021.3-1 - Type:bugfix - ID:NA diff --git a/remove_tzinfo_test.patch b/remove_tzinfo_test.patch deleted file mode 100644 index 226b97a..0000000 --- a/remove_tzinfo_test.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/pytz/tests/test_tzinfo.py b/pytz/tests/test_tzinfo.py -index b2640a8..4f5322b 100644 ---- a/pytz/tests/test_tzinfo.py -+++ b/pytz/tests/test_tzinfo.py -@@ -155,6 +155,7 @@ class PicklingTest(unittest.TestCase): - self._roundtrip_tzinfo(localized_tz) - self._roundtrip_datetime(dt.replace(tzinfo=localized_tz)) - -+ @unittest.skip('Fails with system-wide timezone database') - def testRoundtrip(self): - for zone in pytz.all_timezones: - tz = pytz.timezone(zone) -- Gitee