[arch-commits] Commit in python-pycontracts/repos/community-any (PKGBUILD PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Sun Jul 12 11:13:44 UTC 2020


    Date: Sunday, July 12, 2020 @ 11:13:44
  Author: jelle
Revision: 663312

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-12 11:13:36 UTC (rev 663311)
+++ PKGBUILD	2020-07-12 11:13:44 UTC (rev 663312)
@@ -1,51 +0,0 @@
-# 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
-}

Copied: python-pycontracts/repos/community-any/PKGBUILD (from rev 663311, python-pycontracts/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-12 11:13:44 UTC (rev 663312)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pycontracts
+pkgver=1.8.14
+pkgrel=2
+pkgdesc='Declare constraints on function parameters and return values'
+arch=('any')
+url="https://andreacensi.github.io/contracts"
+license=('GPL')
+depends=('python-pyparsing' 'python-decorator' 'python-six' 'python-future')
+makedepends=('python-setuptools' 'python-pyparsing'
+             'python-decorator' 'python-six' 'python-future')
+checkdepends=('python-nose')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/AndreaCensi/contracts/archive/v${pkgver}.tar.gz)
+sha512sums=('ae2a96f603d5b87efd83eb9bb84bf0ebec2d71b08cfed9505be22f15c310f6428652e40c69075577eaee343a0babf6fce7db06c4ad3605a88646d9242dfd1003')
+
+build() {
+  cd contracts-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd contracts-$pkgver
+  python setup.py nosetests
+}
+
+package_python-pycontracts() {
+  cd contracts-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}


More information about the arch-commits mailing list