Date: Wednesday, April 5, 2023 @ 17:27:50
Author: felixonmars
Revision: 1437819
archrelease: copy trunk to community-staging-any
Added:
python-pytest-runner/repos/community-staging-any/
python-pytest-runner/repos/community-staging-any/PKGBUILD
(from rev 1437818, python-pytest-runner/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-pytest-runner/repos/community-staging-any/PKGBUILD (from rev
1437818, python-pytest-runner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-05 17:27:50 UTC (rev 1437819)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-runner
+pkgver=6.0.0
+_commit=a3dc9f4c6afea684ed48da998958470ea41f3c00
+pkgrel=3
+pkgdesc="Invoke py.test as distutils command with dependency resolution"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/pytest-runner"
+depends=('python-pytest' 'python-setuptools')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
+checkdepends=('python-pytest-virtualenv' 'python-pytest-enabler')
+source=("git+https://github.com/pytest-dev/pytest-runner.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd pytest-runner
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd pytest-runner
+ PYTHONPATH="$PWD" pytest
+}
+
+package() {
+ cd pytest-runner
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}