[arch-commits] Commit in python-pycontracts/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Nov 10 14:50:34 UTC 2015
Date: Tuesday, November 10, 2015 @ 15:50:34
Author: fyan
Revision: 146500
archrelease: copy trunk to community-any
Added:
python-pycontracts/repos/community-any/PKGBUILD
(from rev 146499, python-pycontracts/trunk/PKGBUILD)
Deleted:
python-pycontracts/repos/community-any/PKGBUILD
----------+
PKGBUILD | 102 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 51 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-11-10 14:50:17 UTC (rev 146499)
+++ PKGBUILD 2015-11-10 14:50:34 UTC (rev 146500)
@@ -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.6
-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=('94814b376b168483edeee33fdf1a04d892065d0bdfe0638d281c285d1f3e42bf')
-
-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 146499, python-pycontracts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-11-10 14:50:34 UTC (rev 146500)
@@ -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)
+_pypiname=PyContracts
+pkgver=1.7.8
+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=('c7a6f49d509cb3a4c17386a311d25d229d5fa73062650ef9538c47846937b388')
+
+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
+}
More information about the arch-commits
mailing list