[arch-commits] Commit in python-pytest-xdist/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Wed Dec 1 14:55:15 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:55:15
Author: foutrelis
Revision: 1059531
archrelease: copy trunk to community-staging-any
Added:
python-pytest-xdist/repos/community-staging-any/
python-pytest-xdist/repos/community-staging-any/PKGBUILD
(from rev 1059529, python-pytest-xdist/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-pytest-xdist/repos/community-staging-any/PKGBUILD (from rev 1059529, python-pytest-xdist/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:55:15 UTC (rev 1059531)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-xdist
+pkgver=2.4.0
+pkgrel=2
+pkgdesc='py.test xdist plugin for distributed testing and loop-on-failing modes'
+arch=('any')
+license=('MIT')
+url='https://bitbucket.org/pytest-dev/pytest-xdist'
+depends=('python-execnet' 'python-psutil' 'python-pytest-forked')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-filelock')
+source=("https://github.com/pytest-dev/pytest-xdist/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('ccaaa76b18363891b45a9374c73199702e5a543d838ac86f65b3919881e45c327edccb9af5b9a5d85e35474b1863c75b4dda103feac63c3bd9536a8e9d437f80')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd pytest-xdist-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd pytest-xdist-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest \
+ --deselect testing/acceptance_test.py::TestWarnings::test_warning_captured_deprecated_in_pytest_6
+}
+
+package() {
+ cd pytest-xdist-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list