[arch-commits] Commit in python-setuptools-scm/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 01:31:24 UTC 2018
Date: Saturday, June 30, 2018 @ 01:31:24
Author: felixonmars
Revision: 347804
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 347803, python-setuptools-scm/trunk/PKGBUILD)
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Copied: python-setuptools-scm/repos/community-staging-any/PKGBUILD (from rev 347803, python-setuptools-scm/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 01:31:24 UTC (rev 347804)
@@ -0,0 +1,66 @@
+# $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)
+pkgver=2.1.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')
+checkdepends=('python-pytest' 'python2-pytest' 'mercurial' 'git' 'python-pip' 'python2-pip')
+source=("https://pypi.io/packages/source/s/setuptools_scm/setuptools_scm-$pkgver.tar.gz")
+sha512sums=('69ce171aa4d3b576883efffb350c59f38bfe8b35bd8e4e8fa1128d9f8a3e6cfaab832633e91fada36126f8e7e2c18663fad621d62c9834be1b5d36c58ae1d1c8')
+
+prepare() {
+ cp -a setuptools_scm-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/setuptools_scm-$pkgver
+ python setup.py build
+ python setup.py egg_info
+
+ cd "$srcdir"/setuptools_scm-$pkgver-py2
+ python2 setup.py build
+ python2 setup.py egg_info
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/setuptools_scm-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test
+
+ cd "$srcdir"/setuptools_scm-$pkgver-py2
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-setuptools-scm() {
+ depends=('python-setuptools')
+ provides=('python-setuptools_scm')
+ conflicts=('python-setuptools_scm')
+ replaces=('python-setuptools_scm')
+
+ cd "$srcdir"/setuptools_scm-$pkgver
+ python setup.py install --root "$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-setuptools-scm() {
+ depends=('python2-setuptools')
+ provides=('python2-setuptools_scm')
+ conflicts=('python2-setuptools_scm')
+ replaces=('python2-setuptools_scm')
+
+ cd "$srcdir"/setuptools_scm-$pkgver-py2
+ python2 setup.py install --root "$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list