re-add httpcore-0.14.5 from main

This commit is contained in:
Andreas Billmeier 2022-02-26 06:37:29 +01:00 committed by Andreas Billmeier
parent 920e6cfcd3
commit 740c6e40fa
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 41 additions and 67 deletions

View File

@ -1,3 +1,3 @@
DIST httpcore-0.14.3.tar.gz 64650 BLAKE2B 140c55af60f54ff13db958cecef50af2b8857837c00c2e5b1ec48d8866bc08146f608864a3dcaed0014505ba0ea10b8d457a763ecf434a0d40a2e11debdd4003 SHA512 05e92109839c2e2f7ec81fea9507fb15a12d1bf6ae92048170953b1cb0139237b81c892feff1bc3840e06887e8916cadcc4124725874344524e45e3640a00379
EBUILD httpcore-0.14.3.ebuild 2317 BLAKE2B 63c83292a08f89b95e01d875549b0049a4dfdd9b4919eeb9234466fa3e4349a86b703e3e61366133168e57927376adb1fe2c2592989359f0d0b710a9b32513ae SHA512 b4d581684fa12ef0e1df9fb9df4f4a158066e55bd31d97f9f15cd832a6023f3621a40937121f5e03eda65e896e0fbf95da326222e8e04cea4ad8a528d4c991e2
DIST httpcore-0.14.5.tar.gz 74227 BLAKE2B 8e54b6b40d35a9228b96682d87651a6d3967441b74f3544a21b378620b417b48978f51d25b1980d87fad4748537036c6f2a4751e8b58e622c7c76389ff1afb67 SHA512 1705cf83df3ead454065e2ed4c300697c5d0a6609846a3eadfca2af2d9c1578f951c2f4bf3ac018c3cc984d2d2ccd39c4b2de781747588a6116eebe1007afff0
EBUILD httpcore-0.14.5.ebuild 1018 BLAKE2B b9dd15d010f6fd2983e73762484f65381be4ab3603ceb20ee75e75087b8d51070039c7044c841be27d9e0ae457e69dafab98bf1d8c9c3fd8406d4dcb57128553 SHA512 0a9c55dca4f0a8e6ddefb405f4f72815a3c1ed45d66b45f99564cd2cbed7c18615efccbe5e8395843a2bad4b3ce3289ac94c4c0e7c211fbc5030088319dd1f6c
MISC metadata.xml 452 BLAKE2B 2916cd6597fa5c831413b22c88f8ae6fa5f8441ba39ce8b8c247dd8161aed94f4b3c5529ef9e00ecd271530549fb4343bb362fd684a1c4a023b188981abc2712 SHA512 74a3d859054062d6f4a5148ebf4dd1b9e1e7ef29f97b865bc387d8776e1676855ca7c9ad7e46dd07a488a5df6fbd6051d0fbb8bc9724e069c1c38ab89bb72595

View File

@ -1,65 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="A minimal low-level HTTP client"
HOMEPAGE="https://www.encode.io/httpcore/"
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/anyio-3*[${PYTHON_USEDEP}]
<dev-python/h11-0.13[${PYTHON_USEDEP}]
<dev-python/h2-5[${PYTHON_USEDEP}]
=dev-python/sniffio-1*[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
# trio is not in the tree, anyio is causing tons of test failures
# (probably insisting on using trio)
# sed -i 's/^@pytest.mark.\(anyio\|trio\)/@pytest.mark.skip/' \
# tests/async_tests/test_*.py || die
# sed -i '/^import trio/d' tests/utils.py || die
# pproxy is not in the tree, the associated fixture
# must be disabled to prevent errors during test setup
#sed -i 's/def proxy_server().*/&\n pytest.skip()/' \
# tests/conftest.py || die
distutils-r1_python_prepare_all
}
python_test() {
local skipped_tests=(
# Require Internet access or hypercorn (not in the tree)
tests/test_threadsafety.py::test_threadsafe_basic
tests/sync_tests/test_interfaces.py::test_http_request
tests/sync_tests/test_interfaces.py::test_https_request
tests/sync_tests/test_interfaces.py::test_http2_request
tests/sync_tests/test_interfaces.py::test_closing_http_request
tests/sync_tests/test_interfaces.py::test_connection_pool_get_connection_info
tests/sync_tests/test_interfaces.py::test_max_keepalive_connections_handled_correctly
tests/sync_tests/test_interfaces.py::test_explicit_backend_name
tests/sync_tests/test_interfaces.py::test_connection_timeout_tcp
tests/sync_tests/test_interfaces.py::test_broken_socket_detection_many_open_files
tests/sync_tests/test_retries.py::test_no_retries
tests/sync_tests/test_retries.py::test_retries_exceeded
tests/sync_tests/test_retries.py::test_retries_enabled
# Require hypercorn
tests/sync_tests/test_interfaces.py::test_connection_timeout_uds
)
epytest ${skipped_tests[@]/#/--deselect }
}

View File

@ -0,0 +1,39 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 optfeature
DESCRIPTION="A minimal low-level HTTP client"
HOMEPAGE="https://www.encode.io/httpcore/"
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"
RDEPEND="
=dev-python/anyio-3*[${PYTHON_USEDEP}]
dev-python/certifi[${PYTHON_USEDEP}]
<dev-python/h11-0.13[${PYTHON_USEDEP}]
<dev-python/h2-5[${PYTHON_USEDEP}]
=dev-python/sniffio-1*[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-httpbin[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/socksio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
pkg_postinst() {
optfeature "SOCKs support" dev-python/socksio
}