update httpx-0.21.0, httpcore-0.14.3

This commit is contained in:
Andreas Billmeier 2021-12-04 09:54:54 +01:00 committed by Andreas Billmeier
parent bce33d1dcf
commit 49ef164a2f
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
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
}

View File

@ -1,7 +1,3 @@
DIST httpx-0.16.1.tar.gz 965347 BLAKE2B a6c5bcdda595ffcfb824194564ebd93760a9180e60665a9540fc6a2822b1be4273b940fee61cb4b49c2d97a5f4d71b1caf32deddec18d2fb636465b3868aece4 SHA512 d76b2c94c655c187ab150f20b16906034574d017a67c4a06c456d55071434cc0ba7752bdceda86aa6b1a1fe9109fa11594e4ea679cd7d2a77898fb40fa5153d3
DIST httpx-0.17.1.tar.gz 1651788 BLAKE2B 445e61dba5a2648191f57352b664a33785af01bb9ca29c7f553d10111894d0b4011a6987bdea880dd3fc87a60ddee7813a2d51e12178277b60ac27ac6fa930ef SHA512 260040e266144f56b8d1cd085e0d97f2b570c685560fd2bc6baca633e8c9e88a666d0ba072048d63f826dd380df7116ce676dcfb48406e39a7480c44f73368c6
DIST httpx-0.18.0.tar.gz 1663878 BLAKE2B 968ac2a3bd1d150d1adb7e7de5c9dd3aba2ec549feecefdec040d7be1ed54c96b439eff65a4a0d36ebbe77f71af610fc7a0e774fd8dd494a7e80df4e8d0d96c0 SHA512 9648729dbac37500fc828a7cae98a705fa811ae2df0d4abb4bd13a97e03f1ef73b062112c24e7c3edf60140ed5342498a85b46e8cb6b999521ee5d4869656e84
EBUILD httpx-0.16.1.ebuild 859 BLAKE2B 5d28ad901ff7bcb9099a7fd3207fe6027ae9ed07c1d0f515bd8079e0c77f81ccbb0f938d076604a009b3ad98e5272de9ab65098e7c5ab42ae04ef1e6dde26e98 SHA512 bd3e742202c5e9a49b025f1cb2375dae429b233fd7e22bee1d2e0b97e70b82aecbb5b3baf4de634146bb06bdc63094e7142d5a89701c9900ac3b28e71ec69aad
EBUILD httpx-0.17.1.ebuild 1300 BLAKE2B 07e408a72bcf0e28f1f2116567a67985afac787551e0781d3a38a2a8f818a07daa99124f84d453d6eb98457e6183731ba30bfd77244945ff859ed11ad5250165 SHA512 31b2f383a86f71ee67ba6920c68cc4bbdb4476a83e15511ec214cec3f3f38b14b6161ae7d97d3d6820398510ecee972e603f5e6b482e7bed4d0071aaca63cb68
EBUILD httpx-0.18.0.ebuild 1280 BLAKE2B ae78c0015180a410be632905e8773b118ef999a06cd3fb4e88d1216ce40f28df853183b5c997048bf28ca7c8618e386110b34543e35390fe5b0f7a6d6420dc6d SHA512 dd794d52f2a77aaef254a1fde5afd0b67c8c66eb2c8ab6bb13521224358aa05fc84324208dce60e8f07bc77e470f482e2379f9b32486426f88a00537b4417f19
DIST httpx-0.21.0.tar.gz 2154790 BLAKE2B 199c600e4c1518693b4b6d9bca41cb71388a5efb8f9a153974180eb4b59352e88f0c52d7c1abbaf81dc8234330b7cdd2b56e8bd23c5e26bfce50150d57d4742b SHA512 d518bfe01c579d6604f53f7945430b5e8e0c372c42a3ad11b9e1996ab3097afc93442b0f3ee380da3a5c5d569061bd86c237ffa0e786b64aed47b4b3763c1bc2
EBUILD httpx-0.21.0.ebuild 1634 BLAKE2B df9c657ac27f2aa057579174d79bfad8fc47b1c4138c8fca8ebc05f7fcbcf8d422ac3bdc48e866f31abebdaacea64e9c55a3b7f40af862b5610b98ec5e2b720b SHA512 cf20bbdfc59d0fc297ab1d93e73b6de6bdad85834642b15460a981925e90f00da41b23dfe991d797c51b604243e391b1738f2041f6d37af0704deaee0a5a954b
MISC metadata.xml 449 BLAKE2B ea18f358383ec5aa3ff853cd5491037fee7ae493b5c3770ce56d7cdb65d86a6b584e5d3ddf087938f7df69888a0e0d6a2ca0474a0425284cf5a9d0fd31d16ef0 SHA512 72c7164823962c07e3719f8d4c7f588f4d754fee3a7913b7757c7d0080b650a822f9c6c9c44d453c5e209f3115a6565dd104833f270591e2c26d325243cc1301

View File

@ -1,34 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6..8} )
inherit distutils-r1
DESCRIPTION="The next generation HTTP client."
HOMEPAGE="https://github.com/encode/httpx https://pypi.org/project/httpx/"
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/certifi[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
>=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
>=dev-python/httpcore-0.12.0[${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

@ -1,46 +0,0 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{7..9} )
inherit distutils-r1
DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
HOMEPAGE="https://github.com/encode/httpx https://pypi.org/project/httpx/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
<dev-python/httpcore-0.13[${PYTHON_USEDEP}]
>=dev-python/httpcore-0.12.1[${PYTHON_USEDEP}]
>=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
<dev-python/rfc3986-2[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/brotlipy[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/hyper-h2[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
# Require Internet access
sed -i 's/test_async_proxy_close\|test_sync_proxy_close/_&/' \
tests/client/test_proxies.py || die
# trio is not currently in the tree
sed -i '/^import trio/d' tests/concurrency.py || die
distutils-r1_python_prepare_all
}

View File

@ -1,11 +1,15 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{7..9} )
# 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
inherit distutils-r1 # docs
DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
HOMEPAGE="https://www.python-httpx.org/"
@ -13,22 +17,24 @@ SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
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.13*[${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/brotlipy[${PYTHON_USEDEP}]
dev-python/brotlicffi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/hyper-h2[${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}]
)
"
@ -36,8 +42,9 @@ BDEPEND="
distutils_enable_tests pytest
python_prepare_all() {
# trio is not currently in the tree
# 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
}