[arch-commits] Commit in python-pytest/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Dec 16 18:53:02 UTC 2020
Date: Wednesday, December 16, 2020 @ 18:53:01
Author: felixonmars
Revision: 776891
upgpkg: python-pytest 6.2.0-1
Modified:
python-pytest/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-12-16 18:50:13 UTC (rev 776890)
+++ PKGBUILD 2020-12-16 18:53:01 UTC (rev 776891)
@@ -2,8 +2,8 @@
# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
pkgname=python-pytest
-pkgver=6.1.2
-pkgrel=3
+pkgver=6.2.0
+pkgrel=1
pkgdesc="Simple powerful testing with Python"
arch=('any')
license=('MIT')
@@ -17,10 +17,14 @@
'python-decorator' 'python-docutils' 'python-jinja' 'python-numpy' 'python-pexpect'
'python-pygments' 'python-twisted' 'python-pytest-xdist')
source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
-sha512sums=('3524c99b6e2cd3be456de0fe7130d15a2ada96d52835a0786925082a513c7d42a5422bb0d64a8e7fac22880b2441a18918853fdfde2c819d48d6f0ce0d4e09df')
+sha512sums=('8dcf68e9ff6f18ea727c5c3d500fd84545fe0ad3913a6ea7d8d525a3d930ccdc4778cd7e2c0b1ecfe99d054a0feaeb522e456018e4b17baf0b75d8489c630409')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+prepare() {
+ sed -i '/_pytest.warning_types.PytestUnknownMarkWarning/a \ "ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning"' pytest-$pkgver/pyproject.toml
+}
+
build() {
cd pytest-$pkgver
python setup.py build
@@ -29,11 +33,15 @@
check() {
cd pytest-$pkgver
python setup.py egg_info
- PYTHONPATH="$PWD"/build/lib python src/pytest/__main__.py
+ # pdb tests: https://github.com/pytest-dev/pytest/issues/8161
+ PYTHONPATH="$PWD"/build/lib python src/pytest/__main__.py --deselect testing/test_debugging.py::TestPDB::test_pdb_interaction_doctest \
+ --deselect testing/test_debugging.py::TestPDB::test_pdb_with_injected_do_debug \
+ --deselect testing/test_debugging.py::TestPDB::test_pdb_continue_with_recursive_debug \
+ --deselect testing/test_debugging.py::test_pdb_suspends_fixture_capturing
}
package() {
cd pytest-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list