Date: Sunday, July 12, 2020 @ 11:13:36 Author: jelle Revision: 663311
Rmove unused python2 version Modified: python-pycontracts/trunk/PKGBUILD ----------+ PKGBUILD | 43 +++++++++++-------------------------------- 1 file changed, 11 insertions(+), 32 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-07-12 11:00:25 UTC (rev 663310) +++ PKGBUILD 2020-07-12 11:13:36 UTC (rev 663311) @@ -1,51 +1,30 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> -pkgbase=python-pycontracts -pkgname=(python-pycontracts python2-pycontracts) +pkgname=python-pycontracts pkgver=1.8.14 -pkgrel=1 +pkgrel=2 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') +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') -prepare() { - cp -a PyContracts-$pkgver{,-py2} -} - build() { - cd "$srcdir"/PyContracts-$pkgver + cd contracts-$pkgver python setup.py build - - cd "$srcdir"/PyContracts-$pkgver-py2 - python2 setup.py build } check() { - cd "$srcdir"/PyContracts-$pkgver + cd contracts-$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 + cd contracts-$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 -}