Date: Tuesday, February 14, 2023 @ 22:18:05
Author: felixonmars
Revision: 1400504
archrelease: copy trunk to community-any
Added:
python-pytest-forked/repos/community-any/PKGBUILD
(from rev 1400503, python-pytest-forked/trunk/PKGBUILD)
Deleted:
python-pytest-forked/repos/community-any/PKGBUILD
----------+
PKGBUILD | 72 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 35 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-14 22:17:48 UTC (rev 1400503)
+++ PKGBUILD 2023-02-14 22:18:05 UTC (rev 1400504)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pytest-forked
-pkgver=1.4.0
-pkgrel=2
-pkgdesc='run tests in isolated forked subprocesses'
-arch=('any')
-license=('MIT')
-url='https://github.com/pytest-dev/pytest-forked'
-makedepends=('python-pytest' 'python-setuptools-scm')
-depends=('python-pytest')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-forked/archive/v$pkgver.tar.gz")
-sha512sums=('f5ccf71d7f335073b5cfef15d44a65b315824c1087017ee692118354fc2f17da697ed6b0a7d7030b6259a4c3ceb9356ebd015f7867f3b4a5673eae12fd9ec952')
-
-prepare() {
- export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
-build() {
- cd "$srcdir"/pytest-forked-$pkgver
- python 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.10/site-packages:$PYTHONPATH"
py.test
-}
-
-package() {
- cd pytest-forked-$pkgver
- python 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-any/PKGBUILD (from rev 1400503,
python-pytest-forked/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-14 22:18:05 UTC (rev 1400504)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-forked
+pkgver=1.5.0
+_commit=a5c1345e71214824bb2b21f97bd8fe091c5ccbb3
+pkgrel=1
+pkgdesc='run tests in isolated forked subprocesses'
+arch=('any')
+license=('MIT')
+url='https://github.com/pytest-dev/pytest-forked'
+depends=('python-py' 'python-pytest')
+makedepends=('git' 'python-setuptools-scm')
+source=("git+https://github.com/pytest-dev/pytest-forked.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd pytest-forked
+ python setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+ cd pytest-forked
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH" py.test
+}
+
+package() {
+ cd pytest-forked
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et: