[arch-commits] Commit in python-pytest-responsemock/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Fri Dec 3 22:50:57 UTC 2021
Date: Friday, December 3, 2021 @ 22:50:57
Author: dvzrv
Revision: 1064922
Disable flaky test.
Disable a flaky test (all tests require remote resources :( ).
Simplify quoting in file.
Simplify installation in package() to adhere to python package guidelines.
Modified:
python-pytest-responsemock/trunk/PKGBUILD
----------+
PKGBUILD | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-03 22:50:07 UTC (rev 1064921)
+++ PKGBUILD 2021-12-03 22:50:57 UTC (rev 1064922)
@@ -5,12 +5,12 @@
pkgver=1.0.1
pkgrel=2
pkgdesc="Simplified requests calls mocking for pytest"
-arch=('any')
+arch=(any)
url="https://github.com/idlesign/pytest-responsemock"
-license=('BSD')
-depends=('python-pytest' 'python-responses')
-makedepends=('python-setuptools')
-checkdepends=('python-requests')
+license=(BSD)
+depends=(python-pytest python-responses)
+makedepends=(python-setuptools)
+checkdepends=(python-requests)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('4b04f5e1e7608640cf8310d33ce6ad53cdf416f0a05a087b86288abff53bd9ce2ecbfaf83320b1356e4aecfc7f3d7bf12dbfb30d1488aabf96e32f5e37612c8a')
b2sums=('b62184c382b9110b5a0479c1fe5aaf24a7fc0342aa69f8d21559a870c937ec635a3e18bf803ff3544843af664ab0b3b996bbba2eb2c3796cf7a5b3a6f862c001')
@@ -27,14 +27,13 @@
check() {
cd "$pkgname-$pkgver"
export PYTHONPATH="build:${PYTHONPATH}"
- pytest -v
+ # disable flaky tests
+ pytest -v -k "not test_bypass"
}
package() {
cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --root="${pkgdir}"
+ python setup.py install --optimize=1 --root="${pkgdir}"
install -vDm 644 {AUTHORS,CHANGELOG,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list