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

Felix Yan felixonmars at archlinux.org
Thu Oct 3 22:05:33 UTC 2019


    Date: Thursday, October 3, 2019 @ 22:05:32
  Author: felixonmars
Revision: 512585

archrelease: copy trunk to community-testing-any

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

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

Copied: python-pytest/repos/community-testing-any/PKGBUILD (from rev 512584, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-10-03 22:05:32 UTC (rev 512585)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Felix Kaiser <felix.kaiser at fxkr.net>
+
+pkgname=python-pytest
+pkgver=5.2.0
+pkgrel=1
+pkgdesc="Simple powerful testing with Python"
+arch=('any')
+license=('MIT')
+url="https://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=('37cfd18cea0c92bb4202b03b6afde9896a2517b97a3a20c9d7fc47c3b1ae304de188feb695f805ee5480e887408b419c29659523d73f44dd42aab623505237fc')
+
+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