mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
dev-python/requests: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
DIST requests-2.32.5.tar.gz 134517 BLAKE2B 82bb875be132b815fd8eb51c896f41bdd3f16ef335f7a273d2b27d139f1a587d0cdcfae5975ce366426687b42796af1d65317d24e8e6cd069864bc259da9942f SHA512 2fbc05f5b638cefe59b9edaac86d53666d0416cebdbe8343caa818cae677a733c1f3a9ae62ef5c880b77cf706a2e3da57e0783d8936bda128f071367524189de
|
||||
DIST requests-2.33.0.tar.gz 134232 BLAKE2B 7aac9ecb9b7266c04c6b114c6b4599333a8b7e37e6aee1b152226c4e5d1b61b681b75660707ec2362c9408837f92e9d28a7b9301a3732be0ed9993284b29824f SHA512 7e45bc18ec111da5831c45682297ada47a33ef804ce9d97d15e7f2b3cfb0a5784285239debb00fd346179f527fdd04a815373aefb87158930eedca39de182cfb
|
||||
DIST requests-2.33.0.tar.gz.provenance 9158 BLAKE2B 550febe2d06294b5ebaff6f037775c8b94697524ae9d9a5de72bc442bcfa992a517d100cf05388c3786c27530f50eafe154072aeb745b737c39846d84f830b3e SHA512 54d7067a5da04cc36a0ae3163b4d3b1b1bc8e50d46ea4b0d9a2dc91a8edb8112f6a6a508526d7e32d8629bfb643793e621d6f69e0c29e422554f860d321349d7
|
||||
DIST requests-2.33.1.tar.gz 134120 BLAKE2B 290c77a0f0d90d04638be623f9a32955902869f89fd6eb8c2e2c3b15cdeb28455ec331c84bdba16d6aa69cb02d8567514a245280a0adf64f653f29aacb944f44 SHA512 058dc417085f8be99c2ea79fffecce833068d9342c925a8d8bd1b10c171e52fda5d4bdd8ae1a93b05b111e275c29b705ec79ac0c365fb10f6f81c49e6d839483
|
||||
DIST requests-2.33.1.tar.gz.provenance 9256 BLAKE2B 5257b1e8dac44c85b121e04d9591b73d8e2a95ba8ad7d5a45e954d0d676a44b877da0f800bcf934e843ceaf19522bb81eb616c646ad4ac56ee6c3b7ef74a5913 SHA512 5239edd498ff5c27a92a950b75985da8c59064f7abc04809ab71c54e7f3b8b82a268a291b0431560e5fe70266f0fe5a6151fb804c093a9f99c6a6138ba6b80fb
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="HTTP library for human beings"
|
||||
HOMEPAGE="
|
||||
https://requests.readthedocs.io/
|
||||
https://github.com/psf/requests/
|
||||
https://pypi.org/project/requests/
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos"
|
||||
IUSE="socks5 test-rust"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
|
||||
<dev-python/charset-normalizer-4[${PYTHON_USEDEP}]
|
||||
<dev-python/idna-4[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-3[${PYTHON_USEDEP}]
|
||||
socks5? ( >=dev-python/pysocks-1.5.6[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/pysocks-1.5.6[${PYTHON_USEDEP}]
|
||||
test-rust? (
|
||||
dev-python/trustme[${PYTHON_USEDEP}]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( pytest-{httpbin,mock} )
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Internet (doctests)
|
||||
requests/__init__.py::requests
|
||||
requests/api.py::requests.api.request
|
||||
requests/models.py::requests.models.PreparedRequest
|
||||
requests/sessions.py::requests.sessions.Session
|
||||
# require IPv4 interface in 10.* range
|
||||
tests/test_requests.py::TestTimeout::test_connect_timeout
|
||||
tests/test_requests.py::TestTimeout::test_total_timeout_connect
|
||||
)
|
||||
|
||||
if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_DESELECT+=(
|
||||
tests/test_requests.py::TestRequests::test_https_warnings
|
||||
)
|
||||
fi
|
||||
|
||||
epytest
|
||||
}
|
||||
@@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 8 -- sys-apps/portage dep
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_VERIFY_REPO=https://github.com/psf/requests
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="HTTP library for human beings"
|
||||
HOMEPAGE="
|
||||
https://requests.readthedocs.io/
|
||||
https://github.com/psf/requests/
|
||||
https://pypi.org/project/requests/
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
|
||||
IUSE="socks5 test-rust"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/certifi-2017.4.17[${PYTHON_USEDEP}]
|
||||
<dev-python/charset-normalizer-4[${PYTHON_USEDEP}]
|
||||
<dev-python/idna-4[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-3[${PYTHON_USEDEP}]
|
||||
socks5? ( >=dev-python/pysocks-1.5.6[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-python/pysocks-1.5.6[${PYTHON_USEDEP}]
|
||||
test-rust? (
|
||||
dev-python/trustme[${PYTHON_USEDEP}]
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=( pytest-{httpbin,mock} )
|
||||
EPYTEST_XDIST=1
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
distutils-r1_src_prepare
|
||||
|
||||
# remove useless dependency check spam
|
||||
sed -i -e '/def check_compatibility/a\
|
||||
return' src/requests/__init__.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Internet (doctests)
|
||||
requests/__init__.py::requests
|
||||
requests/api.py::requests.api.request
|
||||
requests/models.py::requests.models.PreparedRequest
|
||||
requests/sessions.py::requests.sessions.Session
|
||||
# require IPv4 interface in 10.* range
|
||||
tests/test_requests.py::TestTimeout::test_connect_timeout
|
||||
tests/test_requests.py::TestTimeout::test_total_timeout_connect
|
||||
)
|
||||
|
||||
if ! has_version "dev-python/trustme[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_DESELECT+=(
|
||||
tests/test_requests.py::TestRequests::test_https_warnings
|
||||
)
|
||||
fi
|
||||
|
||||
epytest
|
||||
}
|
||||
Reference in New Issue
Block a user