diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-29 18:03:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-29 18:03:51 +0000 |
commit | d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (patch) | |
tree | 1814dd2b5bbf2e7639fdafbeef48d228cfaf5e9b /dev-python/urllib3 | |
parent | abaa75b10f899ada8dd05b23cc03205064394bc6 (diff) |
gentoo resync : 29.01.2021
Diffstat (limited to 'dev-python/urllib3')
-rw-r--r-- | dev-python/urllib3/Manifest | 7 | ||||
-rw-r--r-- | dev-python/urllib3/files/urllib3-1.26.2-byteswarning.patch | 25 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.26.2-r1.ebuild | 2 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.26.2-r2.ebuild | 70 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.26.2-r3.ebuild | 77 | ||||
-rw-r--r-- | dev-python/urllib3/urllib3-1.26.3.ebuild | 72 |
6 files changed, 251 insertions, 2 deletions
diff --git a/dev-python/urllib3/Manifest b/dev-python/urllib3/Manifest index 82bb8ef131b8..5a7888f20992 100644 --- a/dev-python/urllib3/Manifest +++ b/dev-python/urllib3/Manifest @@ -1,7 +1,12 @@ +AUX urllib3-1.26.2-byteswarning.patch 881 BLAKE2B 8d913aaf47edc874ce8b367e02aa01b4f4f59724cdd02f980ebaefb24968bd3a9cd3804f20d78984c5addce68c7a332b3e94415f348cb8c998e0944299150d6d SHA512 9d9306a5fd884c5ec6d05c74a10c1ee458604e1293986eab5c6b4061ce7d8df4796f5833fe1a8b4bdcb9025dfcf1a10ac000aa9da6f01ff13647299cca655131 AUX urllib3-1.26.2-fix-test_proxy_rejection-test-hang.patch 3500 BLAKE2B ed204b228bbe0410fab37bc8d8ae6cb8f4849f3e31c17548e77bb0984712e298a7a5c486664debebcacd19dd1ac46371d583019a6ba279e5ead3a1d09f6b7a49 SHA512 e52cc96e11be6050df1c40f3c024de89423b5ffe4bdbcd98a0dd775354c999cf2ee9c99835b2b7b3c194bf8c15aed6a8b62b81c6c9d142afd1227614c50d88be DIST urllib3-1.25.11.tar.gz 260300 BLAKE2B 06bd2107bad479e36c6474f95567c3ecb119d18b193b358df9e345e4d09392366255b21597b26fbf2374220b921cc2117a1972f88021c3a6ebac3844a319acbe SHA512 58f77edb9ced62cbac7b0baf2651c07f9f413267f103730ee25f08c5d4d0bf52a2ace02f58841bcd55652db677c7a1dc9a756681e7e32d590bc69d8b93e8f173 DIST urllib3-1.26.2.tar.gz 286877 BLAKE2B dc5884e2561fae476ba8695cf9e50abb63d8dfc45ad6219d07ba30ecae48e5f27fbdd9a324c0e71f739555c90a3653f18eda513f2ea45b76abcd8c6c714ec0f7 SHA512 4de7cf844ed0deb83c4129e1b1742eafefe95035dd7ffbeaeaaccabca8bd361de9fa240882ea4dec16a7f0b5c5684416656f0d58bea15e7aefd4132024a25c9e +DIST urllib3-1.26.3.tar.gz 292598 BLAKE2B 31bcf03debd74a65004484f12c9ad4d71b8c065344f1e377c2f4a695fc0778cf4cb503dbe243133a20d5779ba4bea455213c62aa5dc3815a994acb4e0adf46b6 SHA512 d0dde67880212dc134add3e16e0aa391170963ed26b9a7eb65399235251131ce25488268df7b2f933afc71c9a94e55e08404f9326c0bf5142869dac912d3ee01 EBUILD urllib3-1.25.11.ebuild 1881 BLAKE2B f2a921171089005271e27668bd1c48f67443dbe116319da9f43fec2b235045b5ed5ebd5f4349aa0c48e0f45f9b11b7ffde5a1ecfcb8d1c675b2ca95cd578c8cf SHA512 11762392c093a018d44cdfe6b31ae885614e326e61f81461cc22da982d1b98713fbf9597c20dad9ca8b04fb7568c8aa1e1abdabeb542abe9ebe13c8f565a2440 -EBUILD urllib3-1.26.2-r1.ebuild 1991 BLAKE2B 452f9790e7ff4e7404afa93db29e8f2627dbe98b50f5c784c7eda2f382d72fbe7e127c55def476aa3e99b03a206e319d204162c76c5811ee714957edb3dee465 SHA512 9bdb9f4dfc863ca500119bcd818155a47bf95174f3e3c4a83aa046ae1c3d4ebd795af4fa4cd5d30b4608dd1b8fa638298eb546ee3d2ecc480c88beefe8674549 +EBUILD urllib3-1.26.2-r1.ebuild 1990 BLAKE2B fe555bd65e8959c5b257f78056ea4dc059e1a6cf6bf780fc67492a28596389ec5c543509a4b6d6154d02f323dffa3f5cf3d505cfc49df0381f9271299abaa8ec SHA512 29185a9e07fc9a27081563212477e3f6d5f6f0aee6d07a539d373c8d97f5132b35399eaa64e10030c1395aae816bfea9d44076bf4209cc9ca04484aa67e9bb34 +EBUILD urllib3-1.26.2-r2.ebuild 1932 BLAKE2B 666b415e32cee96149831e04168d9a68076992c33607c1c42814f129708a3576178efc7e18eab5c527a9f5c2eb0853b405e4b8c79dc46b6946775d7209ba0a5d SHA512 b7e1b4fea6b27f010b2328a23b985b087cf18948505334069ed76c00ccc456d5fdbaa9206c35355ed95ae71a141aae05e70614a129643f81e21ad08d0968997f +EBUILD urllib3-1.26.2-r3.ebuild 2343 BLAKE2B b87be20d286e46ad5277c735f58cf3317be7beaee6de62ffb83f8d8602e5f484b951e320e7b68aa91ea6aec0fb442beba470a4697e251544689ec2a8f24d257c SHA512 811cccafb1c8d9b6f25fb43cc9208bba05ec5135957bcccdf7553751d05e605ff1b3f956b0c24a14e60b111295b8b666367422e543324154d1324b0c9145b653 EBUILD urllib3-1.26.2.ebuild 1893 BLAKE2B de0cfb0f72a9375e580714f22f3a9b48cab98f26e502c2fe7f60a3b234f3680dbb0bf822e7beb58af39f8d3fb855f6da1f9a5948a81299a75e5bf8f4c25003db SHA512 e104a327e434c6d56fdbabc1d431bd3a34cd267225aae1f4578b79d1cbba64026520de7ee636b8e3d45b5b0280cf59f0b701bb312afee01efa82eb13b7bf668e +EBUILD urllib3-1.26.3.ebuild 2233 BLAKE2B 11ec93582d7e147fd3ed6ac66f73fe73717cfe1048112993f25ca527b23c88c8d259235c26f7c0fb391f386a6b76617296d26c9216e2a73cc5ffbd2dcddd3ac6 SHA512 a36dcedee422c008f1a434f8c68cdd7dd6c9db02c1de6f7d78e3504943b7034aded79f24d0608329964742ab8ed5b564aed8b9084d2ca30519470a36aadeec99 MISC metadata.xml 530 BLAKE2B 148b6a1936566b905f38f00ec231a832e827bbdd4f6c2ceabe521779b08c1dbf60bdfa182234e8e67b6708efadd09d29e93c151f7c3d1d4fcd5ece3e3d9c0839 SHA512 9ab9fa9ecb34855be0f6e7914f70eadca67854fde865765b1257feec6c841bccd8276ad81f8d9bbfb544ca753c3d27681d6cc841cee008efca5ba72f5a236f3e diff --git a/dev-python/urllib3/files/urllib3-1.26.2-byteswarning.patch b/dev-python/urllib3/files/urllib3-1.26.2-byteswarning.patch new file mode 100644 index 000000000000..dfa761c5631e --- /dev/null +++ b/dev-python/urllib3/files/urllib3-1.26.2-byteswarning.patch @@ -0,0 +1,25 @@ +From bab9ca9f7148d6a7f15b83cfa1126bf1c8ceb17d Mon Sep 17 00:00:00 2001 +From: Quentin Pradet <quentin@pradet.me> +Date: Tue, 26 Jan 2021 18:04:17 +0400 +Subject: [PATCH] Don't compare bytes and str in putheader() + +--- + src/urllib3/connection.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/urllib3/connection.py b/src/urllib3/connection.py +index 660d679c..387f3770 100644 +--- a/src/urllib3/connection.py ++++ b/src/urllib3/connection.py +@@ -215,7 +215,7 @@ class HTTPConnection(_HTTPConnection, object): + + def putheader(self, header, *values): + """""" +- if SKIP_HEADER not in values: ++ if not any(isinstance(v, str) and v == SKIP_HEADER for v in values): + _HTTPConnection.putheader(self, header, *values) + elif six.ensure_str(header.lower()) not in SKIPPABLE_HEADERS: + raise ValueError( +-- +2.30.0 + diff --git a/dev-python/urllib3/urllib3-1.26.2-r1.ebuild b/dev-python/urllib3/urllib3-1.26.2-r1.ebuild index 451cd20c5230..e91c490e859f 100644 --- a/dev-python/urllib3/urllib3-1.26.2-r1.ebuild +++ b/dev-python/urllib3/urllib3-1.26.2-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 sparc ~x86 ~x64-cygwin ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha ~amd64 ~arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~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 )" diff --git a/dev-python/urllib3/urllib3-1.26.2-r2.ebuild b/dev-python/urllib3/urllib3-1.26.2-r2.ebuild new file mode 100644 index 000000000000..d967a754ffab --- /dev/null +++ b/dev-python/urllib3/urllib3-1.26.2-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} 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" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-macos" +IUSE="brotli test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}] + <dev-python/PySocks-2.0[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] + >=dev-python/idna-2.0.0[${PYTHON_USEDEP}] + brotli? ( dev-python/brotlipy[${PYTHON_USEDEP}] ) +" +BDEPEND=" + test? ( + $(python_gen_cond_dep " + ${RDEPEND} + dev-python/brotlipy[\${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_{6,7,8,9}) + ) +" + +PATCHES=( + "${FILESDIR}/${P}-fix-test_proxy_rejection-test-hang.patch" + "${FILESDIR}/${P}-byteswarning.patch" +) + +python_prepare_all() { + # https://github.com/urllib3/urllib3/issues/1756 + sed -e 's:10.255.255.1:240.0.0.0:' \ + -i test/__init__.py || die + # tests failing if 'localhost.' cannot be resolved + sed -e 's:test_dotted_fqdn:_&:' \ + -i test/with_dummyserver/test_https.py || die + sed -e 's:test_request_host_header_ignores_fqdn_dot:_&:' \ + -i test/with_dummyserver/test_socketlevel.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x CI=1 + # FIXME: get tornado ported + case ${EPYTHON} in + python3*) + pytest -vv || die "Tests fail with ${EPYTHON}" + ;; + esac +} diff --git a/dev-python/urllib3/urllib3-1.26.2-r3.ebuild b/dev-python/urllib3/urllib3-1.26.2-r3.ebuild new file mode 100644 index 000000000000..344bf53259f4 --- /dev/null +++ b/dev-python/urllib3/urllib3-1.26.2-r3.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} 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" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~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 )" + +RDEPEND=" + >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}] + <dev-python/PySocks-2.0[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] + >=dev-python/idna-2.0.0[${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_{6,7,8,9}) + ) +" + +PATCHES=( + "${FILESDIR}/${P}-fix-test_proxy_rejection-test-hang.patch" + "${FILESDIR}/${P}-byteswarning.patch" +) + +python_prepare_all() { + # https://github.com/urllib3/urllib3/issues/1756 + sed -e 's:10.255.255.1:240.0.0.0:' \ + -i test/__init__.py || die + # upstream requires updates to this periodically. seriously?! + sed -e '/RECENT_DATE/s:date(.*):date(2020, 7, 1):' \ + -i src/urllib3/connection.py || die + # tests failing if 'localhost.' cannot be resolved + sed -e 's:test_dotted_fqdn:_&:' \ + -i test/with_dummyserver/test_https.py || die + sed -e 's:test_request_host_header_ignores_fqdn_dot:_&:' \ + -i test/with_dummyserver/test_socketlevel.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x CI=1 + # FIXME: get tornado ported + [[ ${EPYTHON} == python3* ]] || continue + + local deselect=( + # TODO? + test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_timeout_errors_cause_retries + ) + + pytest -vv ${deselect[@]/#/--deselect } || + die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/urllib3/urllib3-1.26.3.ebuild b/dev-python/urllib3/urllib3-1.26.3.ebuild new file mode 100644 index 000000000000..1dde2f060395 --- /dev/null +++ b/dev-python/urllib3/urllib3-1.26.3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} 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" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~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 )" + +RDEPEND=" + >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}] + <dev-python/PySocks-2.0[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] + >=dev-python/idna-2.0.0[${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_{6,7,8,9}) + ) +" + +python_prepare_all() { + # https://github.com/urllib3/urllib3/issues/1756 + sed -e 's:10.255.255.1:240.0.0.0:' \ + -i test/__init__.py || die + # upstream requires updates to this periodically. seriously?! + sed -e '/RECENT_DATE/s:date(.*):date(2020, 7, 1):' \ + -i src/urllib3/connection.py || die + # tests failing if 'localhost.' cannot be resolved + sed -e 's:test_dotted_fqdn:_&:' \ + -i test/with_dummyserver/test_https.py || die + sed -e 's:test_request_host_header_ignores_fqdn_dot:_&:' \ + -i test/with_dummyserver/test_socketlevel.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + local -x CI=1 + # FIXME: get tornado ported + [[ ${EPYTHON} == python3* ]] || continue + + local deselect=( + # TODO? + test/with_dummyserver/test_socketlevel.py::TestSocketClosing::test_timeout_errors_cause_retries + ) + + pytest -vv ${deselect[@]/#/--deselect } || + die "Tests fail with ${EPYTHON}" +} |