Date: Sunday, March 11, 2018 @ 10:03:30 Author: felixonmars Revision: 306109
archrelease: copy trunk to community-any Added: python-pytools/repos/community-any/PKGBUILD (from rev 306108, python-pytools/trunk/PKGBUILD) Deleted: python-pytools/repos/community-any/PKGBUILD ----------+ PKGBUILD | 104 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-03-11 10:03:15 UTC (rev 306108) +++ PKGBUILD 2018-03-11 10:03:30 UTC (rev 306109) @@ -1,52 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Stéphane Gaudreault <steph...@archlinux.org> - -pkgbase=python-pytools -pkgname=('python2-pytools' 'python-pytools') -pkgver=2018.1 -pkgrel=1 -pkgdesc="A collection of tools for Python" -arch=('any') -url="http://mathema.tician.de/software/pytools" -license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator' - 'python-six' 'python2-six' 'python-appdirs' 'python2-appdirs' 'python-numpy' - 'python2-numpy') -checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("https://pypi.io/packages/source/p/pytools/pytools-$pkgver.tar.gz") -sha512sums=('0b45916d89590c0efcfcbd2d843c0c86f576b0c0680edd371934d7ea56c10518a5327903a85b00dedf56bfe64a8eeb67bce361d1af114d3aab2ea35a6feac0d6') - -prepare() { - cp -a pytools-$pkgver{,-python2} -} - -build() { - cd "$srcdir"/pytools-$pkgver - python setup.py build - - cd "$srcdir"/pytools-$pkgver-python2 - python2 setup.py build -} - -check() { - cd "$srcdir"/pytools-$pkgver - python setup.py pytest - - cd "$srcdir"/pytools-$pkgver-python2 - python2 setup.py pytest -} - -package_python-pytools(){ - depends=('python-six' 'python-decorator' 'python-appdirs' 'python-numpy') - - cd pytools-$pkgver - python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 -} - -package_python2-pytools() { - depends=('python2-six' 'python2-decorator' 'python2-appdirs' 'python2-numpy') - - cd pytools-$pkgver-python2 - python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 -} Copied: python-pytools/repos/community-any/PKGBUILD (from rev 306108, python-pytools/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-03-11 10:03:30 UTC (rev 306109) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Stéphane Gaudreault <steph...@archlinux.org> + +pkgbase=python-pytools +pkgname=('python2-pytools' 'python-pytools') +pkgver=2018.2 +pkgrel=1 +pkgdesc="A collection of tools for Python" +arch=('any') +url="http://mathema.tician.de/software/pytools" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'python-decorator' 'python2-decorator' + 'python-six' 'python2-six' 'python-appdirs' 'python2-appdirs' 'python-numpy' + 'python2-numpy') +checkdepends=('python-pytest-runner' 'python2-pytest-runner') +source=("https://pypi.io/packages/source/p/pytools/pytools-$pkgver.tar.gz") +sha512sums=('97ef23cdec6868e7a09564bdeb8f27a392ea8ee991fa99a28585eb4aff0965e06a095dd5c5f5858d1fc8da07b337c54fb92816fd15f4cfeafd496322e7e18a82') + +prepare() { + cp -a pytools-$pkgver{,-python2} +} + +build() { + cd "$srcdir"/pytools-$pkgver + python setup.py build + + cd "$srcdir"/pytools-$pkgver-python2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pytools-$pkgver + python setup.py pytest + + cd "$srcdir"/pytools-$pkgver-python2 + python2 setup.py pytest +} + +package_python-pytools(){ + depends=('python-six' 'python-decorator' 'python-appdirs' 'python-numpy') + + cd pytools-$pkgver + python setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 +} + +package_python2-pytools() { + depends=('python2-six' 'python2-decorator' 'python2-appdirs' 'python2-numpy') + + cd pytools-$pkgver-python2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --skip-build --optimize=1 +}