[arch-commits] Commit in python-pycontracts/repos (2 files)

Felix Yan felixonmars at archlinux.org
Wed Apr 22 02:36:24 UTC 2020


    Date: Wednesday, April 22, 2020 @ 02:36:22
  Author: felixonmars
Revision: 617563

archrelease: copy trunk to community-testing-any

Added:
  python-pycontracts/repos/community-testing-any/
  python-pycontracts/repos/community-testing-any/PKGBUILD
    (from rev 617562, python-pycontracts/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-pycontracts/repos/community-testing-any/PKGBUILD (from rev 617562, python-pycontracts/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-04-22 02:36:22 UTC (rev 617563)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pycontracts
+pkgname=(python-pycontracts python2-pycontracts)
+pkgver=1.8.14
+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' 'python-future'
+             'python2-future')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/P/PyContracts/PyContracts-$pkgver.tar.gz")
+sha512sums=('95f8c76e35cc7549fefa069d9c354fc1d4a55dcab0f3fd322cb86aed92c7bfa75a06eabb7540ff991d590a90cdec781906b856291002a82ee5ab0072cdcf6ccd')
+
+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' 'python-future')
+
+  cd PyContracts-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pycontracts() {
+  depends=('python2-pyparsing' 'python2-decorator' 'python2-six' 'python2-future')
+
+  cd PyContracts-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list