[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Sat Jul 24 05:18:33 UTC 2021


    Date: Saturday, July 24, 2021 @ 05:18:32
  Author: felixonmars
Revision: 984869

split py2 as new version doesn't support py2 anymore

Added:
  python2-pytest-runner/
  python2-pytest-runner/repos/
  python2-pytest-runner/trunk/
  python2-pytest-runner/trunk/PKGBUILD

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

Added: python2-pytest-runner/trunk/PKGBUILD
===================================================================
--- python2-pytest-runner/trunk/PKGBUILD	                        (rev 0)
+++ python2-pytest-runner/trunk/PKGBUILD	2021-07-24 05:18:32 UTC (rev 984869)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-pytest-runner
+pkgver=5.2
+pkgrel=4
+pkgdesc="Invoke py.test as distutils command with dependency resolution"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/pytest-runner"
+depends=('python2-pytest')
+makedepends=('python2-setuptools-scm')
+source=("https://github.com/pytest-dev/pytest-runner/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('0ce9c191481ab97795d0f45bdea7669cb61c3ac6aac476954d34c3e09e6fb08fd6bf73f192c014cb7ff2bd90dbfeb0f01d9a9ba7a9c6caeb371e40b42b558d63')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd pytest-runner-$pkgver
+  python2 setup.py build
+}
+
+package() {
+  cd pytest-runner-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list