[arch-commits] Commit in python-iniconfig/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Dec 15 11:53:31 UTC 2021
Date: Wednesday, December 15, 2021 @ 11:53:31
Author: arojas
Revision: 1072980
Drop python2
Modified:
python-iniconfig/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++------------------------
1 file changed, 5 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-15 11:51:52 UTC (rev 1072979)
+++ PKGBUILD 2021-12-15 11:53:31 UTC (rev 1072980)
@@ -1,31 +1,22 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-iniconfig
-pkgname=(python-iniconfig python2-iniconfig)
+pkgname=python-iniconfig
pkgver=1.1.1
-pkgrel=4
+pkgrel=5
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/RonnyPfannschmidt/iniconfig"
license=('MIT')
arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-setuptools-scm'
- 'python2-setuptools-scm')
+makedepends=('python-setuptools' 'python-setuptools-scm')
checkdepends=('python-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
sha512sums=('3e86490e424adefcc36b498ed0e6c6a6d4c6a2804a95b99163cef456f303b1913e9afe34035039cf0f2e96f7624719dc85e4ab3917ccd59278b22894a00dbf26')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-prepare() {
- cp -a iniconfig-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/iniconfig-$pkgver
python setup.py build
-
- cd "$srcdir"/iniconfig-$pkgver-py2
- python2 setup.py build
}
check() {
@@ -33,18 +24,8 @@
python setup.py pytest
}
-package_python-iniconfig() {
- depends=('python')
-
+package() {
cd iniconfig-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-iniconfig() {
- depends=('python2')
-
- cd iniconfig-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list