[arch-commits] Commit in python-apipkg/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Dec 15 11:44:54 UTC 2021
Date: Wednesday, December 15, 2021 @ 11:44:54
Author: arojas
Revision: 1072972
Drop python2
Modified:
python-apipkg/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-15 11:24:10 UTC (rev 1072971)
+++ PKGBUILD 2021-12-15 11:44:54 UTC (rev 1072972)
@@ -1,15 +1,13 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-apipkg
-pkgname=('python-apipkg' 'python2-apipkg')
+pkgname=python-apipkg
pkgver=1.5
-pkgrel=8
+pkgrel=9
pkgdesc="Namespace control and lazy-import mechanism"
arch=('any')
license=('MIT')
url="https://github.com/pytest-dev/apipkg"
-makedepends=('python-setuptools' 'python-setuptools-scm'
- 'python2-setuptools' 'python2-setuptools-scm')
+makedepends=('python-setuptools' 'python-setuptools-scm')
checkdepends=('python-pytest-runner')
source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz"
apipkg-pytest5.patch)
@@ -24,7 +22,6 @@
build() {
cd apipkg-$pkgver
python setup.py build
- python2 setup.py build
}
check() {
@@ -32,18 +29,8 @@
python setup.py pytest
}
-package_python-apipkg() {
- depends=('python')
-
+package() {
cd apipkg-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-apipkg() {
- depends=('python2')
-
- cd apipkg-$pkgver
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list