[arch-commits] Commit in python-pytest-runner/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 00:08:46 UTC 2021
Date: Wednesday, December 1, 2021 @ 00:08:46
Author: felixonmars
Revision: 1059080
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 1059079, python-pytest-runner/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-pytest-runner/repos/community-staging-any/PKGBUILD (from rev 1059079, python-pytest-runner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 00:08:46 UTC (rev 1059080)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-runner
+pkgver=5.3.1
+pkgrel=2
+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=('python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-virtualenv'
+ 'python-pytest-flake8' 'python-pytest-enabler')
+source=("https://github.com/pytest-dev/pytest-runner/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('3b3197e86d64e4e62a7d12e70c3e68ef539f88db2acf610951fa61f74e2a00eb64ba4faa8eb787b846f57c9a8f791f8ce6774c5b48a212a4244067c33256a0fa')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+ cd pytest-runner-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd pytest-runner-$pkgver
+ python setup.py egg_info
+ PYTHONPATH="$PWD" pytest
+}
+
+package() {
+ cd pytest-runner-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list