[arch-commits] Commit in python-semantic-version/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 20:49:25 UTC 2019
Date: Saturday, October 26, 2019 @ 20:49:25
Author: foutrelis
Revision: 520619
archrelease: copy trunk to community-staging-any
Added:
python-semantic-version/repos/community-staging-any/
python-semantic-version/repos/community-staging-any/PKGBUILD
(from rev 520618, python-semantic-version/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-semantic-version/repos/community-staging-any/PKGBUILD (from rev 520618, python-semantic-version/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:49:25 UTC (rev 520619)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-semantic-version
+pkgname=(python-semantic-version python2-semantic-version)
+pkgver=2.6.0
+pkgrel=3
+pkgdesc="A library implementing the 'SemVer' scheme."
+url="https://github.com/rbarrois/semantic-version"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest') # 'python-django' 'python2-django') Test hangs
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/rbarrois/python-semanticversion/archive/v$pkgver.tar.gz")
+sha512sums=('18db9279c2728565b13362c54bedbf569f0878cbe6bb58e631d87ffe7cff7d9131a30a2592cbf511091c03e854851159bbb298fe7469f53e8a2d92cf26ab4d0b')
+
+prepare() {
+ cp -a python-semanticversion-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/python-semanticversion-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/python-semanticversion-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-semanticversion-$pkgver
+ rm tests/test_django.py
+ py.test
+
+ cd "$srcdir"/python-semanticversion-$pkgver-py2
+ rm tests/test_django.py
+ py.test2
+}
+
+package_python-semantic-version() {
+ depends=('python')
+
+ cd python-semanticversion-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-semantic-version() {
+ depends=('python2')
+
+ cd python-semanticversion-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list