[arch-commits] Commit in python-lockfile/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Sun Oct 31 17:08:15 UTC 2021
Date: Sunday, October 31, 2021 @ 17:08:15
Author: jelle
Revision: 1035096
upgpkg: python-lockfile 0.12.2-9
Modified:
python-lockfile/trunk/PKGBUILD
----------+
PKGBUILD | 27 ++++++---------------------
1 file changed, 6 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-31 17:06:06 UTC (rev 1035095)
+++ PKGBUILD 2021-10-31 17:08:15 UTC (rev 1035096)
@@ -1,14 +1,15 @@
pkgbase=python-lockfile
-pkgname=(python-lockfile python2-lockfile)
+pkgname=(python-lockfile)
pkgver=0.12.2
-pkgrel=8
+pkgrel=9
pkgdesc='Platform-independent file locking module'
arch=(any)
url='https://github.com/openstack/pylockfile'
license=(MIT)
-makedepends=(python-setuptools python2-setuptools python-pbr python2-pbr)
-checkdepends=(python-nose python2-nose)
+depends=(python)
+makedepends=(python-setuptools python-pbr)
+checkdepends=(python-nose)
source=(https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-$pkgver.tar.gz)
sha1sums=('c2ac46e48585e5f8f8d57ccc55ca83faa8b53b86')
@@ -19,31 +20,15 @@
build() {
cd "$srcdir/lockfile-$pkgver"
python setup.py build
-
- cd "$srcdir/lockfile-$pkgver-py2"
- python2 setup.py build
}
check() {
cd "$srcdir/lockfile-$pkgver"
nosetests
-
- cd "$srcdir/lockfile-$pkgver-py2"
- nosetests2
}
-package_python-lockfile() {
- depends=(python)
-
+package() {
cd "$srcdir/lockfile-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-package_python2-lockfile() {
- depends=(python2)
-
- cd "$srcdir/lockfile-$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