[arch-commits] Commit in python-setuptools_scm/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 09:31:32 UTC 2015
Date: Saturday, September 19, 2015 @ 11:31:32
Author: fyan
Revision: 140713
archrelease: copy trunk to community-staging-any
Added:
python-setuptools_scm/repos/community-staging-any/
python-setuptools_scm/repos/community-staging-any/PKGBUILD
(from rev 140712, python-setuptools_scm/trunk/PKGBUILD)
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
Copied: python-setuptools_scm/repos/community-staging-any/PKGBUILD (from rev 140712, python-setuptools_scm/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 09:31:32 UTC (rev 140713)
@@ -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=2
+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.5/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