[arch-commits] Commit in python-pytest-forked/repos/community-staging-any (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Nov 3 20:12:05 UTC 2019
Date: Sunday, November 3, 2019 @ 20:12:05
Author: felixonmars
Revision: 522618
archrelease: copy trunk to community-staging-any
Added:
python-pytest-forked/repos/community-staging-any/PKGBUILD
(from rev 522617, python-pytest-forked/trunk/PKGBUILD)
Deleted:
python-pytest-forked/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 114 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 57 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-03 20:11:49 UTC (rev 522617)
+++ PKGBUILD 2019-11-03 20:12:05 UTC (rev 522618)
@@ -1,57 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-forked
-pkgname=('python-pytest-forked' 'python2-pytest-forked')
-pkgver=1.1.3
-pkgrel=2
-pkgdesc='run tests in isolated forked subprocesses'
-arch=('any')
-license=('MIT')
-url='https://github.com/pytest-dev/pytest-forked'
-makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-forked/archive/v$pkgver.tar.gz")
-sha512sums=('c4ccbcc6819dc44c680aff211fd50a0806691cd938e669db9bda859a704abf3413e5c59b1c70e44b84439ef82d50e96f8d7586f3fa516a9329001af35279e364')
-
-prepare() {
- cp -a pytest-forked-$pkgver{,-py2}
-
- export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
-build() {
- cd "$srcdir"/pytest-forked-$pkgver
- python setup.py build
-
- cd "$srcdir"/pytest-forked-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- # Hack entry points by installing it
-
- cd "$srcdir"/pytest-forked-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
-
- cd "$srcdir"/pytest-forked-$pkgver-py2
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
-}
-
-package_python-pytest-forked() {
- depends=('python-pytest')
-
- cd pytest-forked-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pytest-forked() {
- depends=('python2-pytest')
-
- cd pytest-forked-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-pytest-forked/repos/community-staging-any/PKGBUILD (from rev 522617, python-pytest-forked/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-11-03 20:12:05 UTC (rev 522618)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-forked
+pkgname=('python-pytest-forked' 'python2-pytest-forked')
+pkgver=1.1.3
+pkgrel=3
+pkgdesc='run tests in isolated forked subprocesses'
+arch=('any')
+license=('MIT')
+url='https://github.com/pytest-dev/pytest-forked'
+makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-forked/archive/v$pkgver.tar.gz")
+sha512sums=('c4ccbcc6819dc44c680aff211fd50a0806691cd938e669db9bda859a704abf3413e5c59b1c70e44b84439ef82d50e96f8d7586f3fa516a9329001af35279e364')
+
+prepare() {
+ cp -a pytest-forked-$pkgver{,-py2}
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/pytest-forked-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pytest-forked-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-forked-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" py.test
+
+ cd "$srcdir"/pytest-forked-$pkgver-py2
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-pytest-forked() {
+ depends=('python-pytest')
+
+ cd pytest-forked-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-forked() {
+ depends=('python2-pytest')
+
+ cd pytest-forked-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list