[arch-commits] Commit in python-pytest/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jul 17 03:04:57 UTC 2019
Date: Wednesday, July 17, 2019 @ 03:04:57
Author: felixonmars
Revision: 490118
archrelease: copy trunk to community-testing-any
Added:
python-pytest/repos/community-testing-any/
python-pytest/repos/community-testing-any/PKGBUILD
(from rev 490117, python-pytest/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-pytest/repos/community-testing-any/PKGBUILD (from rev 490117, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-07-17 03:04:57 UTC (rev 490118)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgname=python-pytest
+pkgver=5.0.1
+pkgrel=1
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="http://pytest.org/"
+depends=('python-py' 'python-setuptools' 'python-pluggy' 'python-attrs' 'python-more-itertools'
+ 'python-atomicwrites' 'python-wcwidth')
+makedepends=('python-setuptools-scm')
+checkdepends=('lsof' 'python-nose' 'python-mock' 'python-tox' 'python-yaml' 'python-pytest-xdist'
+ 'python-twisted' 'python-requests' 'python-hypothesis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
+sha512sums=('738f8a3b38ad36be6a66ad036999a9b78023c40dd6c9cb9bd01a023841011ae276fec556eb6dabf35638a6c7cf49304c140d90d5174ded710e0f51b51145e5cb')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd pytest-$pkgver
+ python setup.py build
+}
+
+check() {
+ # Skip test_collect_pyargs_with_testpaths because it mangles PYTHONPATH
+
+ cd pytest-$pkgver
+ PYTHONPATH="$PWD"/build/lib python src/pytest.py -k 'not test_collect_pyargs_with_testpaths'
+}
+
+package() {
+ cd pytest-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list