[arch-commits] Commit in python-pycontracts/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Nov 17 06:18:57 UTC 2016
Date: Thursday, November 17, 2016 @ 06:18:56
Author: felixonmars
Revision: 196131
archrelease: copy trunk to community-any
Added:
python-pycontracts/repos/community-any/PKGBUILD
(from rev 196130, python-pycontracts/trunk/PKGBUILD)
Deleted:
python-pycontracts/repos/community-any/PKGBUILD
----------+
PKGBUILD | 102 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 51 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-17 06:18:42 UTC (rev 196130)
+++ PKGBUILD 2016-11-17 06:18:56 UTC (rev 196131)
@@ -1,51 +0,0 @@
-# $Id: PKGBUILD 140810 2015-09-19 13:17:30Z fyan $
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pycontracts
-pkgname=(python-pycontracts python2-pycontracts)
-_pypiname=PyContracts
-pkgver=1.7.9
-pkgrel=1
-pkgdesc='Declare constraints on function parameters and return values'
-arch=('any')
-url="https://andreacensi.github.io/contracts"
-license=('GPL')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing'
- 'python-decorator' 'python2-decorator' 'python-six' 'python2-six')
-checkdepends=('python-nose' 'python2-nose')
-source=("http://pypi.python.org/packages/source/${_pypiname:0:1}/${_pypiname}/${_pypiname}-${pkgver}.tar.gz")
-sha256sums=('0ebb8c434700d1a990bd4f53dbbf1caec297b3a783c9af26de052104fe4dac65')
-
-prepare() {
- cp -a $_pypiname-$pkgver{,-py2}
-}
-
-build() {
- cd "${srcdir}/${_pypiname}-${pkgver}"
- python setup.py build
-
- cd "${srcdir}/${_pypiname}-${pkgver}-py2"
- python2 setup.py build
-}
-
-check() {
- cd "${srcdir}/${_pypiname}-${pkgver}"
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3
-
- cd "${srcdir}/${_pypiname}-${pkgver}-py2"
- PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2
-}
-
-package_python-pycontracts() {
- depends=('python-pyparsing' 'python-decorator' 'python-six')
-
- cd "${srcdir}/${_pypiname}-${pkgver}"
- python setup.py install --root="${pkgdir}" --optimize=1
-}
-
-package_python2-pycontracts() {
- depends=('python2-pyparsing' 'python2-decorator' 'python2-six')
-
- cd "${srcdir}/${_pypiname}-${pkgver}"
- python2 setup.py install --root="${pkgdir}" --optimize=1
-}
Copied: python-pycontracts/repos/community-any/PKGBUILD (from rev 196130, python-pycontracts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2016-11-17 06:18:56 UTC (rev 196131)
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 140810 2015-09-19 13:17:30Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pycontracts
+pkgname=(python-pycontracts python2-pycontracts)
+pkgver=1.7.12
+pkgrel=1
+pkgdesc='Declare constraints on function parameters and return values'
+arch=('any')
+url="https://andreacensi.github.io/contracts"
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing'
+ 'python-decorator' 'python2-decorator' 'python-six' 'python2-six')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/P/PyContracts/PyContracts-$pkgver.tar.gz")
+sha256sums=('ebf46a3d8413f776960aed8d634bece57878823ee21f723da91b501d1e5a1ee7')
+
+prepare() {
+ cp -a PyContracts-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/PyContracts-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/PyContracts-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/PyContracts-$pkgver
+ python setup.py nosetests
+
+ cd "$srcdir"/PyContracts-$pkgver-py2
+ rm -r src/contracts-py3k-test
+ python2 setup.py nosetests
+}
+
+package_python-pycontracts() {
+ depends=('python-pyparsing' 'python-decorator' 'python-six')
+
+ cd PyContracts-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pycontracts() {
+ depends=('python2-pyparsing' 'python2-decorator' 'python2-six')
+
+ cd PyContracts-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list