diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-04-25 06:06:24 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-04-25 06:06:24 +0200 |
| commit | 647cac38a182e920589ef76f5be723b470c2d6e8 (patch) | |
| tree | 831214b9c6d86abfdf3a086c4d457b3855d90662 /dev-python | |
| parent | f8a8f01ea3389d362a7acc395ccc22871f40c16e (diff) | |
| download | gentoo-647cac38a182e920589ef76f5be723b470c2d6e8.tar.gz gentoo-647cac38a182e920589ef76f5be723b470c2d6e8.tar.bz2 gentoo-647cac38a182e920589ef76f5be723b470c2d6e8.zip | |
dev-python/httpcore: Bump to 1.0.9
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/httpcore/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/httpcore/httpcore-1.0.9.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/httpcore/Manifest b/dev-python/httpcore/Manifest index f0102bbf8717..423cb19a5fa9 100644 --- a/dev-python/httpcore/Manifest +++ b/dev-python/httpcore/Manifest @@ -1,2 +1,3 @@ DIST httpcore-1.0.7.gh.tar.gz 99854 BLAKE2B f9ade1e72edc8f4f3bba615111bb81a9d58f2eb94b489c05f4a41337e7754f1826879ca555085921dc91498c9c581b24c6470a63f9db20b54bcf242b54f8547e SHA512 d41625fc5f53596e6dabcd99f809ca8006b6fe3701f022ad10ddc0dd14f5c41873cd1a12fb444ef5e6d191114a55467ce4983c6a8fff18a7a403d7814eb5868d DIST httpcore-1.0.8.gh.tar.gz 99995 BLAKE2B 1e10a7f8fee6ed91e29927c5a74d82a95f588423a5816058ff6c6df892b718909e31efe984c2509041787a73d17710187f034d348eb61cb5efb8808e33bdfcad SHA512 a8477410091c766042d4b464297b86cff2fae874f7644f23afa3d243aaaef46b4425d5a704b885dfad77288b1995926397fc1d7e04ee38295a713bb2e0ccab4d +DIST httpcore-1.0.9.gh.tar.gz 100038 BLAKE2B bc2208622c1716fbf5a5a4a0baa04f2f5e5c296fd997a6904d776b92bb785128f4c53cd2f78c17c8b06a6efe689f3c9f837e74440c9588d095842d5497ce0eea SHA512 0a1300d9c887dda66b4ac0739406daacd274c1137163b79dd8997a5928438c5b4b130a347e08016a2554bef73aad14225cd5786ff13e932e8d2fb48a4e7245ae diff --git a/dev-python/httpcore/httpcore-1.0.9.ebuild b/dev-python/httpcore/httpcore-1.0.9.ebuild new file mode 100644 index 000000000000..ade906993c34 --- /dev/null +++ b/dev-python/httpcore/httpcore-1.0.9.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="A minimal low-level HTTP client" +HOMEPAGE=" + https://www.encode.io/httpcore/ + https://github.com/encode/httpcore/ + https://pypi.org/project/httpcore/ +" +SRC_URI=" + https://github.com/encode/httpcore/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + <dev-python/anyio-5[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/h11-0.16[${PYTHON_USEDEP}] + <dev-python/h2-5[${PYTHON_USEDEP}] + =dev-python/sniffio-1*[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/hatch-fancy-pypi-readme[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-httpbin[${PYTHON_USEDEP}] + dev-python/socksio[${PYTHON_USEDEP}] + dev-python/trustme[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/pytest-trio[${PYTHON_USEDEP}] + dev-python/trio[${PYTHON_USEDEP}] + ' 3.{10..13}) + ) +" + +distutils_enable_tests pytest + +python_test() { + local opts=() + local EPYTEST_IGNORE=() + + if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then + opts+=( -k "not trio" ) + EPYTEST_IGNORE+=( + tests/_async/test_connection_pool.py + ) + fi + + if ! has_version "dev-python/pytest-trio[${PYTHON_USEDEP}]"; then + opts+=( -m "not trio" -o addopts= ) + fi + + epytest "${opts[@]}" +} + +pkg_postinst() { + optfeature "SOCKS support" dev-python/socksio +} |
