Date: Tuesday, January 31, 2023 @ 20:10:10
  Author: felixonmars
Revision: 1391521

archrelease: copy trunk to community-any

Added:
  python-pytest-asyncio/repos/community-any/PKGBUILD
    (from rev 1391520, python-pytest-asyncio/trunk/PKGBUILD)
Deleted:
  python-pytest-asyncio/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   68 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 34 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:09:59 UTC (rev 1391520)
+++ PKGBUILD    2023-01-31 20:10:10 UTC (rev 1391521)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pytest-asyncio
-pkgver=0.20.3
-pkgrel=1
-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')
-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')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd pytest-asyncio-$pkgver
-  python -m build -wn
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-asyncio-$pkgver
-  python -m installer --destdir=tmp_install dist/*.whl
-  
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD/tests"
 py.test
-}
-
-package() {
-  cd pytest-asyncio-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-}

Copied: python-pytest-asyncio/repos/community-any/PKGBUILD (from rev 1391520, 
python-pytest-asyncio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-31 20:10:10 UTC (rev 1391521)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-asyncio
+pkgver=0.20.3
+_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=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 
'python-wheel')
+checkdepends=('python-flaky' 'python-hypothesis' 'python-pytest-trio')
+source=("git+https://github.com/pytest-dev/pytest-asyncio.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd pytest-asyncio
+  python -m build -wn
+}
+
+check() {
+  # Hack entry points by installing it
+
+  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" pytest
+}
+
+package() {
+  cd pytest-asyncio
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to