[arch-commits] Commit in python-pytest/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 16 18:53:17 UTC 2020
Date: Wednesday, December 16, 2020 @ 18:53:16
Author: felixonmars
Revision: 776892
archrelease: copy trunk to community-testing-any
Added:
python-pytest/repos/community-testing-any/
python-pytest/repos/community-testing-any/PKGBUILD
(from rev 776891, python-pytest/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: python-pytest/repos/community-testing-any/PKGBUILD (from rev 776891, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-12-16 18:53:16 UTC (rev 776892)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgname=python-pytest
+pkgver=6.2.0
+pkgrel=1
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="https://pytest.org/"
+depends=('python-attrs' 'python-iniconfig' 'python-more-itertools' 'python-packaging' 'python-pluggy'
+ 'python-py' 'python-toml')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock' 'python-nose' 'python-requests'
+ 'python-xmlschema'
+ # Unlisted, but actually used. Check again after a while:
+ '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=('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
+}
+
+check() {
+ cd pytest-$pkgver
+ python setup.py egg_info
+ # 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 -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list