update httpx-0.21.0, httpcore-0.14.3

This commit is contained in:
2021-12-04 09:54:54 +01:00
committed by Andreas Billmeier
parent bce33d1dcf
commit 49ef164a2f
9 changed files with 84 additions and 198 deletions

View File

@@ -1,7 +1,3 @@
DIST httpcore-0.12.0.tar.gz 40748 BLAKE2B b37832e44052ddfcac8fe93c3059d121e6ed80af46f347d179b6a6aed4535c6b6ecd813ea3f97c2a422cc9e85cfdf6ffaab9f66d15e606d2b16939a43cf1dda4 SHA512 8d986e26d1c04d84a87d8fcf367c85ad5b89f15b78393d0970567821fafb04ebca042047b87f7a36dc20c7175c506b7ab0699869802391b3b3d88164972c7d51
DIST httpcore-0.12.3.tar.gz 43346 BLAKE2B 65d1ef928e4570155d5277d8d3c185482def31c4d875d0249a778d314d411aef971b6cf54e16431bfe87b674586943c44a35aad3ec74386aa53cf4c16925380a SHA512 6e2256c7ab35e8aca6e1c8e4bc422cf34eb7395993d7df8b6bf28f2f325477a58df275e3c28c3a933488abba38b27036051b13f8826887690be2fee999f6f0dc
DIST httpcore-0.9.1.tar.gz 31911 BLAKE2B 5c780ff23c9e3d15ec506a1fd6277a98a885a569279a6587caaf1813851ab2beb968dda482a51fd308c47a585ef51f92645ad408f386847c35d4735236ae97c0 SHA512 53bb0ece7869bdbe249659f11f7972b14ba00ee97c5692c1fec44febbc8300e9495aa72e3c63291983c75a4e249702655eb7e26f86b1e718e2f34bc6851d1b3e
EBUILD httpcore-0.12.0.ebuild 763 BLAKE2B fc4dff733b72ad118831fa57aa47737a1949d2f4f21bc5fb8fb0e6ae3d704742aeb5fde65aee362de65e869b0fcfb8a81ff5c684695b0c0a4471ea4aab0c1fa6 SHA512 4358198a744d597c91067a591487f3a922c02795a5b859e059d120e3a7241ff328c6e29b4a65261f72e1f7fb6414c539e9b96c7dcb0e1de574ffc4069c0d4d47
EBUILD httpcore-0.12.3.ebuild 753 BLAKE2B f52672ba432721af6c8b040817e367b9e6a3a30e398aded98a8bd6c0bd8a2d6eed1820b18257f8f61f666b556e9f7db0346060fb298ea01081ef9ed74fd55f41 SHA512 a9a9fe5e94bb9c09714b60be62bf453a9907876f00222f40d8280a6d38692ca3be1346cb845998ece454ea82e57fe323d5756efa3e2fa74b61c7ba304aa4d515
EBUILD httpcore-0.9.1.ebuild 784 BLAKE2B ac3c5056be80257ed7ec7c1cabed722bdf30edb636d2e3fc737485db20c977f9f9844ee4ce8fde51fd97cdec1a960b9782b1dd38030f2d91a1721077895ccebb SHA512 eb51bf3d646255eb1113159622fb657e2771a3b87d3bd1e8bfd69ffedf73ccb573e8d7d91f4d81e6f50741d1c5fe424e9740daf0d4494754501356fc8551944d
DIST httpcore-0.14.3.tar.gz 45893 BLAKE2B db9c36144c43966bbf9202cd77ab6cfc35eab235c6f6998bb35d3b529b01b42797584e999664671f2aed47be6bf0fbf575a3c05003dd423dff86484c1476ef89 SHA512 f2709b662b5b43c144a5c98c6b10dc75429f8b545c8ef976adca60dc542891f1aa4291acfae17b620dec6716f86c863a2384721c70a1faab04dc45805846c430
EBUILD httpcore-0.14.3.ebuild 2315 BLAKE2B 53ffc55a169a20eddb74f9ef51c3debd2302f5129b756f27cfa642baf29497a303933c954e6eac41eeda17da93ab129856ed5a8be416d3ed435844f3fd17fa0c SHA512 02f4c9478e3bd9d65892d16d50b9f04bf04f99ca639bb5e1b17e43ffe8721f3a6412ba0eb7a204294bde5d817cee94fa3023d649751ed31cf9382ffee00dc840
MISC metadata.xml 452 BLAKE2B 2916cd6597fa5c831413b22c88f8ae6fa5f8441ba39ce8b8c247dd8161aed94f4b3c5529ef9e00ecd271530549fb4343bb362fd684a1c4a023b188981abc2712 SHA512 74a3d859054062d6f4a5148ebf4dd1b9e1e7ef29f97b865bc387d8776e1676855ca7c9ad7e46dd07a488a5df6fbd6051d0fbb8bc9724e069c1c38ab89bb72595

View File

@@ -1,33 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6..8} )
inherit distutils-r1
DESCRIPTION="A minimal low-level HTTP client."
HOMEPAGE="https://github.com/encode/httpcore https://pypi.org/project/httpcore/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
DOCS="README.md"
RDEPEND="dev-python/h11[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]"
BDEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}

View File

@@ -1,33 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="A minimal low-level HTTP client."
HOMEPAGE="https://github.com/encode/httpcore https://pypi.org/project/httpcore/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
DOCS="README.md"
RDEPEND="dev-python/h11[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}

View File

@@ -0,0 +1,65 @@
# 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

@@ -1,32 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="A minimal low-level HTTP client."
HOMEPAGE="https://github.com/encode/httpcore https://pypi.org/project/httpcore/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND="dev-python/h11[${PYTHON_USEDEP}]
dev-python/hyper-h2[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]"
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/nose[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
nosetests --verbose || die
py.test -v -v || die
}