debian/0000755000000000000000000000000012302376515007172 5ustar debian/test-pytz0000644000000000000000000000053011763540711011077 0ustar #!/usr/bin/python """Run to test the system python""" import doctest import pytz import pytz.tzinfo import sys errors = 0 tests = 0 for mod in [pytz, pytz.tzinfo]: mod_errors, mod_tests = doctest.testmod(mod) errors += mod_errors tests += mod_tests if not errors: print("Ran %s tests successfully." % tests) sys.exit(errors) debian/docs0000644000000000000000000000001311764122360010035 0ustar README.txt debian/copyright0000644000000000000000000000267711764122150011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pytz Upstream-Contact: Stuart Bishop Source: http://pypi.python.org/pypi/pytz/ Files: * Copyright: (c) 2003-2009 Stuart Bishop License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS 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. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: pytz/zoneinfo/* Copyright: Arthur David Olson et.al. License: public-domain Comment: excluded from binary package debian/changelog0000644000000000000000000001634112302376515011051 0ustar python-tz (2012c-1build1) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:53:17 +0000 python-tz (2012c-1) unstable; urgency=low * Team upload. * New upstream release. + Update upstream copyright years. * debian/docs: + Drop PKG-INFO as the useful content is the same as README.txt. + Drop CHANGES.txt as dh_installchangelogs already takes care of it. * debian/control: bump Standards-Version to 3.9.3. + debian/copyright: Update Format URL as DEP5 has been accepted. * Remove debian/clean in favor of ignoring egg-info directory in debian/source/options to avoid diff of files in this directory. * debian/patch/tzdata: add patch information (merge from Ubuntu package). -- Arnaud Fontaine Wed, 06 Jun 2012 11:10:31 +0900 python-tz (2011h-1) unstable; urgency=low * Team upload. [ Arnaud Fontaine ] * debian/watch: - fix URL. * debian/patches/tzdata: - update following new upstream release. - Add missing patch for tzfile.py. Thanks to Matt Giuca (Closes: #579704) * Add Python3 support. Thanks to Stefano Rivera (Closes: #641506) * Add debian/clean to get rid of egg-info/* to prevent FTBFS if built twice. [ Gediminas Paulauskas ] * Switch to dh_python2 (Closes: #617041): * Switch to source format 3.0 (quilt) * debian/control: - build-depend on python-all (not -dev) - remove Build-Depends on python-central, python-van.pydeb and quilt - add Vcs-Browser * debian/patches/tzdata: also remove import of pkg_resources (Closes: #599047) * debian/copyright: rewrite in dep5 format. -- Arnaud Fontaine Fri, 21 Oct 2011 14:53:37 +0900 python-tz (2011h-0.1) unstable; urgency=low * Non-maintainer upload * New upstream release (Closes: #616650) -- Yaroslav Halchenko Tue, 13 Sep 2011 20:04:04 -0400 python-tz (2010b-1) unstable; urgency=low * New upstream release. -- Fabio Tranchitella Wed, 27 Jan 2010 18:33:59 +0100 python-tz (2009u-1) unstable; urgency=low * New upstream release. -- Fabio Tranchitella Wed, 06 Jan 2010 15:17:35 +0100 python-tz (2009p-1) unstable; urgency=low [ Brian Sutherland ] * Apply modified patch from Kumar Appaiah to use Use /usr/share/python/python.mk to allow building on python2.6. (Closes: #547857) [ Fabio Tranchitella ] * New upstream release. -- Fabio Tranchitella Sun, 08 Nov 2009 10:00:03 +0100 python-tz (2009n-1) unstable; urgency=low * New upstream release. -- Fabio Tranchitella Mon, 12 Oct 2009 06:46:27 +0000 python-tz (2009l-1) unstable; urgency=low * New upstream release. * Standards-Version: 3.8.3, no changed required. -- Fabio Tranchitella Fri, 28 Aug 2009 11:26:15 +0200 python-tz (2009g-1) unstable; urgency=low * New upstream release. * debian/control: Standards-Version: 3.8.1, no changes needed. -- Fabio Tranchitella Thu, 04 Jun 2009 13:27:25 +0200 python-tz (2009d-1) unstable; urgency=low * New upstream release. -- Fabio Tranchitella Fri, 27 Mar 2009 14:24:43 +0100 python-tz (2009a-1) unstable; urgency=low * New upstream release. * debian/control: set priority to optional. (Closes: #510028) -- Fabio Tranchitella Fri, 27 Feb 2009 18:49:49 +0100 python-tz (2008i-1) unstable; urgency=low * New uptsream release. -- Fabio Tranchitella Tue, 18 Nov 2008 21:12:44 +0100 python-tz (2008h-1) unstable; urgency=low * New upstream version. - Fixes lookup errors with unknown timezones (error setting US/Pacific-New timezone. LP: #244681). * debian/copyright: Update copyright year and download location. * debian/control: Update homepage. -- Matthias Klose Mon, 27 Oct 2008 07:29:54 +0000 python-tz (2008c-2) unstable; urgency=low * Do not use setuptools to build the package (the setup falls back to distutils). * Set version to 2008c. Closes: #489979. -- Matthias Klose Wed, 09 Jul 2008 10:21:45 +0200 python-tz (2008c-1) unstable; urgency=low * New upstream release. -- Fabio Tranchitella Tue, 08 Jul 2008 09:12:42 +0200 python-tz (2008b-1) unstable; urgency=low * New upstream release. -- Fabio Tranchitella Wed, 23 Apr 2008 10:01:59 +0200 python-tz (2008a-2) unstable; urgency=low * debian/control: really fix dependencies on python, thanks dato. (Closes: #450740) -- Fabio Tranchitella Tue, 15 Apr 2008 08:40:51 +0200 python-tz (2008a-1) unstable; urgency=low * New upstream release. * debian/watch: updated. (Closes: #450014) * debian/control: fixed dependencies on python. (Closes: #450740) -- Fabio Tranchitella Wed, 19 Mar 2008 09:11:43 +0100 python-tz (2007d-1) unstable; urgency=low * New upstream release (Closes: 415458) * Revert patch ignoring arch files, it's not necessary any and conflicted with upstream. * Patch upstream to use /usr/share/zoneinfo and remove the included version, also depend on tzdata package. (Closes: 416202) * Write and install a testrunner that can run the pytz tests in /usr/lib/python-tz/test-pytxX.Y which tests pythonX.Y. * Build depends on python-central > 0.5, debhelper > 5.0.38 * Remove workaround for python-central/debhelper breakage. -- Brian Sutherland Wed, 9 May 2007 12:01:36 +0200 python-tz (2006p-0.2) unstable; urgency=low * Fix watch file to look at the python cheeseshop. -- Brian Sutherland Sun, 6 May 2007 23:30:49 +0200 python-tz (2006p-0.1) unstable; urgency=low * NMU. * New upstream version, matching the version of the tzdata package. -- Matthias Klose Sun, 7 Jan 2007 11:42:00 +0100 python-tz (2006g-1) unstable; urgency=low * New upstream version. * Update to new python policy using python-central (Closes: #373361) -- Brian Sutherland Wed, 14 Jun 2006 17:54:32 +0200 python-tz (2005r-1) unstable; urgency=low * New upstream version. * Update watchfile to use qa.debian.org's re-director. * Bump standards version to 3.6.2. -- Brian Sutherland Sun, 1 Jan 2006 20:29:56 +0100 python-tz (2005m-1) unstable; urgency=low * New upstream version. -- Brian Sutherland Thu, 15 Sep 2005 14:45:50 +0200 python-tz (2005k-1) unstable; urgency=low * New upsteam version. * Debian specific patch removing extraneous she-bangs removed as it was accepted upstream. -- Brian Sutherland Mon, 5 Sep 2005 00:34:10 +0200 python-tz (2005i-2) unstable; urgency=low * Build python2.4 library so that the zope3-lib can depend on it, see #317742. * Replaces zope3-lib. * Patch setup.py to ignore .arch-ids directories. -- Brian Sutherland Fri, 29 Jul 2005 00:01:54 +0200 python-tz (2005i-1) unstable; urgency=low * New upstream release -- Brian Sutherland Tue, 31 May 2005 18:02:23 +0200 python-tz (2005a-1) unstable; urgency=low * Initial Release. -- Brian Sutherland Tue, 8 Feb 2005 02:14:33 +0100 debian/compat0000644000000000000000000000000211330077212010360 0ustar 7 debian/patches/0000755000000000000000000000000011764123613010621 5ustar debian/patches/tzdata0000644000000000000000000000451311763537131012041 0ustar Description: Use system zone information from the tzdata package Author: Kurt Roeckx Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416202 Forwarded: not-needed Index: pytz-2011h/pytz/__init__.py =================================================================== --- pytz-2011h.orig/pytz/__init__.py 2011-10-21 15:14:54.048406509 +0900 +++ pytz-2011h/pytz/__init__.py 2011-10-21 15:14:57.232406629 +0900 @@ -31,11 +31,6 @@ except ImportError: from collections import Mapping as DictMixin -try: - from pkg_resources import resource_stream -except ImportError: - resource_stream = None - from pytz.exceptions import AmbiguousTimeError from pytz.exceptions import InvalidTimeError from pytz.exceptions import NonExistentTimeError @@ -87,17 +82,12 @@ Uses the pkg_resources module if available and no standard file found at the calculated location. """ + # Patched in Debian, use the system zoneinfo from the tzdata package name_parts = name.lstrip('/').split('/') for part in name_parts: if part == os.path.pardir or os.path.sep in part: raise ValueError('Bad path segment: %r' % part) - filename = os.path.join(os.path.dirname(__file__), - 'zoneinfo', *name_parts) - if not os.path.exists(filename) and resource_stream is not None: - # http://bugs.launchpad.net/bugs/383171 - we avoid using this - # unless absolutely necessary to help when a broken version of - # pkg_resources is installed. - return resource_stream(__name__, 'zoneinfo/' + name) + filename = os.path.join('/usr/share/zoneinfo', *name_parts) return open(filename, 'rb') Index: pytz-2011h/pytz/tzfile.py =================================================================== --- pytz-2011h.orig/pytz/tzfile.py 2011-06-27 22:48:49.000000000 +0900 +++ pytz-2011h/pytz/tzfile.py 2011-10-21 15:16:11.116409439 +0900 @@ -125,7 +125,8 @@ if __name__ == '__main__': import os.path from pprint import pprint - base = os.path.join(os.path.dirname(__file__), 'zoneinfo') + # Patched in Debian, use the system zoninfo from the tzdata package + base = '/usr/share/zoneinfo' tz = build_tzinfo('Australia/Melbourne', open(os.path.join(base,'Australia','Melbourne'), 'rb')) tz = build_tzinfo('US/Eastern', debian/patches/series0000644000000000000000000000000711330077212012023 0ustar tzdata debian/control0000644000000000000000000000316311763536226010607 0ustar Source: python-tz Section: python Priority: optional Maintainer: Debian/Ubuntu Zope Team Uploaders: Brian Sutherland , Fabio Tranchitella Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all, python-setuptools, python3-setuptools Standards-Version: 3.9.3 Homepage: http://pypi.python.org/pypi/pytz/ X-Python-Version: >= 2.4 X-Python3-Version: >= 3.1 Vcs-Svn: svn://svn.debian.org/svn/pkg-zope/python-tz/trunk Vcs-Browser: http://svn.debian.org/viewsvn/pkg-zope/python-tz/trunk Package: python-tz Architecture: all Depends: tzdata, ${python:Depends}, ${misc:Depends} Description: Python version of the Olson timezone database python-tz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.3 or higher. It also solves the issue of ambiguous times at the end of daylight savings, which you can read more about in the Python Library Reference (datetime.tzinfo). Package: python3-tz Architecture: all Depends: tzdata, ${python3:Depends}, ${misc:Depends} Description: Python3 version of the Olson timezone database python-tz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.3 or higher. It also solves the issue of ambiguous times at the end of daylight savings, which you can read more about in the Python Library Reference (datetime.tzinfo). . This package contains the Python 3 version of the library. debian/rules0000755000000000000000000000155311650214663010256 0ustar #!/usr/bin/make -f PACKAGE=python-tz PACKAGE_PYTHON3=python3-tz PYVERS:=$(shell pyversions -r) PY3VERS:=$(shell py3versions -r) %: dh --with python2 --with python3 $@ override_dh_auto_build: dh_auto_build -p$(PACKAGE) set -e; \ for python in $(PY3VERS); do \ $$python setup.py build; \ done override_dh_auto_install: dh_auto_install -p$(PACKAGE) --destdir=$(CURDIR)/debian/$(PACKAGE) set -ex; \ for python in $(PY3VERS); do \ $$python setup.py install --install-layout=deb \ --root=$(CURDIR)/debian/$(PACKAGE_PYTHON3); \ done override_dh_clean: dh_clean rm -rf build override_dh_install: dh_install # install our testing package install -D debian/test-pytz debian/python-tz/usr/lib/python-tz/test-pytz.py # remove zoneinfo, our patch to pytz makes it use the one from tzdata rm -rf debian/python*-tz/usr/lib/python*/*-packages/pytz/zoneinfo debian/source/0000755000000000000000000000000011764123613010472 5ustar debian/source/format0000644000000000000000000000001411650204610011667 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000004211763536571012116 0ustar extend-diff-ignore = "\.egg-info" debian/watch0000644000000000000000000000011111650204423010205 0ustar version=3 http://pypi.python.org/packages/source/p/pytz/pytz-(.*).tar.gz