commit: 82b7b76d259ad0755870ccfd6d870478c538dbc8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 18 19:56:40 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 18 20:13:10 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82b7b76d
dev-python/python-cinderclient: Enable py3.13
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../files/python-cinderclient-9.7.0-py313.patch | 22 ++++++++++++++++++++++
.../python-cinderclient-9.7.0.ebuild | 7 ++++++-
2 files changed, 28 insertions(+), 1 deletion(-)
diff --git
a/dev-python/python-cinderclient/files/python-cinderclient-9.7.0-py313.patch
b/dev-python/python-cinderclient/files/python-cinderclient-9.7.0-py313.patch
new file mode 100644
index 000000000000..0cfc8df62cd5
--- /dev/null
+++ b/dev-python/python-cinderclient/files/python-cinderclient-9.7.0-py313.patch
@@ -0,0 +1,22 @@
+diff --git a/cinderclient/tests/unit/test_shell.py
b/cinderclient/tests/unit/test_shell.py
+index c5d64af..6b67a8e 100644
+--- a/cinderclient/tests/unit/test_shell.py
++++ b/cinderclient/tests/unit/test_shell.py
+@@ -437,12 +437,14 @@
+ expected_help = ("help message (Supported by API versions "
+ "%(start)s - %(end)s)") % {
+ 'start': '3.0', 'end': '3.3'}
+- expected_desc = ("help message\n\n "
+- "This will not show up in help message\n ")
++ self.assertIn('help message',
++ mock_add_parser.call_args_list[0][1]['description'])
++ self.assertIn('This will not show up in help message',
++ mock_add_parser.call_args_list[0][1]['description'])
+ mock_add_parser.assert_any_call(
+ 'fake-action',
+ help=expected_help,
+- description=expected_desc,
++ description=mock.ANY,
+ add_help=False,
+ formatter_class=cinderclient.shell.OpenStackHelpFormatter)
+
diff --git a/dev-python/python-cinderclient/python-cinderclient-9.7.0.ebuild
b/dev-python/python-cinderclient/python-cinderclient-9.7.0.ebuild
index e30e56b5a3bc..63ad7127f15b 100644
--- a/dev-python/python-cinderclient/python-cinderclient-9.7.0.ebuild
+++ b/dev-python/python-cinderclient/python-cinderclient-9.7.0.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
@@ -41,6 +41,11 @@ BDEPEND="
distutils_enable_tests unittest
+PATCHES=(
+ # https://review.opendev.org/c/openstack/python-cinderclient/+/930218/1
+ "${FILESDIR}/${P}-py313.patch"
+)
+
python_test() {
# functional tests require cloud instance access
eunittest -b cinderclient/tests/unit