FS#50792 - [python-pytest] re-enable checks using tox
Attached to Project:
Community Packages
Opened by Daniel Hahler (blueyed) - Thursday, 15 September 2016, 23:33 GMT
Last edited by Felix Yan (felixonmars) - Monday, 17 October 2016, 03:32 GMT
Opened by Daniel Hahler (blueyed) - Thursday, 15 September 2016, 23:33 GMT
Last edited by Felix Yan (felixonmars) - Monday, 17 October 2016, 03:32 GMT
|
Details
I am not sure, but my impression was that tox is required to
run all of pytest's tests.
The following patch enables the check again: ``` PKGBUILD | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git i/PKGBUILD w/PKGBUILD index 1fea167..980ec50 100644 --- i/PKGBUILD +++ w/PKGBUILD @@ -12,7 +12,8 @@ license=('MIT') url="http://pytest.org/" makedepends=('python-setuptools' 'python2-setuptools' 'python-py' 'python2-py' 'git' 'python-pluggy' 'python2-pluggy') -checkdepends=('lsof' 'python-nose' 'python2-nose' 'python-mock' 'python2-mock' +checkdepends=('python-tox' 'python2-tox' + 'lsof' 'python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-yaml' 'python2-yaml' 'python-pexpect' 'python2-pexpect' 'python-pytest-xdist' 'python2-pytest-xdist' 'python-twisted' 'python2-twisted' 'python-requests' 'python2-requests' 'python-hypothesis' 'python2-hypothesis') @@ -36,14 +37,12 @@ build() { } # Tests hang as of 3.0.0 -check_disabled() { +check() { cd "$srcdir"/pytest - # 1 xdist-related failure - python setup.py test || warning "Tests failed" + tox --sitepackages -e $(tox -l | grep '^py35' | paste -s -d,) cd "$srcdir"/pytest-py2 - # 1 xdist-related failure - python2 setup.py test || warning "Tests failed" + tox --sitepackages -e $(tox -l | grep '^py27' | paste -s -d,) } package_python-pytest() { @@ -52,8 +51,6 @@ package_python-pytest() { cd pytest python setup.py install --root="$pkgdir" --optimize=1 install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - rm "$pkgdir"/usr/bin/pytest } package_python2-pytest() { @@ -64,5 +61,5 @@ package_python2-pytest() { install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE mv "$pkgdir"/usr/bin/py.test{,2} - rm "$pkgdir"/usr/bin/pytest + mv "$pkgdir"/usr/bin/pytest{,2} } ``` It also includes the fix for https://bugs.archlinux.org/task/50791. |
This task depends upon
Closed by Felix Yan (felixonmars)
Monday, 17 October 2016, 03:32 GMT
Reason for closing: Fixed
Additional comments about closing: 3.0.3-2
Monday, 17 October 2016, 03:32 GMT
Reason for closing: Fixed
Additional comments about closing: 3.0.3-2