dev-python/httpx: treeclean

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2022-12-09 10:11:53 +01:00
committed by onkelbeh
parent 26df2a74eb
commit 1ecc6b46c8
4 changed files with 0 additions and 158 deletions
-5
View File
@@ -1,5 +0,0 @@
DIST httpx-0.21.0.tar.gz 2154790 BLAKE2B 199c600e4c1518693b4b6d9bca41cb71388a5efb8f9a153974180eb4b59352e88f0c52d7c1abbaf81dc8234330b7cdd2b56e8bd23c5e26bfce50150d57d4742b SHA512 d518bfe01c579d6604f53f7945430b5e8e0c372c42a3ad11b9e1996ab3097afc93442b0f3ee380da3a5c5d569061bd86c237ffa0e786b64aed47b4b3763c1bc2
DIST httpx-0.21.3.tar.gz 2157078 BLAKE2B 08a9328a7350534abe646f0bf60bd15600a1cb3eb8d06578c87ed9a7d4e55efdddd2be597650cddec9f6456e89a1b159f3e23aa657f379f78157c12670cdadb0 SHA512 0a551de52954db5ed2c33d1b5c172607516031a7c86c0f235bd04f12f4cf82f63980a9f53115dac801748b0c282890b3ed4a53b2c912adbd245c10ad61dbf67e
EBUILD httpx-0.21.0.ebuild 1643 BLAKE2B 9334e3f488010f7cf5ced5875477f0fd5a2afe3bb95db6dbdd30a602ed9a5fda94c6279df90aa526b2a8dd433caccda3a90e4417a42153ee4c084f10dcbad41d SHA512 38503d26389cf13f53d576ec5d3942f782c855659bb1425a865f1b2c7dcc2617ecc2f7735722c000726c6a3f6dddb65cbc01cfc448e4ef06b4d3e50107a4068a
EBUILD httpx-0.21.3.ebuild 2013 BLAKE2B 14043bdc42c5b3a1dc352836273f935b6c0ffe034e5aa58965d8ce7d422712d8a6fbeb3ec14a1e4ad60b62a1ef80755f84481bbe0eecaeef32ed68f9e780a5bd SHA512 e87c99ff77474483c607933152cfc053efd5768cec2a85b0a4f187c14f608d4c11c331a89e7f7b778d6a5695c2833c5cd2c772752068c106971ca9bbd8736e80
MISC metadata.xml 526 BLAKE2B 14ac0047b3322da3551dcf611c5cef8af786b4217e055fcaaab56457ffdb15a8a4b3d0d837a5de0116b2c98b2406503cfc001068e09ad395210c5e4ee8a86328 SHA512 263a5bf5b8eade274f94d4ff53c99770d5a6debae41a364e447d1a9cc103adbb02cac0b6d8fe3a48f2e544c7fd26dc39149d844077b35f59d3d754c07eae89cf
-59
View File
@@ -1,59 +0,0 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Docs builder mkdocs not keyworded on all these arches yet
# DOCS_BUILDER="mkdocs"
# DOCS_DEPEND="dev-python/mkdocs-material"
# DOCS_AUTODOC=1
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 # docs
DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
HOMEPAGE="https://www.python-httpx.org/"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ppc64 sparc x86"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/charset_normalizer[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
=dev-python/httpcore-0.14*[${PYTHON_USEDEP}]
>=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
<dev-python/rfc3986-2[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/brotlicffi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/h2[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
# trio does not support py3.10
sed -i '/^import trio/d' tests/concurrency.py || die
sed -i '/pytest.param("trio", marks=pytest.mark.trio)/d' tests/conftest.py || die
distutils-r1_python_prepare_all
}
python_test() {
local deselect=(
# Internet
tests/client/test_proxies.py::test_async_proxy_close
tests/client/test_proxies.py::test_sync_proxy_close
)
epytest "${deselect[@]/#/--deselect }"
}
-76
View File
@@ -1,76 +0,0 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Docs builder mkdocs not keyworded on all these arches yet
# DOCS_BUILDER="mkdocs"
# DOCS_DEPEND="dev-python/mkdocs-material"
# DOCS_AUTODOC=1
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 # docs
DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
HOMEPAGE="https://www.python-httpx.org/"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 hppa ppc ppc64 ~riscv sparc x86"
IUSE="cli"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/charset_normalizer[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
=dev-python/httpcore-0.14*[${PYTHON_USEDEP}]
>=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
<dev-python/rfc3986-2[${PYTHON_USEDEP}]
cli? (
=dev-python/click-8*[${PYTHON_USEDEP}]
=dev-python/pygments-2*[${PYTHON_USEDEP}]
=dev-python/rich-10*[${PYTHON_USEDEP}]
)
"
BDEPEND="
test? (
dev-python/brotlicffi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/h2[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
if ! use cli; then
sed -i -e '/console_scripts/d' setup.py || die
fi
distutils-r1_src_prepare
}
python_test() {
local EPYTEST_DESELECT=(
# Internet
tests/client/test_proxies.py::test_async_proxy_close
tests/client/test_proxies.py::test_sync_proxy_close
# Result change in charset-normalizer-2.0.7+
'tests/test_decoders.py::test_text_decoder[data3-iso-8859-1]'
'tests/models/test_responses.py::test_response_no_charset_with_iso_8859_1_content'
)
local EPYTEST_IGNORE=()
use cli || EPYTEST_IGNORE+=(
tests/test_main.py
)
epytest
}
-18
View File
@@ -1,18 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">httpx</remote-id>
<maintainer status="unknown">
<email>tom@tomchristie.com</email>
<name>Tom Christie</name>
</maintainer>
</upstream>
<use>
<flag name="cli">Install the CLI "httpx" client.</flag>
</use>
</pkgmetadata>