[arch-commits] Commit in python-flaky/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Nov 29 19:28:24 UTC 2021
Date: Monday, November 29, 2021 @ 19:28:24
Author: arojas
Revision: 1057597
Drop python2
Modified:
python-flaky/trunk/PKGBUILD
----------+
PKGBUILD | 42 +++++++-----------------------------------
1 file changed, 7 insertions(+), 35 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 19:21:13 UTC (rev 1057596)
+++ PKGBUILD 2021-11-29 19:28:24 UTC (rev 1057597)
@@ -1,29 +1,21 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-flaky
-pkgname=('python-flaky' 'python2-flaky')
+pkgname=python-flaky
pkgver=3.7.0
-pkgrel=3
+pkgrel=4
pkgdesc='Plugin for nose or py.test that automatically reruns flaky tests'
arch=('any')
license=('Apache')
url='https://github.com/box/flaky'
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest' 'python-nose' 'python2-nose'
- 'python-genty' 'python2-genty' 'python-mock' 'python2-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/box/flaky/archive/v$pkgver.tar.gz")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-nose' 'python-genty' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/box/flaky/archive/v$pkgver.tar.gz")
sha512sums=('20ec44c721aa68aad07b5669a3b23b7551380ef5cddecf9cc6197bbf78c5b1a823887046394aa6c4a66011e1a31c78b02c3cc89e96775498b600f20211ce7b99')
-prepare() {
- cp -a flaky-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/flaky-$pkgver
python setup.py build
-
- cd "$srcdir"/flaky-$pkgver-py2
- python2 setup.py build
}
check() {
@@ -39,31 +31,11 @@
nosetests3 --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
py.test --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
)
-
- cd "$srcdir"/flaky-$pkgver-py2
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- (
- export PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH"
- nosetests2 --with-flaky --exclude="test_nose_options_example" test/test_nose/
- py.test2 -k 'example and not options' --doctest-modules test/test_pytest/
- py.test2 -p no:flaky test/test_pytest/test_flaky_pytest_plugin.py
- nosetests2 --with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py
- py.test2 --force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py
- )
}
-package_python-flaky() {
- depends=('python')
-
+package() {
cd "$srcdir"/flaky-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
-package_python2-flaky() {
- depends=('python2')
-
- cd "$srcdir"/flaky-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list