2014-04-14 04:29:59 +08:00
|
|
|
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
|
|
# Contributor: aur2ccr (http://ddg.gg/?q=!ccr+aur2ccr)
|
|
|
|
# Contributor: Sebastian Wiesner <lunaryorn googlemail com>
|
|
|
|
# Contributor: Igor Ramos Tiburcio <irtigor@yahoo.com.br>
|
|
|
|
|
|
|
|
pkgbase=python-py
|
|
|
|
pkgname=('python2-py' 'python3-py')
|
2014-09-07 02:06:09 +08:00
|
|
|
pkgver=1.4.24
|
|
|
|
pkgrel=1
|
2014-04-14 04:29:59 +08:00
|
|
|
pkgdesc="Python rapid development tools"
|
2014-09-07 02:06:09 +08:00
|
|
|
arch=('any')
|
2014-04-14 04:29:59 +08:00
|
|
|
license=('MIT')
|
2014-09-07 02:06:09 +08:00
|
|
|
url="http://pylib.readthedocs.org/en/latest/"
|
2014-04-14 04:29:59 +08:00
|
|
|
makedepends=("python2-setuptools" "python3-setuptools" )
|
2014-04-19 05:45:22 +08:00
|
|
|
checkdepends=('python2-pytest' 'python3-pytest')
|
2014-04-14 04:29:59 +08:00
|
|
|
source=("http://pypi.python.org/packages/source/p/py/py-$pkgver.tar.gz")
|
2014-09-07 02:06:09 +08:00
|
|
|
sha512sums=('f62a6e962ff1ebab484725f37825cf07d730c182b7558dddf9ffe7fba7bc068748eb39952adf290fb4029989d4df1f0da1e17d4a5d7c8c509b7c82697d1e1c7c')
|
2014-04-14 04:29:59 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cp -r py-${pkgver}{,-py3}
|
|
|
|
cp -r py-${pkgver}{,-py2}
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/py-${pkgver}-py3"
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
cd "$srcdir/py-${pkgver}-py2"
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
2014-04-19 05:45:22 +08:00
|
|
|
check() {
|
|
|
|
cd "$srcdir/py-${pkgver}-py3"
|
2014-09-07 02:06:09 +08:00
|
|
|
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" LANG=en_US.utf8 py.test
|
2014-04-14 04:29:59 +08:00
|
|
|
|
2014-04-19 05:45:22 +08:00
|
|
|
cd "$srcdir/py-${pkgver}-py2"
|
2014-09-07 02:06:09 +08:00
|
|
|
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" LANG=en_US.utf8 py.test2
|
2014-04-19 05:45:22 +08:00
|
|
|
}
|
2014-04-14 04:29:59 +08:00
|
|
|
|
|
|
|
package_python3-py() {
|
|
|
|
depends=('python3')
|
|
|
|
|
|
|
|
cd py-${pkgver}-py3
|
|
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python2-py() {
|
|
|
|
depends=('python2')
|
|
|
|
|
|
|
|
cd py-${pkgver}-py2
|
|
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|
|
|
|
|