File: Remove_Zoneinfo_Tarball.patch

package info (click to toggle)
python-dateutil 2.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 908 kB
  • ctags: 1,329
  • sloc: python: 9,045; sh: 11; makefile: 5
file content (77 lines) | stat: -rw-r--r-- 3,045 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
73
74
75
76
77
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             | 3 +++
 python_dateutil.egg-info/SOURCES.txt | 3 +--
 setup.py                             | 1 -
 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 cd80ce4..240b383 100644
--- a/dateutil/test/test_tz.py
+++ b/dateutil/test/test_tz.py
@@ -249,12 +249,14 @@ class TZTest(unittest.TestCase):
         self.assertEqual(datetime(2003, 10, 26, 1, 00, tzinfo=tzc).tzname(),
                          "EST")
 
+    @unittest.skip("No tz database")
     def testZoneInfoFileStart1(self):
         tz = zoneinfo.gettz("EST5EDT")
         self.assertEqual(datetime(2003, 4, 6, 1, 59, tzinfo=tz).tzname(), "EST",
                          MISSING_TARBALL)
         self.assertEqual(datetime(2003, 4, 6, 2, 00, tzinfo=tz).tzname(), "EDT")
 
+    @unittest.skip("No tz database")
     def testZoneInfoFileEnd1(self):
         tzc = zoneinfo.gettz("EST5EDT")
         self.assertEqual(datetime(2003, 10, 26, 0, 59, tzinfo=tzc).tzname(),
@@ -262,6 +264,7 @@ class TZTest(unittest.TestCase):
         self.assertEqual(datetime(2003, 10, 26, 1, 00, tzinfo=tzc).tzname(),
                          "EST")
 
+    @unittest.skip("No tz database")
     def testZoneInfoOffsetSignal(self):
         utc = zoneinfo.gettz("UTC")
         nyc = zoneinfo.gettz("America/New_York")
diff --git a/python_dateutil.egg-info/SOURCES.txt b/python_dateutil.egg-info/SOURCES.txt
index b012f60..4050194 100644
--- a/python_dateutil.egg-info/SOURCES.txt
+++ b/python_dateutil.egg-info/SOURCES.txt
@@ -25,11 +25,10 @@ dateutil/tz/_common.py
 dateutil/tz/tz.py
 dateutil/tz/win.py
 dateutil/zoneinfo/__init__.py
-dateutil/zoneinfo/dateutil-zoneinfo.tar.gz
 dateutil/zoneinfo/rebuild.py
 python_dateutil.egg-info/PKG-INFO
 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 4f44c68..97fc2e4 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,6 @@ The dateutil module provides powerful extensions to the
 datetime module available in the Python standard library.
 """,
       packages=["dateutil", "dateutil.zoneinfo", "dateutil.tz"],
-      package_data={"dateutil.zoneinfo": ["dateutil-zoneinfo.tar.gz"]},
       zip_safe=True,
       requires=["six"],
       install_requires=["six >=1.5"],  # XXX fix when packaging is sane again