[Python-modules-commits] r20956 - in packages/python3-dateutil/trunk/debian (4 files)

takluyver-guest at users.alioth.debian.org takluyver-guest at users.alioth.debian.org
Wed Mar 28 18:05:25 UTC 2012


    Date: Wednesday, March 28, 2012 @ 18:05:15
  Author: takluyver-guest
Revision: 20956

Repackage source without binary zoneinfo parts

Added:
  packages/python3-dateutil/trunk/debian/patches/remove-zoneinfo-tests.patch
Modified:
  packages/python3-dateutil/trunk/debian/changelog
  packages/python3-dateutil/trunk/debian/patches/series
  packages/python3-dateutil/trunk/debian/rules

Modified: packages/python3-dateutil/trunk/debian/changelog
===================================================================
--- packages/python3-dateutil/trunk/debian/changelog	2012-03-28 17:47:53 UTC (rev 20955)
+++ packages/python3-dateutil/trunk/debian/changelog	2012-03-28 18:05:15 UTC (rev 20956)
@@ -1,3 +1,10 @@
+python3-dateutil (2.0+dfsg1-1) precise; urgency=low
+
+  * Repackage source without binary parts
+  * Remove tests that fail without said parts
+
+ -- Thomas Kluyver <thomas at kluyver.me.uk>  Wed, 28 Mar 2012 18:51:55 +0100
+
 python3-dateutil (2.0-1) unstable; urgency=low
 
   * Initial release (Closes: #665415)

Added: packages/python3-dateutil/trunk/debian/patches/remove-zoneinfo-tests.patch
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/remove-zoneinfo-tests.patch	                        (rev 0)
+++ packages/python3-dateutil/trunk/debian/patches/remove-zoneinfo-tests.patch	2012-03-28 18:05:15 UTC (rev 20956)
@@ -0,0 +1,35 @@
+Date: Wed Mar 28 19:00:38 BST 2012
+Author: Thomas Kluyver <thomas at kluyver.me.uk>
+Subject: Remove tests that depend on binary parts.
+
+The binary zoneinfo parts are removed from the repacked source. These
+three tests fail without them.
+--- a/test.py
++++ b/test.py
+@@ -3886,26 +3886,6 @@
+         self.assertEqual(datetime(2003, 10, 26, 0, 59, tzinfo=tz).tzname(), "EDT")
+         self.assertEqual(datetime(2003, 10, 26, 1, 00, tzinfo=tz).tzname(), "EST")
+ 
+-    def testZoneInfoFileStart1(self):
+-        tz = zoneinfo.gettz("EST5EDT")
+-        self.assertEqual(datetime(2003, 4, 6, 1, 59, tzinfo=tz).tzname(), "EST")
+-        self.assertEqual(datetime(2003, 4, 6, 2, 00, tzinfo=tz).tzname(), "EDT")
+-
+-    def testZoneInfoFileEnd1(self):
+-        tz = zoneinfo.gettz("EST5EDT")
+-        self.assertEqual(datetime(2003, 10, 26, 0, 59, tzinfo=tz).tzname(), "EDT")
+-        self.assertEqual(datetime(2003, 10, 26, 1, 00, tzinfo=tz).tzname(), "EST")
+-
+-    def testZoneInfoOffsetSignal(self):
+-        utc = zoneinfo.gettz("UTC")
+-        nyc = zoneinfo.gettz("America/New_York")
+-        self.assertFalse(any([None in [utc, nyc]]))
+-        t0 = datetime(2007, 11, 4, 0, 30, tzinfo=nyc)
+-        t1 = t0.astimezone(utc)
+-        t2 = t1.astimezone(nyc)
+-        self.assertEqual(t0, t2)
+-        self.assertEqual(nyc.dst(t0), timedelta(hours=1))
+-
+     def testICalStart1(self):
+         tz = tzical(StringIO(self.TZICAL_EST5EDT)).get()
+         self.assertEqual(datetime(2003, 4, 6, 1, 59, tzinfo=tz).tzname(), "EST")

Modified: packages/python3-dateutil/trunk/debian/patches/series
===================================================================
--- packages/python3-dateutil/trunk/debian/patches/series	2012-03-28 17:47:53 UTC (rev 20955)
+++ packages/python3-dateutil/trunk/debian/patches/series	2012-03-28 18:05:15 UTC (rev 20956)
@@ -2,3 +2,4 @@
 update-readme.patch
 test-3.2.patch
 read-tz.patch
+remove-zoneinfo-tests.patch

Modified: packages/python3-dateutil/trunk/debian/rules
===================================================================
--- packages/python3-dateutil/trunk/debian/rules	2012-03-28 17:47:53 UTC (rev 20955)
+++ packages/python3-dateutil/trunk/debian/rules	2012-03-28 18:05:15 UTC (rev 20956)
@@ -22,7 +22,8 @@
 			--root=$(CURDIR)/debian//python3-dateutil; \
 	done
 	
-	rm -f debian/python3-dateutil/usr/lib/python3/dist-packages/dateutil/zoneinfo/zoneinfo-*.tar.gz
+	# The source should now be repacked without this file.
+	#rm -f debian/python3-dateutil/usr/lib/python3/dist-packages/dateutil/zoneinfo/zoneinfo-*.tar.gz
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))




More information about the Python-modules-commits mailing list