[arch-commits] Commit in python-aiohttp/repos/community-staging-x86_64 (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Thu Dec 2 17:02:59 UTC 2021
Date: Thursday, December 2, 2021 @ 17:02:59
Author: foutrelis
Revision: 1062099
archrelease: copy trunk to community-staging-x86_64
Added:
python-aiohttp/repos/community-staging-x86_64/PKGBUILD
(from rev 1062098, python-aiohttp/trunk/PKGBUILD)
python-aiohttp/repos/community-staging-x86_64/non-derpy-tests.patch
(from rev 1062098, python-aiohttp/trunk/non-derpy-tests.patch)
Deleted:
python-aiohttp/repos/community-staging-x86_64/PKGBUILD
-----------------------+
PKGBUILD | 143 ++++++++++++++++++++++++------------------------
non-derpy-tests.patch | 71 +++++++++++++++++++++++
2 files changed, 145 insertions(+), 69 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 17:02:55 UTC (rev 1062098)
+++ PKGBUILD 2021-12-02 17:02:59 UTC (rev 1062099)
@@ -1,69 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-# Contributor: Philipp A. <flying-sheep at web.de>
-
-_pkgname=aiohttp
-pkgname=python-aiohttp
-_gitcommit=cc6dc0c49f5d002485f9a3cdf9bc3127a3ac1388
-pkgver=3.8.1
-pkgrel=3
-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}"
- 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 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-staging-x86_64/PKGBUILD (from rev 1062098, python-aiohttp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-02 17:02:59 UTC (rev 1062099)
@@ -0,0 +1,74 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+# Contributor: Philipp A. <flying-sheep at web.de>
+
+_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-staging-x86_64/non-derpy-tests.patch (from rev 1062098, python-aiohttp/trunk/non-derpy-tests.patch)
===================================================================
--- non-derpy-tests.patch (rev 0)
+++ non-derpy-tests.patch 2021-12-02 17:02:59 UTC (rev 1062099)
@@ -0,0 +1,71 @@
+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"
+
+
+- at 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_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(
+ )
+
+
+- at 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)
+
+
+- at 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
+
+
+- at pytest.mark.xfail(
+- 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)
More information about the arch-commits
mailing list