[arch-commits] Commit in python-iso8601/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Mon Mar 16 18:21:57 UTC 2020


    Date: Monday, March 16, 2020 @ 18:21:57
  Author: bgyorgy
Revision: 599836

upgpkg: python-iso8601 0.1.12-5: Remove python2 support

Modified:
  python-iso8601/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 18:17:33 UTC (rev 599835)
+++ PKGBUILD	2020-03-16 18:21:57 UTC (rev 599836)
@@ -1,42 +1,27 @@
 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
-pkgbase=python-iso8601
-pkgname=(python-iso8601 python2-iso8601)
+pkgname=python-iso8601
 _libname=iso8601
 pkgver=0.1.12
-pkgrel=4
+pkgrel=5
 pkgdesc="Simple module to parse ISO 8601 dates"
 arch=(any)
 url="https://pyiso8601.readthedocs.io/en/latest/"
 license=('MIT')
+depends=(python)
+makedepends=(python-setuptools)
 source=(https://files.pythonhosted.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
-makedepends=(python-setuptools python2-setuptools)
 sha256sums=('49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098eddede82')
 
 build() {
 	cd "$srcdir/$_libname-$pkgver"
-
 	rm -rf ../buildpy3; mkdir ../buildpy3
 	python setup.py build -b ../buildpy3
-
-	rm -rf ../buildpy2; mkdir ../buildpy2
-	python2 setup.py build -b ../buildpy2
 }
 
-package_python-iso8601() {
-	depends=(python)
-
+package() {
 	cd "$srcdir/$_libname-$pkgver"
 	rm -rf build; ln -s ../buildpy3 build
 	python setup.py install --skip-build -O1 --root="$pkgdir"
 	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-iso8601() {
-	depends=(python2)
-
-	cd "$srcdir/$_libname-$pkgver"
-	rm -rf build; ln -s ../buildpy2 build
-	python2 setup.py install --skip-build -O1 --root="$pkgdir"
-	install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}



More information about the arch-commits mailing list