Date: Tuesday, February 14, 2023 @ 22:17:48 Author: felixonmars Revision: 1400503
upgpkg: python-pytest-forked 1.5.0-1 Modified: python-pytest-forked/trunk/PKGBUILD ----------+ PKGBUILD | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-14 22:06:22 UTC (rev 1400502) +++ PKGBUILD 2023-02-14 22:17:48 UTC (rev 1400503) @@ -1,29 +1,26 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-pytest-forked -pkgver=1.4.0 -pkgrel=2 +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' -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') +depends=('python-py' 'python-pytest') +makedepends=('git' 'python-setuptools-scm') +source=("git+https://github.com/pytest-dev/pytest-forked.git#commit=$_commit") +sha512sums=('SKIP') -prepare() { - export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver -} - build() { - cd "$srcdir"/pytest-forked-$pkgver + cd pytest-forked python setup.py build } check() { # Hack entry points by installing it - cd "$srcdir"/pytest-forked-$pkgver + 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 @@ -30,9 +27,9 @@ } package() { - cd pytest-forked-$pkgver + cd pytest-forked python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } # vim:set ts=2 sw=2 et:
