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

Chih-Hsuan Yen yan12125 at archlinux.org
Thu Jun 24 05:04:41 UTC 2021


    Date: Thursday, June 24, 2021 @ 05:04:41
  Author: yan12125
Revision: 967157

archrelease: copy trunk to community-any

Added:
  python-anyio/repos/community-any/PKGBUILD
    (from rev 967156, python-anyio/trunk/PKGBUILD)
Deleted:
  python-anyio/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  100 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 50 insertions(+), 50 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-24 05:03:57 UTC (rev 967156)
+++ PKGBUILD	2021-06-24 05:04:41 UTC (rev 967157)
@@ -1,50 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-
-pkgname=python-anyio
-pkgver=3.2.0
-pkgrel=1
-pkgdesc='High level compatibility layer for multiple asynchronous event loop implementations'
-arch=(any)
-url='https://github.com/agronholm/anyio'
-license=(MIT)
-depends=(python python-idna python-sniffio)
-makedepends=(python-setuptools python-setuptools-scm)
-checkdepends=(python-pytest python-trustme python-hypothesis python-uvloop
-              python-curio python-trio python-pytest-mock)
-optdepends=(
-  'python-curio: curio backend'
-  'python-trio: trio backend'
-)
-source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
-sha256sums=('679f0289220a176440e5b6baeb5caed89d5d5f0582471fd59dc7e628b40d5ffa')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
-  cd anyio-$pkgver
-  # pytest-mock 3.3 comes with an API change [1], and anyio uses the new API,
-  # while python-pytest-mock in Arch is out-dated. Patch the sources to use
-  # the old API.
-  # [1] https://github.com/pytest-dev/pytest-mock/issues/202
-  sed -i 's#MockerFixture#MockFixture#' tests/test_eventloop.py
-}
-
-build() {
-  cd anyio-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd anyio-$pkgver
-  # Install to a temporary root as the test suite requires the entry point for
-  # its pytest plugin
-  pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
-  python setup.py install --root="$PWD/tmp_install" --skip-build
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest
-}
-
-package() {
-  cd anyio-$pkgver
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}

Copied: python-anyio/repos/community-any/PKGBUILD (from rev 967156, python-anyio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-06-24 05:04:41 UTC (rev 967157)
@@ -0,0 +1,50 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-anyio
+pkgver=3.2.1
+pkgrel=1
+pkgdesc='High level compatibility layer for multiple asynchronous event loop implementations'
+arch=(any)
+url='https://github.com/agronholm/anyio'
+license=(MIT)
+depends=(python python-idna python-sniffio)
+makedepends=(python-setuptools python-setuptools-scm)
+checkdepends=(python-pytest python-trustme python-hypothesis python-uvloop
+              python-curio python-trio python-pytest-mock)
+optdepends=(
+  'python-curio: curio backend'
+  'python-trio: trio backend'
+)
+source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
+sha256sums=('176ff54241e8116fc5064b66b099eda7afbfc8451538c4ab43d76e126c49772d')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd anyio-$pkgver
+  # pytest-mock 3.3 comes with an API change [1], and anyio uses the new API,
+  # while python-pytest-mock in Arch is out-dated. Patch the sources to use
+  # the old API.
+  # [1] https://github.com/pytest-dev/pytest-mock/issues/202
+  sed -i 's#MockerFixture#MockFixture#' tests/test_eventloop.py
+}
+
+build() {
+  cd anyio-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd anyio-$pkgver
+  # Install to a temporary root as the test suite requires the entry point for
+  # its pytest plugin
+  pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
+  python setup.py install --root="$PWD/tmp_install" --skip-build
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest
+}
+
+package() {
+  cd anyio-$pkgver
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}




More information about the arch-commits mailing list