From 2e64e80ff48ee640f07f2a858526cf773422a0ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Feb 2021 08:50:51 +0100 Subject: Adding debian version 2020.1+dfsg-1. Signed-off-by: Daniel Baumann --- debian/changelog | 9 ++++++ debian/control | 23 ++++++++++++++++ debian/copyright | 32 ++++++++++++++++++++++ .../patches/debian/0001-zoneinfo-directory.patch | 18 ++++++++++++ debian/patches/series | 1 + debian/rules | 9 ++++++ debian/source/format | 1 + debian/watch | 3 ++ 8 files changed, 96 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/debian/0001-zoneinfo-directory.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..7b5ee91 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,9 @@ +pytzdata (2020.1+dfsg-1) sid; urgency=medium + + * Initial upload to sid (Closes: #982178), + required for pgcli (#972598) which moved from humanize to pendulum + (which in turn requires pytzdata). + * Removed embedded timezone database (zoneinfo) copy and adding patch + to use the one from the system by default. + + -- Daniel Baumann Sun, 07 Feb 2021 07:19:40 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1480cc4 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: pytzdata +Section: python +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + dh-python, + python3-all-dev, + python3-setuptools, +Rules-Requires-Root: no +Standards-Version: 4.5.1 +Homepage: https://github.com/sdispater/pytzdata +Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/pytzdata +Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/pytzdata + +Package: python3-pytzdata +Section: python +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, +Description: timezone database for Python + pytzdata provides functions to access timezone database files. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..999a304 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pytzdata +Upstream-Contact: Sébastien Eustace +Source: https://github.com/sdispater/pytzdata/releases +Files-excluded: pytzdata/zoneinfo + +Files: * +Copyright: 2016-2020 Sébastien Eustace +License: MIT + +Files: debian/* +Copyright: 2021 Daniel Baumann +License: MIT + +License: MIT + 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. diff --git a/debian/patches/debian/0001-zoneinfo-directory.patch b/debian/patches/debian/0001-zoneinfo-directory.patch new file mode 100644 index 0000000..cfc60a1 --- /dev/null +++ b/debian/patches/debian/0001-zoneinfo-directory.patch @@ -0,0 +1,18 @@ +Author: Daniel Baumann +Description: Using system zoneinfo by default. + +diff -Naurp pytzdata.orig/pytzdata/__init__.py pytzdata/pytzdata/__init__.py +--- pytzdata.orig/pytzdata/__init__.py ++++ pytzdata/pytzdata/__init__.py +@@ -7,10 +7,7 @@ from ._timezones import timezones + from ._compat import FileNotFoundError + + +-DEFAULT_DIRECTORY = os.path.join( +- os.path.dirname(__file__), +- 'zoneinfo' +-) ++DEFAULT_DIRECTORY = '/usr/share/zoneinfo' + + _DIRECTORY = os.getenv('PYTZDATA_TZDATADIR', DEFAULT_DIRECTORY) + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..3345740 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-zoneinfo-directory.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5c12d4d --- /dev/null +++ b/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=pytzdata + +upstream: + rm -rf pytzdata/zoneinfo + +%: + dh ${@} --buildsystem=pybuild --with python3 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..68f6e2b --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/pytzdata-$1\.tar\.gz/ \ +https://github.com/sdispater/pytzdata/releases .*/v?(\d\S+)\.tar\.gz -- cgit v1.2.3