回退 'Pull Request !1 : remove unnecessary patches'

This commit is contained in:
yanan-rock 2020-01-16 16:57:05 +08:00 committed by Gitee
parent d676da7638
commit d79208ac51
3 changed files with 1130 additions and 4 deletions

1114
pytz-zoneinfo.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,14 @@
Name: pytz
Version: 2019.2
Release: 2
Release: 1
Summary: World Timezone Definitions for Python
License: MIT
URL: http://pytz.sourceforge.net/
Source0: https://github.com/stub42/pytz/archive/pytz-2019.2.tar.gz
Patch0: pytz-zoneinfo.patch
Patch1: remove_tzinfo_test.patch
BuildArch: noarch
%description
@ -68,8 +71,5 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
%{python3_sitelib}/*
%changelog
* Sat Jan 11 2020 zhangrui <zhangrui182@huawei.com> - 2019.2-2
- remove unnecessary patches
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 2019.2-1
- Package init

12
remove_tzinfo_test.patch Normal file
View File

@ -0,0 +1,12 @@
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)