Date: Tuesday, January 31, 2023 @ 20:09:59
Author: felixonmars
Revision: 1391520
upgpkg: python-pytest-asyncio 0.20.3-2
Modified:
python-pytest-asyncio/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 20:08:49 UTC (rev 1391519)
+++ PKGBUILD 2023-01-31 20:09:59 UTC (rev 1391520)
@@ -2,21 +2,20 @@
pkgname=python-pytest-asyncio
pkgver=0.20.3
-pkgrel=1
+_commit=007e8ec12662ffd896c6151239dc7ed1402dc710
+pkgrel=2
pkgdesc="Pytest support for asyncio."
arch=('any')
license=('Apache')
url="https://github.com/pytest-dev/pytest-asyncio/"
depends=('python-pytest')
-makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm'
'python-wheel')
checkdepends=('python-flaky' 'python-hypothesis' 'python-pytest-trio')
-source=("https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('78a6e251db80696d6f62a54c8d6836e2a820f27efdaa848eb1be512a1592d3bd3fb7c7eee46bb2039a317a8d431565614c888f8436fbe0d4eb60534ce4780e90')
+source=("git+https://github.com/pytest-dev/pytest-asyncio.git#commit=$_commit")
+sha512sums=('SKIP')
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
build() {
- cd pytest-asyncio-$pkgver
+ cd pytest-asyncio
python -m build -wn
}
@@ -23,13 +22,13 @@
check() {
# Hack entry points by installing it
- cd pytest-asyncio-$pkgver
+ cd pytest-asyncio
python -m installer --destdir=tmp_install dist/*.whl
local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
- PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH:$PWD/tests" py.test
+ PYTHONPATH="$PWD/tmp_install/$site_packages:$PYTHONPATH:$PWD/tests" pytest
}
package() {
- cd pytest-asyncio-$pkgver
+ cd pytest-asyncio
python -m installer --destdir="$pkgdir" dist/*.whl
}