[arch-commits] Commit in python-rfc3986/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 13 14:55:51 UTC 2020
Date: Thursday, February 13, 2020 @ 14:55:51
Author: felixonmars
Revision: 570512
upgpkg: python-rfc3986 1.3.2-4: remove python2 sibling
Modified:
python-rfc3986/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++---------------------------
1 file changed, 8 insertions(+), 27 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-13 14:54:31 UTC (rev 570511)
+++ PKGBUILD 2020-02-13 14:55:51 UTC (rev 570512)
@@ -1,49 +1,30 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
-pkgbase=python-rfc3986
-pkgname=(python-rfc3986 python2-rfc3986)
+pkgname=python-rfc3986
pkgver=1.3.2
-pkgrel=3
+pkgrel=4
pkgdesc="Validating URI References per RFC 3986"
arch=('any')
license=('Apache')
url="https://rfc3986.readthedocs.org/"
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
source=("https://pypi.io/packages/source/r/rfc3986/rfc3986-$pkgver.tar.gz")
sha512sums=('c086c55295d80ccf33dbfeff06059303119e7a407bfc405b7f75ec30413221ec58d3061d75fd3ca696b7acf9b1be1dfcc785e01280bf659a53be43ab1f300b15')
-prepare() {
- cp -a rfc3986-$pkgver{,-py2}
-}
-
build() {
- cd "$srcdir"/rfc3986-$pkgver
+ cd rfc3986-$pkgver
python setup.py build
-
- cd "$srcdir"/rfc3986-$pkgver-py2
- python2 setup.py build
}
check() {
- cd "$srcdir"/rfc3986-$pkgver
+ cd rfc3986-$pkgver
python setup.py pytest
-
- cd "$srcdir"/rfc3986-$pkgver-py2
- python2 setup.py pytest
}
-package_python-rfc3986() {
- depends=('python')
-
+package() {
cd rfc3986-$pkgver
python setup.py install --root="$pkgdir/" --optimize=1
}
-
-package_python2-rfc3986() {
- depends=('python2')
-
- cd rfc3986-$pkgver-py2
- python2 setup.py install --root="$pkgdir/" --optimize=1
-}
More information about the arch-commits
mailing list