re-add httpx-0.21.3 (from main)

This commit is contained in:
Andreas Billmeier 2022-03-16 18:09:13 +01:00 committed by Andreas Billmeier
parent 51a3ce4876
commit bbe869524d
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 80 additions and 2 deletions

View File

@ -492,13 +492,13 @@ From time to time a fresh compile test on empty boxes (one with Python 3.9 and o
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1848 Ebuilds in total, 1840 of them have in total 1850 (34 different) licenses assigned.
There are 1849 Ebuilds in total, 1841 of them have in total 1851 (34 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|1098|
|Apache-2.0|362|
|BSD|108|
|BSD|109|
|GPL-3|108|
|LGPL-3|28|
|GPL-2|23|

View File

@ -1,3 +1,5 @@
DIST httpx-0.21.0.tar.gz 2154790 BLAKE2B 199c600e4c1518693b4b6d9bca41cb71388a5efb8f9a153974180eb4b59352e88f0c52d7c1abbaf81dc8234330b7cdd2b56e8bd23c5e26bfce50150d57d4742b SHA512 d518bfe01c579d6604f53f7945430b5e8e0c372c42a3ad11b9e1996ab3097afc93442b0f3ee380da3a5c5d569061bd86c237ffa0e786b64aed47b4b3763c1bc2
DIST httpx-0.21.3.tar.gz 2157078 BLAKE2B 08a9328a7350534abe646f0bf60bd15600a1cb3eb8d06578c87ed9a7d4e55efdddd2be597650cddec9f6456e89a1b159f3e23aa657f379f78157c12670cdadb0 SHA512 0a551de52954db5ed2c33d1b5c172607516031a7c86c0f235bd04f12f4cf82f63980a9f53115dac801748b0c282890b3ed4a53b2c912adbd245c10ad61dbf67e
EBUILD httpx-0.21.0.ebuild 1636 BLAKE2B 8f882342d7b6bdd2a1d7b96410833883a5546a765db191567fdb0285fc64b03a26a056894d61c55fbbf4f7b7e79c29d9bdf63ea9c9e72bc692719483566f70a9 SHA512 1a5a658368fec0a578be81a88996dcb0446e74ef2b5390eb9c1401d0cbe035af96f6ca104c608f39278bd3da36e04582caec25f4cc3524a54153cbfebb54af34
EBUILD httpx-0.21.3.ebuild 2013 BLAKE2B 14043bdc42c5b3a1dc352836273f935b6c0ffe034e5aa58965d8ce7d422712d8a6fbeb3ec14a1e4ad60b62a1ef80755f84481bbe0eecaeef32ed68f9e780a5bd SHA512 e87c99ff77474483c607933152cfc053efd5768cec2a85b0a4f187c14f608d4c11c331a89e7f7b778d6a5695c2833c5cd2c772752068c106971ca9bbd8736e80
MISC metadata.xml 449 BLAKE2B ea18f358383ec5aa3ff853cd5491037fee7ae493b5c3770ce56d7cdb65d86a6b584e5d3ddf087938f7df69888a0e0d6a2ca0474a0425284cf5a9d0fd31d16ef0 SHA512 72c7164823962c07e3719f8d4c7f588f4d754fee3a7913b7757c7d0080b650a822f9c6c9c44d453c5e209f3115a6565dd104833f270591e2c26d325243cc1301

View File

@ -0,0 +1,76 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# 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 # docs
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 arm arm64 hppa ppc ppc64 ~riscv sparc x86"
IUSE="cli"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/charset_normalizer[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
=dev-python/httpcore-0.14*[${PYTHON_USEDEP}]
>=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
<dev-python/rfc3986-2[${PYTHON_USEDEP}]
cli? (
=dev-python/click-8*[${PYTHON_USEDEP}]
=dev-python/pygments-2*[${PYTHON_USEDEP}]
=dev-python/rich-10*[${PYTHON_USEDEP}]
)
"
BDEPEND="
test? (
dev-python/brotlicffi[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/h2[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-python/uvicorn[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
if ! use cli; then
sed -i -e '/console_scripts/d' setup.py || die
fi
distutils-r1_src_prepare
}
python_test() {
local EPYTEST_DESELECT=(
# Internet
tests/client/test_proxies.py::test_async_proxy_close
tests/client/test_proxies.py::test_sync_proxy_close
# Result change in charset-normalizer-2.0.7+
'tests/test_decoders.py::test_text_decoder[data3-iso-8859-1]'
'tests/models/test_responses.py::test_response_no_charset_with_iso_8859_1_content'
)
local EPYTEST_IGNORE=()
use cli || EPYTEST_IGNORE+=(
tests/test_main.py
)
epytest
}