[arch-commits] Commit in python-anyio/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:01:32 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:01:31
  Author: foutrelis
Revision: 748371

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-anyio/repos/community-staging-any/PKGBUILD (from rev 748370, python-anyio/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:01:31 UTC (rev 748371)
@@ -0,0 +1,41 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-anyio
+pkgver=2.0.2
+pkgrel=3
+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)
+optdepends=(
+  'python-curio: curio backend'
+  'python-trio: trio backend'
+)
+source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
+sha256sums=('2439f9d71d793d72d4e223632b9ef8beafc021989efac7b049f0c73280322d2a')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+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