[arch-commits] Commit in python-pytz/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Mon Nov 1 08:46:41 UTC 2021
Date: Monday, November 1, 2021 @ 08:46:41
Author: jelle
Revision: 1035151
upgpkg: python-pytz 2021.3-2
Modified:
python-pytz/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++---------------------
1 file changed, 8 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-01 08:40:52 UTC (rev 1035150)
+++ PKGBUILD 2021-11-01 08:46:41 UTC (rev 1035151)
@@ -3,13 +3,15 @@
# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
# Contributor: William Rea <sillywilly at gmail.com>
-pkgname=('python-pytz' 'python2-pytz')
+pkgname=python-pytz
pkgver=2021.3
-pkgrel=1
+pkgrel=2
arch=('any')
url="https://pypi.python.org/pypi/pytz"
license=("MIT")
-makedepends=('python' 'python2')
+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=('c45099f319592976b7715d9973496a2c7438a1b958ef8b90a1ad1fb97e7035624fe6191796727d4b7edf3236271bea4d864e25d1d92431e8cf767ac798448882'
@@ -24,7 +26,8 @@
}
build(){
- cp -rf pytz-$pkgver pytz2-$pkgver
+ cd pytz-$pkgver
+ python setup.py build
}
check(){
@@ -31,13 +34,9 @@
cd pytz-$pkgver/pytz/tests
python3 test_tzinfo.py
- python2 test_tzinfo.py
}
-package_python-pytz(){
- depends=('python')
- pkgdesc="Cross platform time zone library for Python"
-
+package(){
cd pytz-$pkgver
python3 setup.py install --root="$pkgdir"/
@@ -44,15 +43,3 @@
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-
-package_python2-pytz(){
- depends=('python2')
- pkgdesc="Cross platform time zone library for Python"
-
- cd pytz2-$pkgver
-
- python2 setup.py install --root="$pkgdir"/
-
- install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list