Date: Thursday, October 6, 2022 @ 14:24:36
Author: diabonas
Revision: 1322240
archrelease: copy trunk to community-x86_64
Added:
python-aiohttp/repos/community-x86_64/PKGBUILD
(from rev 1322239, python-aiohttp/trunk/PKGBUILD)
Deleted:
python-aiohttp/repos/community-x86_64/PKGBUILD
python-aiohttp/repos/community-x86_64/non-derpy-tests.patch
-----------------------+
PKGBUILD | 142 ++++++++++++++++++++++--------------------------
non-derpy-tests.patch | 71 ------------------------
2 files changed, 68 insertions(+), 145 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-06 14:24:22 UTC (rev 1322239)
+++ PKGBUILD 2022-10-06 14:24:36 UTC (rev 1322240)
@@ -1,74 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Jonas Witschel <[email protected]>
-# Contributor: Philipp A. <[email protected]>
-
-_pkgname=aiohttp
-pkgname=python-aiohttp
-_gitcommit=cc6dc0c49f5d002485f9a3cdf9bc3127a3ac1388
-pkgver=3.8.1
-pkgrel=4
-pkgdesc='HTTP client/server for asyncio'
-url='https://aiohttp.readthedocs.io'
-arch=('x86_64')
-license=('Apache')
-depends=('python' 'python-chardet' 'python-multidict' 'python-async-timeout'
- 'python-yarl' 'python-attrs' 'python-charset-normalizer'
- 'python-aiosignal' 'python-frozenlist')
-makedepends=('cython' 'python-setuptools' 'git' 'npm')
-checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-mock'
- 'python-pytest-timeout' 'python-async_generator' 'python-brotli'
- 'python-pytest-xdist' 'python-pytest-forked' 'python-pytest-cov'
- 'python-trustme' 'python-freezegun' 'gunicorn' 'python-re-assert'
- 'python-proxy.py')
-optdepends=('gunicorn: to deploy using Gunicorn'
- 'python-aiodns: for fast DNS resolving'
- 'python-cchardet: for faster encoding detection'
- 'python-brotli: for Brotli transfer-encodings support')
-source=(${pkgname}::"git+https://github.com/aio-libs/aiohttp#commit=${_gitcommit}"
- non-derpy-tests.patch
- git+https://github.com/nodejs/llhttp.git)
-sha512sums=('SKIP'
-
'bb0a6b39f8200ef79d68cc5329c13814f60702a8fb929b1c0d64b5cff5602b6d0848fa2644b911bb637cfce0e235abf332f3769545dade4c52bfabd636369d55'
- 'SKIP')
-
-pkgver() {
- cd ${pkgname}
- git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- cd ${pkgname}
- git submodule init
- git config submodule."vendor/llhttp".url "${srcdir}/llhttp"
- git submodule update --recursive
- sed 's|.install-cython ||' -i Makefile
-
- # If these tests are passing, who are we to judge
- patch -Np1 -i ../non-derpy-tests.patch
-
- # This test fails with the error "coroutine 'BaseTestServer.close' was never
- # awaited", which does not appear to be a packaging issue
- sed -i '/test_aiohttp_request_coroutine/i @pytest.mark.xfail'
tests/test_client_functional.py
-}
-
-build() {
- cd ${pkgname}
- make generate-llhttp cythonize
- python setup.py build
-}
-
-check() {
- cd ${pkgname}
- local _python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
-
- # Without --pythonwarnings=default, the test suite does not even start due to
- # an unrelated DeprecationWarning from python-packaging
- PYTHONDONTWRITEBYTECODE=1
PYTHONPATH="$PWD/build/lib.linux-$CARCH-${_python_version}" pytest
--pythonwarnings=default
-}
-
-package() {
- cd ${pkgname}
- python setup.py install --root="${pkgdir}" -O1 --skip-build
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-aiohttp/repos/community-x86_64/PKGBUILD (from rev 1322239,
python-aiohttp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-06 14:24:36 UTC (rev 1322240)
@@ -0,0 +1,68 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Jonas Witschel <[email protected]>
+# Contributor: Philipp A. <[email protected]>
+
+_pkgname=aiohttp
+pkgname=python-aiohttp
+_gitcommit=30b7a4e99677b4014dda2372504343bb05fc983e
+pkgver=3.8.3
+pkgrel=1
+pkgdesc='HTTP client/server for asyncio'
+url='https://aiohttp.readthedocs.io'
+arch=('x86_64')
+license=('Apache')
+depends=('python' 'python-chardet' 'python-multidict' 'python-async-timeout'
+ 'python-yarl' 'python-attrs' 'python-charset-normalizer'
+ 'python-aiosignal' 'python-frozenlist')
+makedepends=('git' 'cython' 'npm' 'python-build' 'python-installer'
+ 'python-setuptools' 'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-mock'
+ 'python-pytest-timeout' 'python-async_generator' 'python-brotli'
+ 'python-pytest-xdist' 'python-pytest-forked' 'python-pytest-cov'
+ 'python-trustme' 'python-freezegun' 'gunicorn' 'python-re-assert'
+ 'python-proxy.py')
+optdepends=('gunicorn: to deploy using Gunicorn'
+ 'python-aiodns: for fast DNS resolving'
+ 'python-cchardet: for faster encoding detection'
+ 'python-brotli: for Brotli transfer-encodings support')
+source=(${pkgname}::"git+https://github.com/aio-libs/aiohttp#commit=${_gitcommit}"
+ git+https://github.com/nodejs/llhttp.git)
+sha512sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${pkgname}
+ git submodule init
+ git config submodule."vendor/llhttp".url "${srcdir}/llhttp"
+ git submodule update --recursive
+ sed 's|.install-cython ||' -i Makefile
+
+ # This test calls the Python interpreter, we need to make sure that the path
+ # for the C extensions is correct there as well
+ sed -i "s/import {import_path!s}/import sys; sys.path.insert(0,
'{os.environ['PYTHONPATH']}'); &/" \
+ tests/test_circular_imports.py
+}
+
+build() {
+ cd ${pkgname}
+ make generate-llhttp cythonize
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${pkgname}
+ local _python_version=$(python -c 'import sys; print("".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-${_python_version}" pytest
+}
+
+package() {
+ cd ${pkgname}
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}
+
+# vim: ts=2 sw=2 et:
Deleted: non-derpy-tests.patch
===================================================================
--- non-derpy-tests.patch 2022-10-06 14:24:22 UTC (rev 1322239)
+++ non-derpy-tests.patch 2022-10-06 14:24:36 UTC (rev 1322240)
@@ -1,71 +0,0 @@
-diff --git a/tests/test_client_request.py b/tests/test_client_request.py
-index 037b7f47b..be35afd1c 100644
---- a/tests/test_client_request.py
-+++ b/tests/test_client_request.py
-@@ -276,12 +276,6 @@ def test_host_header_ipv6_with_port(make_request) -> None:
- assert req.headers["HOST"] == "[::2]:99"
-
-
[email protected](
-- PY_310,
-- reason="No idea why ClientRequest() is constructed out of loop but "
-- "it calls `asyncio.get_event_loop()`",
-- raises=DeprecationWarning,
--)
- def test_default_loop(loop) -> None:
- asyncio.set_event_loop(loop)
- req = ClientRequest("get", URL("http://python.org/"))
-diff --git a/tests/test_proxy_functional.py b/tests/test_proxy_functional.py
-index 32dc4f6dc..fe5023257 100644
---- a/tests/test_proxy_functional.py
-+++ b/tests/test_proxy_functional.py
-@@ -125,7 +125,6 @@ def _pretend_asyncio_supports_tls_in_tls(
- )
-
-
--@secure_proxy_xfail_under_py310_linux(raises=ClientProxyConnectionError)
- @pytest.mark.parametrize(
- "web_server_endpoint_type",
- (
-@@ -168,7 +167,6 @@ async def test_secure_https_proxy_absolute_path(
- await asyncio.sleep(0.1)
-
-
--@secure_proxy_xfail_under_py310_linux(raises=AssertionError)
- @pytest.mark.xfail(
- not PY_37,
- raises=RuntimeError,
-diff --git a/tests/test_streams.py b/tests/test_streams.py
-index 764b377ff..648e24e7e 100644
---- a/tests/test_streams.py
-+++ b/tests/test_streams.py
-@@ -83,12 +83,6 @@ class TestStreamReader:
- with pytest.raises(RuntimeError):
- await stream._wait("test")
-
-- @pytest.mark.xfail(
-- PY_310,
-- reason="No idea why ClientRequest() is constructed out of loop but "
-- "it calls `asyncio.get_event_loop()`",
-- raises=DeprecationWarning,
-- )
- def test_ctor_global_loop(self) -> None:
- loop = asyncio.new_event_loop()
- asyncio.set_event_loop(loop)
-diff --git a/tests/test_web_app.py b/tests/test_web_app.py
-index 8a1c2659a..c507a6311 100644
---- a/tests/test_web_app.py
-+++ b/tests/test_web_app.py
-@@ -40,12 +40,6 @@ async def test_set_loop() -> None:
- assert app.loop is loop
-
-
[email protected](
-- PY_310,
-- reason="No idea why _set_loop() is constructed out of loop "
-- "but it calls `asyncio.get_event_loop()`",
-- raises=DeprecationWarning,
--)
- def test_set_loop_default_loop() -> None:
- loop = asyncio.new_event_loop()
- asyncio.set_event_loop(loop)