[arch-commits] Commit in python-setuptools_scm/repos/community-any (PKGBUILD PKGBUILD)

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


    Date: Friday, September 18, 2015 @ 07:13:17
  Author: fyan
Revision: 140645

archrelease: copy trunk to community-any

Added:
  python-setuptools_scm/repos/community-any/PKGBUILD
    (from rev 140644, python-setuptools_scm/trunk/PKGBUILD)
Deleted:
  python-setuptools_scm/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  109 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 61 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-18 05:12:54 UTC (rev 140644)
+++ PKGBUILD	2015-09-18 05:13:17 UTC (rev 140645)
@@ -1,48 +0,0 @@
-# $Id$
-# 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.7.0
-pkgrel=1
-pkgdesc="Handles managing your python package versions in scm metadata."
-arch=('any')
-url="https://github.com/pypa/setuptools_scm"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-source=("git+https://github.com/pypa/setuptools_scm.git#tag=v$pkgver")
-md5sums=('SKIP')
-
-prepare() {
-  cp -a $_pkgname{,-py2}
-}
-
-build() {
-  cd "${srcdir}/${_pkgname}"
-  python setup.py build
-
-  cd "${srcdir}/${_pkgname}-py2"
-  python2 setup.py build
-}
-
-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"
-}
-
-package_python2-setuptools_scm() {
-  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"
-}

Copied: python-setuptools_scm/repos/community-any/PKGBUILD (from rev 140644, python-setuptools_scm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-09-18 05:13:17 UTC (rev 140645)
@@ -0,0 +1,61 @@
+# $Id$
+# 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.8.0
+pkgrel=1
+pkgdesc="Handles managing your python package versions in scm metadata."
+arch=('any')
+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')
+
+prepare() {
+  cp -a $_pkgname{,-py2}
+}
+
+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 install --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-setuptools_scm() {
+  depends=('python2-setuptools')
+
+  cd "${srcdir}/${_pkgname}-py2"
+  python2 setup.py install --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list