[arch-commits] Commit in python-pytest-runner/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Nov 14 21:00:58 UTC 2020
Date: Saturday, November 14, 2020 @ 21:00:57
Author: felixonmars
Revision: 754191
archrelease: copy trunk to community-staging-any
Added:
python-pytest-runner/repos/community-staging-any/PKGBUILD
(from rev 754190, python-pytest-runner/trunk/PKGBUILD)
Deleted:
python-pytest-runner/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 105 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 54 insertions(+), 51 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-14 21:00:40 UTC (rev 754190)
+++ PKGBUILD 2020-11-14 21:00:57 UTC (rev 754191)
@@ -1,51 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-runner
-pkgname=('python-pytest-runner' 'python2-pytest-runner')
-pkgver=5.2
-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-cov' 'python-pytest-virtualenv'
- 'python-pytest-flake8')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz")
-sha512sums=('0ce9c191481ab97795d0f45bdea7669cb61c3ac6aac476954d34c3e09e6fb08fd6bf73f192c014cb7ff2bd90dbfeb0f01d9a9ba7a9c6caeb371e40b42b558d63')
-
-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
-}
Copied: python-pytest-runner/repos/community-staging-any/PKGBUILD (from rev 754190, python-pytest-runner/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-14 21:00:57 UTC (rev 754191)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-runner
+pkgname=('python-pytest-runner' 'python2-pytest-runner')
+pkgver=5.2
+pkgrel=3
+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-cov' 'python-pytest-virtualenv'
+ 'python-pytest-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-runner/archive/$pkgver.tar.gz"
+ $pkgbase-black-fix.patch::https://github.com/pytest-dev/pytest-runner/commit/18b8fa1ace1b4ac0dbd53e14940da27c10db650d.patch)
+sha512sums=('0ce9c191481ab97795d0f45bdea7669cb61c3ac6aac476954d34c3e09e6fb08fd6bf73f192c014cb7ff2bd90dbfeb0f01d9a9ba7a9c6caeb371e40b42b558d63'
+ '92650ddf5c9ad43b92c0da3a0bb7f7669523897ca089a04ef46e4856de137fb6548536c4c024c5af2ff2bfbe96401aaaddb9c4448d7781b6accc72b2019f467f')
+
+prepare() {
+ patch -d pytest-runner-$pkgver -p1 < $pkgbase-black-fix.patch || :
+ 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