Date: Thursday, April 13, 2023 @ 05:45:43
Author: yan12125
Revision: 1445483
archrelease: copy trunk to community-staging-any
Added:
python-anyio/repos/community-staging-any/PKGBUILD
(from rev 1445482, python-anyio/trunk/PKGBUILD)
Deleted:
python-anyio/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 107 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 54 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-13 05:45:26 UTC (rev 1445482)
+++ PKGBUILD 2023-04-13 05:45:43 UTC (rev 1445483)
@@ -1,53 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-
-pkgname=python-anyio
-# https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
-pkgver=3.6.2
-pkgrel=2
-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
- python-uvloop python-trio)
-checkdepends=(python-pytest python-trustme python-hypothesis
python-pytest-mock)
-optdepends=(
- 'python-trio: trio backend'
- 'python-outcome: trio backend'
- 'python-uvloop: use uvloop for asyncio backend'
- 'python-pytest: pytest plugin'
-)
-source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
-sha256sums=('befe8a0e100f6a92ad1b15a6e4adc86bb5f1e055f09b125090300ade5b33534d')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-prepare() {
- cd anyio-$pkgver
- # Remove "error" from pytest filterwarnings
- sed -i '/"error"/d' pyproject.toml
- # XXX: Temporarily remove testing trio as a backend. anyio 3.x is known to
be incompatible with trio >= 0.22
- #
https://github.com/agronholm/anyio/commit/787cb0c2e53c2a3307873d202fbd49dc5eac4e96
- sed -i '/"trio"/d' tests/conftest.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-staging-any/PKGBUILD (from rev 1445482,
python-anyio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-13 05:45:43 UTC (rev 1445483)
@@ -0,0 +1,54 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-anyio
+# https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst
+pkgver=3.6.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-build python-installer python-setuptools
python-setuptools-scm python-wheel
+ python-uvloop python-trio)
+checkdepends=(python-pytest python-trustme python-hypothesis
python-pytest-mock)
+optdepends=(
+ 'python-trio: trio backend'
+ 'python-outcome: trio backend'
+ 'python-uvloop: use uvloop for asyncio backend'
+ 'python-pytest: pytest plugin'
+)
+source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
+sha256sums=('befe8a0e100f6a92ad1b15a6e4adc86bb5f1e055f09b125090300ade5b33534d')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+ cd anyio-$pkgver
+ # Remove "error" from pytest filterwarnings
+ sed -i '/"error"/d' pyproject.toml
+ # XXX: Temporarily remove testing trio as a backend. anyio 3.x is known to
be incompatible with trio >= 0.22
+ #
https://github.com/agronholm/anyio/commit/787cb0c2e53c2a3307873d202fbd49dc5eac4e96
+ sed -i '/"trio"/d' tests/conftest.py
+}
+
+build() {
+ cd anyio-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+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 -m installer --destdir="$PWD/tmp_install" dist/*.whl
+ # Several TLS tests failed with Python 3.11.3
https://github.com/agronholm/anyio/issues/550
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest -k
'not TestTLSStream and not TestTLSListener'
+}
+
+package() {
+ cd anyio-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}