commit: 90d3c2c9fb08a5576152b9b033ba364104dc70af
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 26 05:16:15 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 06:03:39 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90d3c2c9
dev-python/responses: Bump to 0.23.2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/responses/Manifest | 1 +
dev-python/responses/responses-0.23.2.ebuild | 51 ++++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
diff --git a/dev-python/responses/Manifest b/dev-python/responses/Manifest
index 5fc01c5f4283..37b9ad982360 100644
--- a/dev-python/responses/Manifest
+++ b/dev-python/responses/Manifest
@@ -1 +1,2 @@
DIST responses-0.23.1.tar.gz 72966 BLAKE2B
e75db65ab98ebf7773c469dee5486b52b6f5c1f39d847c6f38a65e664c244937716c792cf009c750019043845b95c11ea38f99d68137899ef2ef48e60edc0c2a
SHA512
2c05ac5c4ccca351940d3821b0830cee366cd7c9637f1e4c1e6b40c72ed2168a1036de634f03bfaaa2f7270e3825f6d9e8d31fc7a16f321f1de1cc64255454a1
+DIST responses-0.23.2.tar.gz 73678 BLAKE2B
b49d04c9be0844c948ab7a8d8b8b81da152d4b7c47330937846262c45db6d562b107d7a864a07cc77d568491a8dafdd873fc6484ebf04d50d99441838474ecfb
SHA512
f18f7b747871a4bffba59787b2c84d26799bed2f949c0e977fbd2ef6341425957bb27cc2beb067f75892a4b9a5af3d40f28083482950a4a6e29144fc1d529cff
diff --git a/dev-python/responses/responses-0.23.2.ebuild
b/dev-python/responses/responses-0.23.2.ebuild
new file mode 100644
index 000000000000..9b2e8d3a63eb
--- /dev/null
+++ b/dev-python/responses/responses-0.23.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Utility for mocking out the Python Requests library"
+HOMEPAGE="
+ https://pypi.org/project/responses/
+ https://github.com/getsentry/responses/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86"
+
+# tomli backend is optional now, with pyyaml being the new default.
+# However, keeping it unconditional here for backwards compatibility.
+RDEPEND="
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ <dev-python/requests-3[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.30.0[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/tomli[${PYTHON_USEDEP}]
+ ' 3.{8..10})
+ dev-python/tomli-w[${PYTHON_USEDEP}]
+ <dev-python/urllib3-3[${PYTHON_USEDEP}]
+ >=dev-python/urllib3-2.0.0[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-httpserver[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ distutils-r1_src_prepare
+ # remove unnecessary RDEP on type stubs
+ sed -i -e '/types-/d' setup.py || die
+}
+
+python_test() {
+ epytest -p no:localserver
+}