[arch-commits] Commit in python-pytest-runner/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 06:12:37 UTC 2019
Date: Saturday, October 26, 2019 @ 06:12:37
Author: foutrelis
Revision: 520220
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 520219, python-pytest-runner/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-pytest-runner/repos/community-staging-any/PKGBUILD (from rev 520219, python-pytest-runner/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 06:12:37 UTC (rev 520220)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-runner
+pkgname=('python-pytest-runner' 'python2-pytest-runner')
+pkgver=5.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"
+makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
+checkdepends=('python-pytest-black' 'python-pytest-virtualenv' 'python-pytest-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz")
+sha512sums=('79806b6370e2378b5f230181e265e3046739ebc3ece729d1e3805510b5fb2d34022d60b9071a5a036f3b2604ffedf14b403e9910f0c56a58adc5c51c84866146')
+
+prepare() {
+ cp -a pytest-runner-$pkgver{,-py2}
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/pytest-runner-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pytest-runner-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd pytest-runner-$pkgver
+ python setup.py egg_info
+ PYTHONPATH="$PWD" pytest
+}
+
+package_python-pytest-runner() {
+ depends=('python-pytest')
+
+ cd pytest-runner-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-runner() {
+ depends=('python2-pytest')
+
+ cd pytest-runner-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list