[arch-commits] Commit in python-setuptools_scm/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Sep 18 05:12:55 UTC 2015


    Date: Friday, September 18, 2015 @ 07:12:54
  Author: fyan
Revision: 140644

upgpkg: python-setuptools_scm 1.8.0-1

Modified:
  python-setuptools_scm/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-18 05:11:25 UTC (rev 140643)
+++ PKGBUILD	2015-09-18 05:12:54 UTC (rev 140644)
@@ -5,7 +5,7 @@
 pkgbase=python-setuptools_scm
 pkgname=(python-setuptools_scm python2-setuptools_scm)
 _pkgname=setuptools_scm
-pkgver=1.7.0
+pkgver=1.8.0
 pkgrel=1
 pkgdesc="Handles managing your python package versions in scm metadata."
 arch=('any')
@@ -12,6 +12,7 @@
 url="https://github.com/pypa/setuptools_scm"
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'mercurial')
 source=("git+https://github.com/pypa/setuptools_scm.git#tag=v$pkgver")
 md5sums=('SKIP')
 
@@ -22,16 +23,29 @@
 build() {
   cd "${srcdir}/${_pkgname}"
   python setup.py build
+  python setup.py egg_info
 
   cd "${srcdir}/${_pkgname}-py2"
   python2 setup.py build
+  python2 setup.py egg_info
 }
 
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir/${_pkgname}"
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.4/site-packages:$PYTHONPATH" python setup.py ptr
+
+  cd "$srcdir/${_pkgname}-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() {
   depends=('python-setuptools')
 
   cd "${srcdir}/${_pkgname}"
-  python setup.py egg_info
   python setup.py install --root "$pkgdir"
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
@@ -41,7 +55,6 @@
   depends=('python2-setuptools')
 
   cd "${srcdir}/${_pkgname}-py2"
-  python2 setup.py egg_info
   python2 setup.py install --root "$pkgdir"
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"



More information about the arch-commits mailing list