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

Evangelos Foutras foutrelis at archlinux.org
Sat Oct 26 05:30:42 UTC 2019


    Date: Saturday, October 26, 2019 @ 05:30:41
  Author: foutrelis
Revision: 520102

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest/repos/community-staging-any/PKGBUILD (from rev 520101, python-pytest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 05:30:41 UTC (rev 520102)
@@ -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.1
+pkgrel=2
+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=('ed42b28ec51b5e601eb435468a990f78de41f0de73685b8f2936668604a2413a7b621119e8d5ff9bb62b3fe9aeabf006c778c374631c3ccca3284a98a18c4cb1')
+
+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