[arch-commits] Commit in python-setuptools-scm/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Thu Apr 7 02:10:41 UTC 2016
Date: Thursday, April 7, 2016 @ 04:10:41
Author: fyan
Revision: 169605
upgpkg: python-setuptools-scm 1.11.0-1
Modified:
python-setuptools-scm/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-04-07 01:52:00 UTC (rev 169604)
+++ PKGBUILD 2016-04-07 02:10:41 UTC (rev 169605)
@@ -2,11 +2,9 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
-pkgbase=python-setuptools_scm
-pkgname=(python-setuptools_scm python2-setuptools_scm)
-_pkgname=setuptools_scm
-pkgver=1.10.1
-_commit=3649c15317a8d533fb7ba6eebabdaaa798945452
+pkgbase=python-setuptools-scm
+pkgname=(python-setuptools-scm python2-setuptools-scm)
+pkgver=1.11.0
pkgrel=1
pkgdesc="Handles managing your python package versions in scm metadata."
arch=('any')
@@ -18,15 +16,15 @@
md5sums=('SKIP')
prepare() {
- cp -a $_pkgname{,-py2}
+ cp -a setuptools_scm{,-py2}
}
build() {
- cd "${srcdir}/${_pkgname}"
+ cd "$srcdir"/setuptools_scm
python setup.py build
python setup.py egg_info
- cd "${srcdir}/${_pkgname}-py2"
+ cd "$srcdir"/setuptools_scm-py2
python2 setup.py build
python2 setup.py egg_info
}
@@ -34,29 +32,35 @@
check() {
# Hack entry points by installing it
- cd "$srcdir/${_pkgname}"
+ cd "$srcdir"/setuptools_scm
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" python setup.py ptr
- cd "$srcdir/${_pkgname}-py2"
+ cd "$srcdir"/setuptools_scm-py2
python2 setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 setup.py ptr
}
-package_python-setuptools_scm() {
+package_python-setuptools-scm() {
depends=('python-setuptools')
+ provides=('python-setuptools_scm')
+ conflicts=('python-setuptools_scm')
+ replaces=('python-setuptools_scm')
- cd "${srcdir}/${_pkgname}"
+ cd "$srcdir"/setuptools_scm
python setup.py install --root "$pkgdir"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-package_python2-setuptools_scm() {
+package_python2-setuptools-scm() {
depends=('python2-setuptools')
+ provides=('python2-setuptools_scm')
+ conflicts=('python2-setuptools_scm')
+ replaces=('python2-setuptools_scm')
- cd "${srcdir}/${_pkgname}-py2"
+ cd "$srcdir"/setuptools_scm-py2
python2 setup.py install --root "$pkgdir"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list