[arch-commits] Commit in python-pytest/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Aug 19 04:12:46 UTC 2019


    Date: Monday, August 19, 2019 @ 04:12:46
  Author: felixonmars
Revision: 500131

archrelease: copy trunk to community-testing-any

Added:
  python-pytest/repos/community-testing-any/
  python-pytest/repos/community-testing-any/PKGBUILD
    (from rev 500130, python-pytest/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-pytest/repos/community-testing-any/PKGBUILD (from rev 500130, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-08-19 04:12:46 UTC (rev 500131)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgname=python-pytest
+pkgver=5.1.0
+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' 'python-importlib-metadata')
+makedepends=('python-setuptools-scm')
+checkdepends=('lsof' 'python-nose' 'python-mock' 'python-requests' 'python-hypothesis'
+              'python-argcomplete' 'python-xmlschema'
+              # Unlisted, but actually used. Check again after a while:
+              'python-numpy' 'python-twisted' 'python-pytest-xdist' 'python-decorator'
+              'python-jinja' 'python-pexpect')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz")
+sha512sums=('d6d112fe390d890ca58ba685024890f624456d5069f32637fc054db1f817609b48c01a42d3a97b362d6906b4705a37ebd73a270a4a86256f2ffa7b2a1b153aa6')
+
+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
+  python setup.py egg_info
+  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