Date: Wednesday, January 11, 2023 @ 19:21:58
Author: jelle
Revision: 1382974
archrelease: copy trunk to community-any
Added:
python-pytz/repos/community-any/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
(from rev 1382973,
python-pytz/trunk/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch)
python-pytz/repos/community-any/PKGBUILD
(from rev 1382973, python-pytz/trunk/PKGBUILD)
python-pytz/repos/community-any/keys/
Deleted:
python-pytz/repos/community-any/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
python-pytz/repos/community-any/PKGBUILD
python-pytz/repos/community-any/keys/
------------------------------------------------------------+
0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch | 138 +++++------
PKGBUILD | 90 +++----
2 files changed, 114 insertions(+), 114 deletions(-)
Deleted: 0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
===================================================================
--- 0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch 2023-01-11
19:21:41 UTC (rev 1382973)
+++ 0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch 2023-01-11
19:21:58 UTC (rev 1382974)
@@ -1,69 +0,0 @@
-From 74baf31e5505d03a71df49894d57e1011e771eb9 Mon Sep 17 00:00:00 2001
-From: Eli Schwartz <[email protected]>
-Date: Mon, 4 May 2020 15:26:01 -0400
-Subject: [PATCH] Use the system zoneinfo from the tzdata package.
-
-We don't need to ship these vendored blobs as our system copy works
-quite well.
-
-Signed-off-by: Eli Schwartz <[email protected]>
----
- src/pytz/__init__.py | 13 +------------
- src/pytz/tzfile.py | 2 +-
- src/setup.py | 2 --
- 3 files changed, 2 insertions(+), 15 deletions(-)
-
-diff --git a/src/pytz/__init__.py b/src/pytz/__init__.py
-index c25a1d1..3cc59ef 100644
---- a/src/pytz/__init__.py
-+++ b/src/pytz/__init__.py
-@@ -92,19 +92,8 @@ def open_resource(name):
- if zoneinfo_dir is not None:
- filename = os.path.join(zoneinfo_dir, *name_parts)
- else:
-- filename = os.path.join(os.path.dirname(__file__),
-+ filename = os.path.join('/usr', 'share',
- 'zoneinfo', *name_parts)
-- if not os.path.exists(filename):
-- # http://bugs.launchpad.net/bugs/383171 - we avoid using this
-- # unless absolutely necessary to help when a broken version of
-- # pkg_resources is installed.
-- try:
-- from pkg_resources import resource_stream
-- except ImportError:
-- resource_stream = None
--
-- if resource_stream is not None:
-- return resource_stream(__name__, 'zoneinfo/' + name)
- return open(filename, 'rb')
-
-
-diff --git a/src/pytz/tzfile.py b/src/pytz/tzfile.py
-index 25117f3..98eba05 100644
---- a/src/pytz/tzfile.py
-+++ b/src/pytz/tzfile.py
-@@ -126,7 +126,7 @@ def build_tzinfo(zone, fp):
- if __name__ == '__main__':
- import os.path
- from pprint import pprint
-- base = os.path.join(os.path.dirname(__file__), 'zoneinfo')
-+ base = os.path.join('/usr', 'share', 'zoneinfo')
- tz = build_tzinfo('Australia/Melbourne',
- open(os.path.join(base, 'Australia', 'Melbourne'),
'rb'))
- tz = build_tzinfo('US/Eastern',
-diff --git a/src/setup.py b/src/setup.py
-index fa9a592..675618c 100644
---- a/src/setup.py
-+++ b/src/setup.py
-@@ -22,8 +22,6 @@ for dirpath, dirnames, filenames in
os.walk(os.path.join('pytz', 'zoneinfo')):
- for filename in filenames])
- package_data = {'pytz': resources}
-
--assert len(resources) > 10, 'zoneinfo files not found!'
--
- setup(
- name='pytz',
- version=pytz.VERSION,
---
-2.26.2
-
Copied:
python-pytz/repos/community-any/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
(from rev 1382973,
python-pytz/trunk/0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch)
===================================================================
--- 0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
(rev 0)
+++ 0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch 2023-01-11
19:21:58 UTC (rev 1382974)
@@ -0,0 +1,69 @@
+From 74baf31e5505d03a71df49894d57e1011e771eb9 Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <[email protected]>
+Date: Mon, 4 May 2020 15:26:01 -0400
+Subject: [PATCH] Use the system zoneinfo from the tzdata package.
+
+We don't need to ship these vendored blobs as our system copy works
+quite well.
+
+Signed-off-by: Eli Schwartz <[email protected]>
+---
+ src/pytz/__init__.py | 13 +------------
+ src/pytz/tzfile.py | 2 +-
+ src/setup.py | 2 --
+ 3 files changed, 2 insertions(+), 15 deletions(-)
+
+diff --git a/src/pytz/__init__.py b/src/pytz/__init__.py
+index c25a1d1..3cc59ef 100644
+--- a/src/pytz/__init__.py
++++ b/src/pytz/__init__.py
+@@ -92,19 +92,8 @@ def open_resource(name):
+ if zoneinfo_dir is not None:
+ filename = os.path.join(zoneinfo_dir, *name_parts)
+ else:
+- filename = os.path.join(os.path.dirname(__file__),
++ filename = os.path.join('/usr', 'share',
+ 'zoneinfo', *name_parts)
+- if not os.path.exists(filename):
+- # http://bugs.launchpad.net/bugs/383171 - we avoid using this
+- # unless absolutely necessary to help when a broken version of
+- # pkg_resources is installed.
+- try:
+- from pkg_resources import resource_stream
+- except ImportError:
+- resource_stream = None
+-
+- if resource_stream is not None:
+- return resource_stream(__name__, 'zoneinfo/' + name)
+ return open(filename, 'rb')
+
+
+diff --git a/src/pytz/tzfile.py b/src/pytz/tzfile.py
+index 25117f3..98eba05 100644
+--- a/src/pytz/tzfile.py
++++ b/src/pytz/tzfile.py
+@@ -126,7 +126,7 @@ def build_tzinfo(zone, fp):
+ if __name__ == '__main__':
+ import os.path
+ from pprint import pprint
+- base = os.path.join(os.path.dirname(__file__), 'zoneinfo')
++ base = os.path.join('/usr', 'share', 'zoneinfo')
+ tz = build_tzinfo('Australia/Melbourne',
+ open(os.path.join(base, 'Australia', 'Melbourne'),
'rb'))
+ tz = build_tzinfo('US/Eastern',
+diff --git a/src/setup.py b/src/setup.py
+index fa9a592..675618c 100644
+--- a/src/setup.py
++++ b/src/setup.py
+@@ -22,8 +22,6 @@ for dirpath, dirnames, filenames in
os.walk(os.path.join('pytz', 'zoneinfo')):
+ for filename in filenames])
+ package_data = {'pytz': resources}
+
+-assert len(resources) > 10, 'zoneinfo files not found!'
+-
+ setup(
+ name='pytz',
+ version=pytz.VERSION,
+--
+2.26.2
+
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-11 19:21:41 UTC (rev 1382973)
+++ PKGBUILD 2023-01-11 19:21:58 UTC (rev 1382974)
@@ -1,45 +0,0 @@
-# Maintainer: Stefan Husmann <[email protected]>
-# Maintainer: Jelle van der Waa <[email protected]>
-# Contributor: Douglas Soares de Andrade <[email protected]>
-# Contributor: William Rea <[email protected]>
-
-pkgname=python-pytz
-pkgver=2022.6
-pkgrel=1
-arch=('any')
-url="https://pypi.python.org/pypi/pytz"
-license=("MIT")
-pkgdesc="Cross platform time zone library for Python"
-depends=('python')
-makedepends=('python')
-source=("https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz"
- "0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch")
-sha512sums=('ea0343453d011e252fba64502984e2a43ea7c7437a211025ca68a4a45178c8aaef4c2b65261434289b21166a99a1941ec9e2d9d26bb3d22a76cbaa421250131d'
-
'3cbd497313c3049a2ae04298118aefb6dfa9ec4626078c665c95c13a78ae944b33a68813aea0c53b02b0532b64221cca4a0cd2153bd91b3760916bc3c0f6df8f')
-validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A')
-
-prepare() {
- cd pytz-$pkgver
-
- patch -p2 -i ../0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
- rm -r pytz/zoneinfo/
-}
-
-build(){
- cd pytz-$pkgver
- python setup.py build
-}
-
-check(){
- cd pytz-$pkgver/pytz/tests
-
- python3 test_tzinfo.py
-}
-
-package(){
- cd pytz-$pkgver
-
- python3 setup.py install --root="$pkgdir"/
-
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-pytz/repos/community-any/PKGBUILD (from rev 1382973,
python-pytz/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-11 19:21:58 UTC (rev 1382974)
@@ -0,0 +1,45 @@
+# Maintainer: Stefan Husmann <[email protected]>
+# Maintainer: Jelle van der Waa <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+# Contributor: William Rea <[email protected]>
+
+pkgname=python-pytz
+pkgver=2022.7
+pkgrel=1
+arch=('any')
+url="https://pypi.python.org/pypi/pytz"
+license=("MIT")
+pkgdesc="Cross platform time zone library for Python"
+depends=('python')
+makedepends=('python')
+source=("https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz"
+ "0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch")
+sha512sums=('48bad8a88e124c0935bf307713659228100c5c38230b3ee7f0aa92e46a1a305c4cebef388208dc7090ba59f51c4816f78789a091d69541615e885a9ad61c475b'
+
'3cbd497313c3049a2ae04298118aefb6dfa9ec4626078c665c95c13a78ae944b33a68813aea0c53b02b0532b64221cca4a0cd2153bd91b3760916bc3c0f6df8f')
+validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A')
+
+prepare() {
+ cd pytz-$pkgver
+
+ patch -p2 -i ../0001-Use-the-system-zoneinfo-from-the-tzdata-package.patch
+ rm -r pytz/zoneinfo/
+}
+
+build(){
+ cd pytz-$pkgver
+ python setup.py build
+}
+
+check(){
+ cd pytz-$pkgver/pytz/tests
+
+ python3 test_tzinfo.py
+}
+
+package(){
+ cd pytz-$pkgver
+
+ python3 setup.py install --root="$pkgdir"/
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}