[Python-modules-commits] r34288 - in packages/python-babel/trunk/debian (6 files)

barry at users.alioth.debian.org barry at users.alioth.debian.org
Wed Sep 16 16:19:56 UTC 2015


    Date: Wednesday, September 16, 2015 @ 16:19:54
  Author: barry
Revision: 34288

* Team upload.
* debian/copyright: Fill out the `Files: common/*` section to include
  the Unicode license agreement.  (Closes: #795594)
* debian/control: Update Standards-Version to 3.9.6 with no other
  changes necessary.
* d/patches/aa4165d.patch: Upstream patch to fix test suite with newer
  versions of pytz.
* d/watch: Use the pypi.debian.net redirector.

Added:
  packages/python-babel/trunk/debian/patches/aa4165d.patch
Modified:
  packages/python-babel/trunk/debian/changelog
  packages/python-babel/trunk/debian/control
  packages/python-babel/trunk/debian/copyright
  packages/python-babel/trunk/debian/patches/series
  packages/python-babel/trunk/debian/watch

Modified: packages/python-babel/trunk/debian/changelog
===================================================================
--- packages/python-babel/trunk/debian/changelog	2015-09-15 21:32:23 UTC (rev 34287)
+++ packages/python-babel/trunk/debian/changelog	2015-09-16 16:19:54 UTC (rev 34288)
@@ -1,3 +1,16 @@
+python-babel (1.3+dfsg.1-6) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * debian/copyright: Fill out the `Files: common/*` section to include
+    the Unicode license agreement.  (Closes: #795594)
+  * debian/control: Update Standards-Version to 3.9.6 with no other
+    changes necessary.
+  * d/patches/aa4165d.patch: Upstream patch to fix test suite with newer
+    versions of pytz.
+  * d/watch: Use the pypi.debian.net redirector.
+
+ -- Barry Warsaw <barry at debian.org>  Wed, 16 Sep 2015 11:56:08 -0400
+
 python-babel (1.3+dfsg.1-5) unstable; urgency=medium
 
   * Team upload.

Modified: packages/python-babel/trunk/debian/control
===================================================================
--- packages/python-babel/trunk/debian/control	2015-09-15 21:32:23 UTC (rev 34287)
+++ packages/python-babel/trunk/debian/control	2015-09-16 16:19:54 UTC (rev 34288)
@@ -15,7 +15,7 @@
                python3-setuptools,
                python3-six,
                python3-tz
-Standards-Version: 3.9.4
+Standards-Version: 3.9.6
 Homepage: http://babel.pocoo.org/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-babel/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-babel/trunk/

Modified: packages/python-babel/trunk/debian/copyright
===================================================================
--- packages/python-babel/trunk/debian/copyright	2015-09-15 21:32:23 UTC (rev 34287)
+++ packages/python-babel/trunk/debian/copyright	2015-09-16 16:19:54 UTC (rev 34288)
@@ -12,7 +12,58 @@
 License: GPL-2
 
 Files: common/*
-Copyright:
+Copyright: © 1991-2013 Unicode, Inc.
+License: Unicode
+ UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
+ .
+ Unicode Data Files include all data files under the directories
+ http://www.unicode.org/Public/, http://www.unicode.org/reports/, and
+ http://www.unicode.org/cldr/data/. Unicode Data Files do not include PDF
+ online code charts under the directory http://www.unicode.org/Public/.
+ Software includes any source code published in the Unicode Standard or under
+ the directories http://www.unicode.org/Public/,
+ http://www.unicode.org/reports/, and http://www.unicode.org/cldr/data/.
+ .
+ NOTICE TO USER: Carefully read the following legal agreement. BY DOWNLOADING,
+ INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES ("DATA
+ FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO
+ BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT
+ AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR
+ SOFTWARE.
+ .
+ COPYRIGHT AND PERMISSION NOTICE
+ .
+ Copyright © 1991-2013 Unicode, Inc. All rights reserved. Distributed under
+ the Terms of Use in http://www.unicode.org/copyright.html.
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of the Unicode data files and any associated documentation (the "Data
+ Files") or Unicode software and any associated documentation (the "Software")
+ to deal in the Data Files or Software without restriction, including without
+ limitation the rights to use, copy, modify, merge, publish, distribute, and/or
+ sell copies of the Data Files or Software, and to permit persons to whom the
+ Data Files or Software are furnished to do so, provided that (a) the above
+ copyright notice(s) and this permission notice appear with all copies of the
+ Data Files or Software, (b) both the above copyright notice(s) and this
+ permission notice appear in associated documentation, and (c) there is clear
+ notice in each modified Data File or in the Software as well as in the
+ documentation associated with the Data File(s) or Software that the data or
+ software has been modified.
+ .
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD
+ PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
+ THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
+ DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE
+ DATA FILES OR SOFTWARE.
+ .
+ Except as contained in this notice, the name of a copyright holder shall
+ not be used in advertising or otherwise to promote the sale, use or other
+ dealings in these Data Files or Software without prior written authorization
+ of the copyright holder.
 
 Files: *
 Copyright: (c) 2007-2011, Edgewall Software

Added: packages/python-babel/trunk/debian/patches/aa4165d.patch
===================================================================
--- packages/python-babel/trunk/debian/patches/aa4165d.patch	                        (rev 0)
+++ packages/python-babel/trunk/debian/patches/aa4165d.patch	2015-09-16 16:19:54 UTC (rev 34288)
@@ -0,0 +1,75 @@
+From aa4165df073239a9f6ff01c0b5f6cb430a5b9d10 Mon Sep 17 00:00:00 2001
+From: Armin Ronacher <armin.ronacher at active-4.com>
+Date: Mon, 27 Jul 2015 13:22:31 +0200
+Subject: [PATCH] Fixed a bunch of broken timezone tests.
+
+---
+ babel/dates.py      |  8 ++++----
+ tests/test_dates.py | 14 +++++++-------
+ 2 files changed, 11 insertions(+), 11 deletions(-)
+
+--- a/babel/dates.py
++++ b/babel/dates.py
+@@ -282,17 +282,17 @@
+     u'GMT+00:00'
+ 
+     >>> tz = get_timezone('America/Los_Angeles')
+-    >>> dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)
++    >>> dt = tz.localize(datetime(2007, 4, 1, 15, 30))
+     >>> get_timezone_gmt(dt, locale='en')
+-    u'GMT-08:00'
++    u'GMT-07:00'
+     >>> get_timezone_gmt(dt, 'short', locale='en')
+-    u'-0800'
++    u'-0700'
+ 
+     The long format depends on the locale, for example in France the acronym
+     UTC string is used instead of GMT:
+ 
+     >>> get_timezone_gmt(dt, 'long', locale='fr_FR')
+-    u'UTC-08:00'
++    u'UTC-07:00'
+ 
+     .. versionadded:: 0.9
+ 
+--- a/tests/test_dates.py
++++ b/tests/test_dates.py
+@@ -178,19 +178,19 @@
+ 
+     def test_timezone_rfc822(self):
+         tz = timezone('Europe/Berlin')
+-        t = time(15, 30, tzinfo=tz)
++        t = tz.localize(datetime(2015, 1, 1, 15, 30))
+         fmt = dates.DateTimeFormat(t, locale='de_DE')
+         self.assertEqual('+0100', fmt['Z'])
+ 
+     def test_timezone_gmt(self):
+         tz = timezone('Europe/Berlin')
+-        t = time(15, 30, tzinfo=tz)
++        t = tz.localize(datetime(2015, 1, 1, 15, 30))
+         fmt = dates.DateTimeFormat(t, locale='de_DE')
+         self.assertEqual('GMT+01:00', fmt['ZZZZ'])
+ 
+     def test_timezone_name(self):
+         tz = timezone('Europe/Paris')
+-        dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)
++        dt = tz.localize(datetime(2007, 4, 1, 15, 30))
+         fmt = dates.DateTimeFormat(dt, locale='fr_FR')
+         self.assertEqual('Heure : France', fmt['v'])
+ 
+@@ -381,11 +381,11 @@
+     assert dates.get_timezone_gmt(dt, locale='en') == six.u('GMT+00:00')
+ 
+     tz = timezone('America/Los_Angeles')
+-    dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz)
+-    assert dates.get_timezone_gmt(dt, locale='en') == six.u('GMT-08:00')
+-    assert dates.get_timezone_gmt(dt, 'short', locale='en') == six.u('-0800')
++    dt = tz.localize(datetime(2007, 4, 1, 15, 30))
++    assert dates.get_timezone_gmt(dt, locale='en') == u'GMT-07:00'
++    assert dates.get_timezone_gmt(dt, 'short', locale='en') == u'-0700'
+ 
+-    assert dates.get_timezone_gmt(dt, 'long', locale='fr_FR') == six.u('UTC-08:00')
++    assert dates.get_timezone_gmt(dt, 'long', locale='fr_FR') == u'UTC-07:00'
+ 
+ 
+ def test_get_timezone_location():

Modified: packages/python-babel/trunk/debian/patches/series
===================================================================
--- packages/python-babel/trunk/debian/patches/series	2015-09-15 21:32:23 UTC (rev 34287)
+++ packages/python-babel/trunk/debian/patches/series	2015-09-16 16:19:54 UTC (rev 34288)
@@ -1,3 +1,4 @@
 0001-Fixup-get_currency_name-test.patch
 adds-support-for-python-3.2.patch
 fix-sphinx-conf.py-to-avoid-intersphinx.patch
+aa4165d.patch

Modified: packages/python-babel/trunk/debian/watch
===================================================================
--- packages/python-babel/trunk/debian/watch	2015-09-15 21:32:23 UTC (rev 34287)
+++ packages/python-babel/trunk/debian/watch	2015-09-16 16:19:54 UTC (rev 34288)
@@ -1,3 +1,3 @@
 version=3
 opts="dversionmangle=s/\+dfsg\.\d+$//" \
-https://pypi.python.org/packages/source/B/Babel/Babel-([\d\.]+)\.tar\.gz debian debian/repack
+https://pypi.debian.net/Babel/Babel-([\d\.]+)\.tar\.gz debian debian/repack




More information about the Python-modules-commits mailing list