add httpx-0.18.0 from main, still needed

This commit is contained in:
Andreas Billmeier 2021-06-27 20:10:31 +02:00 committed by Andreas Billmeier
parent e392391a73
commit e379da38cd
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 54 additions and 38 deletions

View File

@ -1,7 +1,7 @@
DIST httpx-0.13.3.tar.gz 59369 BLAKE2B 8a5eb7bb76a73fe984a26312ea93fbe472f5e307e77b53d7f4ab1ff1127f5a8eb9cd9768fda2847fea192bda911f1f59cb96bc0640c9455172cbe95fab652d2d SHA512 4c71614bc4910363ac8c3617f5ffb44cd0ab60f9a0736588f13f91e7bef2cc9c84b8e4b1b01c46f1e2af52945ccd627448e2f35bab3d16291d02c27feb7f611c
DIST httpx-0.16.1.tar.gz 965347 BLAKE2B a6c5bcdda595ffcfb824194564ebd93760a9180e60665a9540fc6a2822b1be4273b940fee61cb4b49c2d97a5f4d71b1caf32deddec18d2fb636465b3868aece4 SHA512 d76b2c94c655c187ab150f20b16906034574d017a67c4a06c456d55071434cc0ba7752bdceda86aa6b1a1fe9109fa11594e4ea679cd7d2a77898fb40fa5153d3
DIST httpx-0.17.1.tar.gz 1651788 BLAKE2B 445e61dba5a2648191f57352b664a33785af01bb9ca29c7f553d10111894d0b4011a6987bdea880dd3fc87a60ddee7813a2d51e12178277b60ac27ac6fa930ef SHA512 260040e266144f56b8d1cd085e0d97f2b570c685560fd2bc6baca633e8c9e88a666d0ba072048d63f826dd380df7116ce676dcfb48406e39a7480c44f73368c6
EBUILD httpx-0.13.3.ebuild 935 BLAKE2B 5a80e9804779e5d0c9ee518f520a1e1c5c380062c08ffbe7a412a53da89fea99f072dfdec251eb680aaddc72422f85c6ea04fcfa408bf1d0ae0236a7a4abbddf SHA512 8cb92960c3a2fca9720db3299e60714cd66768c25f31cdbb0c3a547a21ac2fda32a791e220cc36c973e9b8d517faa88cdcdd9098f48c4976e3c42e0ea5408d9d
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
MISC metadata.xml 449 BLAKE2B ea18f358383ec5aa3ff853cd5491037fee7ae493b5c3770ce56d7cdb65d86a6b584e5d3ddf087938f7df69888a0e0d6a2ca0474a0425284cf5a9d0fd31d16ef0 SHA512 72c7164823962c07e3719f8d4c7f588f4d754fee3a7913b7757c7d0080b650a822f9c6c9c44d453c5e209f3115a6565dd104833f270591e2c26d325243cc1301

View File

@ -1,36 +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="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/chardet[${PYTHON_USEDEP}]
dev-python/idna[${PYTHON_USEDEP}]
dev-python/rfc3986[${PYTHON_USEDEP}]
dev-python/hstspreload[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
dev-python/httpcore[${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

@ -0,0 +1,52 @@
# 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://www.python-httpx.org/"
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
=dev-python/httpcore-0.13*[${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() {
# trio is not currently in the tree
sed -i '/^import trio/d' tests/concurrency.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 }
}