[arch-commits] Commit in python-tox/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 13 08:58:16 UTC 2016
Date: Thursday, October 13, 2016 @ 08:58:15
Author: felixonmars
Revision: 192146
upgpkg: python-tox 2.4.0-1
Modified:
python-tox/trunk/PKGBUILD
----------+
PKGBUILD | 47 ++++++++++++++++++++++++++++-------------------
1 file changed, 28 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-10-13 08:56:40 UTC (rev 192145)
+++ PKGBUILD 2016-10-13 08:58:15 UTC (rev 192146)
@@ -6,16 +6,17 @@
pkgbase=python-tox
pkgname=(python-tox python2-tox)
-pkgver=2.3.1
+pkgver=2.4.0
pkgrel=1
pkgdesc='Python virtualenv management and testing tool'
arch=('any')
url='http://testrun.org/tox/latest/'
license=('GPL2')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-virtualenv' 'python2-virtualenv' 'python-pluggy' 'python2-pluggy')
-checkdepends=('python-pytest' 'python2-pytest' 'python-pip' 'python2-pip')
-source=("http://pypi.python.org/packages/source/t/tox/tox-${pkgver}.tar.gz")
-sha256sums=('bf7fcc140863820700d3ccd65b33820ba747b61c5fe4e2b91bb8c64cb21a47ee')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'python-virtualenv'
+ 'python2-virtualenv' 'python-pluggy' 'python2-pluggy')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/t/tox/tox-${pkgver}.tar.gz")
+sha256sums=('ff849ec72088047fd23178c3a2c86daff1b49f5af042329060fc10d37975e376')
prepare() {
cp -a tox-$pkgver{,-py2}
@@ -22,38 +23,46 @@
}
build() {
- cd "$srcdir/tox-$pkgver"
+ cd "$srcdir"/tox-$pkgver
python setup.py build
- cd "$srcdir/tox-$pkgver-py2"
+ cd "$srcdir"/tox-$pkgver-py2
python2 setup.py build
}
check() {
- # Hack entry points by installing it
+ # Hack entry points
- cd "$srcdir/tox-$pkgver"
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- XDG_CACHE_HOME="$srcdir" PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python3.5/site-packages:$PYTHONPATH" py.test
+ (
+ cd "$srcdir"/tox-$pkgver
+ virtualenv "$srcdir/pyvenv" --system-site-packages
+ . "$srcdir/pyvenv/bin/activate"
+ python setup.py install
+ python setup.py ptr
+ )
- cd "$srcdir/tox-$pkgver-py2"
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- XDG_CACHE_HOME="$srcdir" PATH="$PWD/tmp_install/usr/bin:$PATH" PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+ (
+ cd "$srcdir"/tox-$pkgver-py2
+ virtualenv2 "$srcdir/pyvenv-py2" --system-site-packages
+ . "$srcdir/pyvenv-py2/bin/activate"
+ python setup.py install
+ python setup.py ptr
+ )
}
package_python-tox() {
depends=('python-py' 'python-virtualenv' 'python-setuptools' 'python-pluggy')
- cd "$srcdir/tox-$pkgver"
+ cd "$srcdir"/tox-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
- ln -s tox "${pkgdir}/usr/bin/tox3"
+ ln -s tox "$pkgdir"/usr/bin/tox3
}
package_python2-tox() {
depends=('python2-py' 'python2-virtualenv' 'python2-setuptools' 'python2-pluggy')
- cd "$srcdir/tox-$pkgver-py2"
+ cd "$srcdir"/tox-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
- mv "${pkgdir}"/usr/bin/tox{,2}
- mv "${pkgdir}"/usr/bin/{tox-quickstart,tox2-quickstart}
+ mv "$pkgdir"/usr/bin/tox{,2}
+ mv "$pkgdir"/usr/bin/{tox-quickstart,tox2-quickstart}
}
More information about the arch-commits
mailing list