[arch-commits] Commit in python-pytest-asyncio/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sat Sep 3 13:10:04 UTC 2022


    Date: Saturday, September 3, 2022 @ 13:10:03
  Author: felixonmars
Revision: 1292390

archrelease: copy trunk to community-any

Added:
  python-pytest-asyncio/repos/community-any/PKGBUILD
    (from rev 1292389, 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	2022-09-03 13:09:48 UTC (rev 1292389)
+++ PKGBUILD	2022-09-03 13:10:03 UTC (rev 1292390)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-asyncio
-pkgver=0.18.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-setuptools-scm')
-checkdepends=('python-flaky' 'python-hypothesis' 'python-pytest-trio')
-source=("https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('04d2046c039131598cb593afc1908be0dff2b24a91c89f36fca75d2d65916571e48fe149c1ba90244f299586277320cf6f130a02824fde9ee0a4d2429bf58a54')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd pytest-asyncio-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-asyncio-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD/tests" py.test
-}
-
-package() {
-  cd pytest-asyncio-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-}

Copied: python-pytest-asyncio/repos/community-any/PKGBUILD (from rev 1292389, python-pytest-asyncio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-03 13:10:03 UTC (rev 1292390)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-asyncio
+pkgver=0.19.0
+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=('7be87e6edd28496713ae5cca396fed67d372f2882dd573a8b72a84ebf6d262060cda9372bcde601130c42fc27faf15cf292cd820995ea93a324c209f203e823f')
+
+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
+}



More information about the arch-commits mailing list