commit:     df0668c754bc716785fd6a48dae70345864ff1c4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 29 07:27:51 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 29 07:31:37 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df0668c7

dev-python/requests-mock: Require dev-python/urllib3 < 2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ...ests-mock-1.10.0.ebuild => requests-mock-1.10.0-r1.ebuild} | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/dev-python/requests-mock/requests-mock-1.10.0.ebuild 
b/dev-python/requests-mock/requests-mock-1.10.0-r1.ebuild
similarity index 80%
rename from dev-python/requests-mock/requests-mock-1.10.0.ebuild
rename to dev-python/requests-mock/requests-mock-1.10.0-r1.ebuild
index 39c7bfbeceb3..7f72de938bf4 100644
--- a/dev-python/requests-mock/requests-mock-1.10.0.ebuild
+++ b/dev-python/requests-mock/requests-mock-1.10.0-r1.ebuild
@@ -3,21 +3,28 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( pypy3 python3_{9..11} )
 DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
+
 inherit distutils-r1 pypi
 
 DESCRIPTION="Mock out responses from the requests package"
-HOMEPAGE="https://github.com/jamielennox/requests-mock";
+HOMEPAGE="
+       https://github.com/jamielennox/requests-mock/
+       https://pypi.org/project/requests-mock/
+"
 
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86"
 
+# urllib3 causes regressions that aren't caught by tests:
+# https://github.com/jamielennox/requests-mock/issues/228
 RDEPEND="
        >=dev-python/requests-2.3[${PYTHON_USEDEP}]
        dev-python/six[${PYTHON_USEDEP}]
+       <dev-python/urllib3-2[${PYTHON_USEDEP}]
 "
 BDEPEND="
        >=dev-python/pbr-0.8[${PYTHON_USEDEP}]

Reply via email to