Date: Monday, April 10, 2023 @ 11:58:57
Author: felixonmars
Revision: 1444148
archrelease: copy trunk to community-staging-any
Added:
python-httpx/repos/community-staging-any/PKGBUILD
(from rev 1444147, python-httpx/trunk/PKGBUILD)
python-httpx/repos/community-staging-any/uvicorn-test-server-use-h11.diff
(from rev 1444147, python-httpx/trunk/uvicorn-test-server-use-h11.diff)
Deleted:
python-httpx/repos/community-staging-any/PKGBUILD
python-httpx/repos/community-staging-any/uvicorn-test-server-use-h11.diff
----------------------------------+
PKGBUILD | 118 ++++++++++++++++++-------------------
uvicorn-test-server-use-h11.diff | 26 ++++----
2 files changed, 72 insertions(+), 72 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-10 11:58:45 UTC (rev 1444147)
+++ PKGBUILD 2023-04-10 11:58:57 UTC (rev 1444148)
@@ -1,59 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-# Contributor: Eli Schwartz <[email protected]>
-
-_pkgname=httpx
-pkgname=python-httpx
-# https://github.com/encode/httpx/blob/master/CHANGELOG.md
-pkgver=0.23.3
-pkgrel=2
-pkgdesc="A next generation HTTP client for Python"
-arch=('any')
-url="https://github.com/encode/${_pkgname}"
-license=('BSD')
-depends=('python-certifi' 'python-httpcore' 'python-idna' 'python-rfc3986'
'python-sniffio')
-optdepends=(
- 'python-brotlicffi: for brotli response decompression'
- 'python-h2: HTTP/2 support'
- 'python-socksio: SOCKS proxy support'
- 'python-click: command line client support'
- 'python-rich: command line client support'
- 'python-trio: alternative async library'
-)
-makedepends=('python-build' 'python-installer' 'python-hatchling'
'python-hatch-fancy-pypi-readme')
-checkdepends=('python-pytest-asyncio' 'python-pytest-trio'
'python-typing_extensions' 'python-brotlicffi' 'python-h2' 'python-trustme'
'uvicorn' 'python-socksio'
- 'python-rich' 'python-chardet')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
- "uvicorn-test-server-use-h11.diff")
-sha512sums=('d4f051578de63e677492727c466d44858c31d1b85441621667d4aeaec5cd2ebd0257a1db115f1b4d77d563359dfc81c2cd1221c0cc66c891b461fa1f4e8a5aee'
-
'd3e6a9df365aff5e4e7b724469672c6da9c7e95cc5d79339ebd1ea249236802d81b8792efb0826f89747424fa1bef20d4965ddb75b3b67e9cd320b5fcc738f18')
-b2sums=('96903669ca9d22cbb85bd322a407aa2b6799b5f8bfce277a763248ac2d65d60b85c0c71f24af99098eaca585f8136d9db687d6d0ab8cf2347d3c6fe28222def0'
-
'f7fc5aa67d59dfbf544ea2668a5df6449d1cb30f5adf1433d92ebbc0fd10d46fec592f1befe829e126d72240666b9c3ea1f69a9f2cca6f3f4e135a7e454be25d')
-
-prepare() {
- cd ${_pkgname}-${pkgver}
-
- # fix tests
- patch -Np1 -i ../uvicorn-test-server-use-h11.diff
-
- # disable -Werror, which often causes failures due to newer dependencies in
Arch
- sed -i '/\berror\b/d' setup.cfg
-}
-
-build() {
- cd ${_pkgname}-${pkgver}
-
- python -m build --wheel --no-isolation
-}
-
-check() {
- cd ${_pkgname}-${pkgver}
-
- pytest
-}
-
-package() {
- cd ${_pkgname}-${pkgver}
-
- python -m installer --destdir="$pkgdir" dist/*.whl
- install -Dm644 LICENSE.md
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md
-}
Copied: python-httpx/repos/community-staging-any/PKGBUILD (from rev 1444147,
python-httpx/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-10 11:58:57 UTC (rev 1444148)
@@ -0,0 +1,59 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+_pkgname=httpx
+pkgname=python-httpx
+# https://github.com/encode/httpx/blob/master/CHANGELOG.md
+pkgver=0.23.3
+pkgrel=3
+pkgdesc="A next generation HTTP client for Python"
+arch=('any')
+url="https://github.com/encode/${_pkgname}"
+license=('BSD')
+depends=('python-certifi' 'python-httpcore' 'python-idna' 'python-rfc3986'
'python-sniffio')
+optdepends=(
+ 'python-brotlicffi: for brotli response decompression'
+ 'python-h2: HTTP/2 support'
+ 'python-socksio: SOCKS proxy support'
+ 'python-click: command line client support'
+ 'python-rich: command line client support'
+ 'python-trio: alternative async library'
+)
+makedepends=('python-build' 'python-installer' 'python-hatchling'
'python-hatch-fancy-pypi-readme')
+checkdepends=('python-pytest-asyncio' 'python-pytest-trio'
'python-typing_extensions' 'python-brotlicffi' 'python-h2' 'python-trustme'
'uvicorn' 'python-socksio'
+ 'python-rich' 'python-chardet')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz"
+ "uvicorn-test-server-use-h11.diff")
+sha512sums=('d4f051578de63e677492727c466d44858c31d1b85441621667d4aeaec5cd2ebd0257a1db115f1b4d77d563359dfc81c2cd1221c0cc66c891b461fa1f4e8a5aee'
+
'd3e6a9df365aff5e4e7b724469672c6da9c7e95cc5d79339ebd1ea249236802d81b8792efb0826f89747424fa1bef20d4965ddb75b3b67e9cd320b5fcc738f18')
+b2sums=('96903669ca9d22cbb85bd322a407aa2b6799b5f8bfce277a763248ac2d65d60b85c0c71f24af99098eaca585f8136d9db687d6d0ab8cf2347d3c6fe28222def0'
+
'f7fc5aa67d59dfbf544ea2668a5df6449d1cb30f5adf1433d92ebbc0fd10d46fec592f1befe829e126d72240666b9c3ea1f69a9f2cca6f3f4e135a7e454be25d')
+
+prepare() {
+ cd ${_pkgname}-${pkgver}
+
+ # fix tests
+ patch -Np1 -i ../uvicorn-test-server-use-h11.diff
+
+ # disable -Werror, which often causes failures due to newer dependencies in
Arch
+ sed -i '/\berror\b/d' setup.cfg
+}
+
+build() {
+ cd ${_pkgname}-${pkgver}
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+
+ pytest
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE.md
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md
+}
Deleted: uvicorn-test-server-use-h11.diff
===================================================================
--- uvicorn-test-server-use-h11.diff 2023-04-10 11:58:45 UTC (rev 1444147)
+++ uvicorn-test-server-use-h11.diff 2023-04-10 11:58:57 UTC (rev 1444148)
@@ -1,13 +0,0 @@
-diff --git a/tests/conftest.py b/tests/conftest.py
-index 970c353..1ea3aa9 100644
---- a/tests/conftest.py
-+++ b/tests/conftest.py
-@@ -304,7 +304,7 @@ def serve_in_thread(server: Server):
-
- @pytest.fixture(scope="session")
- def server() -> typing.Iterator[TestServer]:
-- config = Config(app=app, lifespan="off", loop="asyncio")
-+ config = Config(app=app, lifespan="off", loop="asyncio", http="h11")
- server = TestServer(config=config)
- yield from serve_in_thread(server)
-
Copied:
python-httpx/repos/community-staging-any/uvicorn-test-server-use-h11.diff (from
rev 1444147, python-httpx/trunk/uvicorn-test-server-use-h11.diff)
===================================================================
--- uvicorn-test-server-use-h11.diff (rev 0)
+++ uvicorn-test-server-use-h11.diff 2023-04-10 11:58:57 UTC (rev 1444148)
@@ -0,0 +1,13 @@
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 970c353..1ea3aa9 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -304,7 +304,7 @@ def serve_in_thread(server: Server):
+
+ @pytest.fixture(scope="session")
+ def server() -> typing.Iterator[TestServer]:
+- config = Config(app=app, lifespan="off", loop="asyncio")
++ config = Config(app=app, lifespan="off", loop="asyncio", http="h11")
+ server = TestServer(config=config)
+ yield from serve_in_thread(server)
+