File: Remove_Zoneinfo_Tarball.patch

package info (click to toggle)
python-dateutil 2.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,436 kB
  • sloc: python: 12,424; makefile: 148; sh: 18
file content (72 lines) | stat: -rw-r--r-- 2,688 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
From: =?utf-8?q?Guido_G=C3=BCnther?= <agx@sigxcpu.org>
Date: Sat, 27 Sep 2014 20:52:15 +0200
Subject: Remove Zoneinfo Tarball

---
 MANIFEST.in                          | 1 +
 dateutil/test/test_tz.py             | 2 ++
 python_dateutil.egg-info/SOURCES.txt | 3 +--
 setup.py                             | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index dd5142e..40d4e6b 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -2,3 +2,4 @@ include LICENSE NEWS zonefile_metadata.json updatezinfo.py
 recursive-include dateutil/test *
 global-exclude __pycache__
 global-exclude *.py[co]
+exclude dateutil/zoneinfo/dateutil-zoneinfo.tar.gz
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py
index 54dfb1b..9b3806a 100644
--- a/dateutil/test/test_tz.py
+++ b/dateutil/test/test_tz.py
@@ -1048,6 +1048,7 @@ def test_gettz_cache_clear():
     assert NYC1 is not NYC2
 
 
+@unittest.skip("No prepackaged zoneinfo tarball")
 class ZoneInfoGettzTest(GettzTest, WarningTestMixin):
     def gettz(self, name):
         zoneinfo_file = zoneinfo.get_zonefile_instance()
@@ -2226,6 +2227,7 @@ class TzPickleTest(PicklableMixin, unittest.TestCase):
     def testPickleTzGettz(self):
         self.assertPicklable(tz.gettz('America/New_York'))
 
+    @unittest.skip("No prepackaged zoneinfo tarball")
     def testPickleZoneFileGettz(self):
         zoneinfo_file = zoneinfo.get_zonefile_instance()
         tzi = zoneinfo_file.get('America/New_York')
diff --git a/python_dateutil.egg-info/SOURCES.txt b/python_dateutil.egg-info/SOURCES.txt
index c967a94..79a4319 100644
--- a/python_dateutil.egg-info/SOURCES.txt
+++ b/python_dateutil.egg-info/SOURCES.txt
@@ -54,7 +54,6 @@ dateutil/tz/_factories.py
 dateutil/tz/tz.py
 dateutil/tz/win.py
 dateutil/zoneinfo/__init__.py
-dateutil/zoneinfo/dateutil-zoneinfo.tar.gz
 dateutil/zoneinfo/rebuild.py
 docs/Makefile
 docs/changelog.rst
@@ -76,4 +75,4 @@ python_dateutil.egg-info/SOURCES.txt
 python_dateutil.egg-info/dependency_links.txt
 python_dateutil.egg-info/requires.txt
 python_dateutil.egg-info/top_level.txt
-python_dateutil.egg-info/zip-safe
\ No newline at end of file
+python_dateutil.egg-info/zip-safe
diff --git a/setup.py b/setup.py
index b59bd63..b6452bc 100644
--- a/setup.py
+++ b/setup.py
@@ -60,7 +60,7 @@ setup(name="python-dateutil",
       long_description_content_type='text/x-rst',
       packages=PACKAGES,
       python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
-      package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
+      package_data={"dateutil.zoneinfo": []},
       zip_safe=True,
       requires=["six"],
       setup_requires=['setuptools_scm'],