diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/urllib3 | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/urllib3')
-rw-r--r-- | dev-python/urllib3/Manifest | 3 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.26.9-r1.ebuild (renamed from dev-python/urllib3/urllib3-1.26.9.ebuild) | 20 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.26.9-r3.ebuild | 78 |
3 files changed, 91 insertions, 10 deletions
diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest index 1a607ee51fc5..90eabc6cc957 100644 --- a/dev-python/urllib3/Manifest +++ b/dev-python/urllib3/Manifest @@ -1,3 +1,4 @@ DIST urllib3-1.26.9.tar.gz 295258 BLAKE2B 1c6b51e4243c18c25bcb53158e645ea71fe33e0d09ca029256bcbe05bf178ba600dd8911c71730bdefc3cf9f65cdfd5740f579d17d293f9ac7c5d3cbff478b6f SHA512 ac384291b02516dee781c98182625356ac7bc03972612577de5286e159cf161b541cc610b103e0eec1c9f40503049b41e972a9e0998fcd834efe2f40af0e7394 -EBUILD urllib3-1.26.9.ebuild 1924 BLAKE2B 056029f71386bf470238cbe71d1944990133f480167458c9c07a416742c1177d04379adccf15eda5e8c337f1d8af45b97beeebf825e497af40668747dbd71502 SHA512 f499f5762b9afec0657ab2ab6f49c8864ab7e8f1fa057a13683c71f4f18e309fb4b90436c0f5fa5995edeff2bab303908c039a9f7ef90557608a96a276dad5bd +EBUILD urllib3-1.26.9-r1.ebuild 1856 BLAKE2B e683674af3792d09dd991f44519fcb6d32ae3f6778e93bacf3f7f7aa6d21392d9c269b49123ae3204b7797cdf91bb895c5ca100e12d67bea17abe82d325be952 SHA512 2695a712964571c14a98f156b663c9a57fadb293ca2aad6d7ff969f1d03486d3e5783c139870a242d5992068d2e33437664676fd742b18896b67634364d6c8d9 +EBUILD urllib3-1.26.9-r3.ebuild 2315 BLAKE2B ec115b8e76fca07a4b2c8405a97187ff99cb69647275300a0ceb884709ea311010b7f605db8076969e2c8db5682b3c5a8cda0d04e197ad97b698c1579e9e7c9e SHA512 ddef2fb641fa2cd8b4e1679716b8b914eeba0f7f0f38e10e7106bfe6487eb7d9bf93fe50142fc627bf8cb9f3b79297684276f92bfdcf71ffc1d56f40f4ee00e5 MISC metadata.xml 531 BLAKE2B 3ddfea4b8817c827437a79abae8cf4e9cda95addb1c6505ef13018587720bba0cf0788041c0b4cc8b25f319e7cb1c94117ae25b3cbb567f24373e8e89bedaa7b SHA512 7e7191f0338c4c47f01bdceb3d2c6ed94de2241e77fb3be6cbf3ecf8a0682730392a9ee5adf24304d9a322acc06bd84f4f90f1dddcb258cb2e9ba0de9952b693 diff --git a/dev-python/urllib3/urllib3-1.26.9.ebuild b/dev-python/urllib3/urllib3-1.26.9-r1.ebuild index 11ae4683d2ad..fd8db275e223 100644 --- a/dev-python/urllib3/urllib3-1.26.9.ebuild +++ b/dev-python/urllib3/urllib3-1.26.9-r1.ebuild @@ -4,13 +4,17 @@ # please keep this ebuild at EAPI 7 -- sys-apps/portage dep EAPI=7 -PYTHON_COMPAT=( python3_{8..10} pypy3 ) +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) PYTHON_REQ_USE="ssl(+)" inherit distutils-r1 DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more" -HOMEPAGE="https://github.com/urllib3/urllib3" +HOMEPAGE=" + https://github.com/urllib3/urllib3/ + https://pypi.org/project/urllib3/ +" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" @@ -37,7 +41,7 @@ BDEPEND=" dev-python/pytest-freezegun[\${PYTHON_USEDEP}] >=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}] >=www-servers/tornado-4.2.1[\${PYTHON_USEDEP}] - " python3_{8..10}) + " python3_{8..11}) ) " @@ -45,16 +49,14 @@ python_test() { local -x CI=1 # FIXME: get tornado ported # please keep in sync with BDEPEND! - if ! has "${EPYTHON}" python3.{8..10}; then + if ! has "${EPYTHON}" python3.{8..11}; then einfo "Skipping tests on ${EPYTHON}" return fi - local EPYTEST_DESELECT=( - # TODO? - test/contrib/test_pyopenssl.py::TestHTTPS_TLSv1_3::test_verified - test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_timeout_errors_cause_retries - test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_verified_warning + local EPYTEST_DESELECT=() + has "${EPYTHON}" python3.{8..10} && EPYTEST_DESELECT+=( + test/contrib/test_pyopenssl.py::TestPyOpenSSLHelpers::test_get_subj_alt_name ) epytest diff --git a/dev-python/urllib3/urllib3-1.26.9-r3.ebuild b/dev-python/urllib3/urllib3-1.26.9-r3.ebuild new file mode 100644 index 000000000000..47fa4076e5a4 --- /dev/null +++ b/dev-python/urllib3/urllib3-1.26.9-r3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} pypy3 ) +PYTHON_REQ_USE="ssl(+)" + +inherit distutils-r1 + +DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more" +HOMEPAGE=" + https://github.com/urllib3/urllib3/ + https://pypi.org/project/urllib3/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="brotli test" +RESTRICT="!test? ( test )" + +# dev-python/{pyopenssl,cryptography,idna,certifi} are optional runtime +# dependencies. Do not add them to RDEPEND. They should be unnecessary with +# modern versions of python (>= 3.2). +RDEPEND=" + >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}] + <dev-python/PySocks-2.0[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + brotli? ( dev-python/brotlicffi[${PYTHON_USEDEP}] ) +" +BDEPEND=" + test? ( + $(python_gen_cond_dep " + ${RDEPEND} + dev-python/brotlicffi[\${PYTHON_USEDEP}] + dev-python/mock[\${PYTHON_USEDEP}] + dev-python/pytest[\${PYTHON_USEDEP}] + dev-python/pytest-freezegun[\${PYTHON_USEDEP}] + >=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}] + >=www-servers/tornado-4.2.1[\${PYTHON_USEDEP}] + " python3_{8..11}) + ) +" + +src_prepare() { + distutils-r1_src_prepare + + # unbundle urllib3 + rm src/urllib3/packages/six.py || die + find -name '*.py' -exec sed -i \ + -e 's:\([.]*\|urllib3\.\)\?packages\.six:six:g' \ + -e 's:from \([.]*\|urllib3\.\)\?packages import six:import six:g' \ + {} + || die +} + +python_test() { + local -x CI=1 + # FIXME: get tornado ported + # please keep in sync with BDEPEND! + if ! has "${EPYTHON}" python3.{8..11}; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local EPYTEST_DESELECT=( + # unstable (relies on warning count) + test/with_dummyserver/test_proxy_poolmanager.py::TestHTTPProxyManager::test_proxy_verified_warning + ) + has "${EPYTHON}" python3.{8..10} && EPYTEST_DESELECT+=( + test/contrib/test_pyopenssl.py::TestPyOpenSSLHelpers::test_get_subj_alt_name + ) + + epytest +} |