summaryrefslogtreecommitdiff
path: root/dev-python/deprecated
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-29 08:00:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-29 08:00:25 +0100
commitd855918b46ba8714cf1320fe63b55fd0ed1748a6 (patch)
tree4d7d0e86122a07796a660310d507f93e1b7747b9 /dev-python/deprecated
parentb8325835c82367d22428eb41afa0f2d375338d3c (diff)
gentoo auto-resync : 29:06:2024 - 08:00:25
Diffstat (limited to 'dev-python/deprecated')
-rw-r--r--dev-python/deprecated/Manifest3
-rw-r--r--dev-python/deprecated/deprecated-1.2.14.ebuild6
-rw-r--r--dev-python/deprecated/files/deprecated-1.2.14-py313.patch34
3 files changed, 41 insertions, 2 deletions
diff --git a/dev-python/deprecated/Manifest b/dev-python/deprecated/Manifest
index 05abc653920b..9d7dd7d83c95 100644
--- a/dev-python/deprecated/Manifest
+++ b/dev-python/deprecated/Manifest
@@ -1,3 +1,4 @@
+AUX deprecated-1.2.14-py313.patch 1593 BLAKE2B fd4731430b9216dc4081430aae2c159f4bbfbaa2e52eddcab0b616cd16820b548d2b917a2e6435473bfb6c997f9e0e144a4f15875aa564cacad3ef2ceb95424b SHA512 532c970dafc98c5b003f869286a3a891a871d6d15ffaf563a1abb3a70b78bc59ead248953ad303c5e5d789a45c80a593500558f01f4763c42e1481cf7119c0f1
DIST Deprecated-1.2.14.tar.gz 2974416 BLAKE2B d7994a435f7709a74fde71b1bfe20aaec44813893fd8d9fba70b55938ec2dcb01364a0084e5b161ad84819a6ce258ef28813f7272c9cc48cfc8a2159408b5f29 SHA512 5c2f71fc4c1abb6d4a6913bd9644d47d12f709a0830b2aa3513aa2aa92c13e916c49fcd45a5f38aa29279822a5bb8563c4062e5f3e21bb6c55ca97b7845ee736
-EBUILD deprecated-1.2.14.ebuild 593 BLAKE2B de1ad5ebdfffb512b89b572ec920a9884891bbf01c967132307253f9d3cfbbccaace892da7486c9aa893f916c3eff7ba9a2ccf3ffab37804640c67f8260832a4 SHA512 1038a87f475e9e165e144f2973d07745bc6f685553e738f3d560dcec9ef0c9a3e80ed1789f9c48b290df5dcbf68114eaf5604ff01c4784cf2e1504f03bfb3eb7
+EBUILD deprecated-1.2.14.ebuild 638 BLAKE2B de929303088acb6b780948711ca30a7e31d43d3a4b1e8041fb8489ab65e9166467a9f4c76b93ebc244700b009dd815dcf7ee4b9be659ddc3fcd65a3831cde85f SHA512 9144a5bb0301bf37d10491bd0696cc162c4bf9ed35c2bc950d17f41f489aff94eb67045fa6f8029df8e9f5f95f8b8a88cdfeb3fae819352b3e3a397bd836b196
MISC metadata.xml 374 BLAKE2B be79deba7ab13c58cb57fc05937c949f2a7fefd60028d35b3c9a4f9a1acdff09535b9f21402f281e9299c9275a3fb8e26a860dfc4712e07422b7f03e8a5ddf48 SHA512 e302d1682a1c252b8d79f7d3126302c3378249aa328c9f1733936805ce423be4d9dca0216eb836fc30208ecb41ac3f077fcc40c0c0c2e195d314f7c840bce5ce
diff --git a/dev-python/deprecated/deprecated-1.2.14.ebuild b/dev-python/deprecated/deprecated-1.2.14.ebuild
index 2503a4b7b259..9f120ca0b27b 100644
--- a/dev-python/deprecated/deprecated-1.2.14.ebuild
+++ b/dev-python/deprecated/deprecated-1.2.14.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYPI_PN=${PN^}
-PYTHON_COMPAT=( python3_{10..12} pypy3 )
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1 pypi
@@ -24,4 +24,8 @@ RDEPEND="
dev-python/wrapt[${PYTHON_USEDEP}]
"
+PATCHES=(
+ "${FILESDIR}/${P}-py313.patch"
+)
+
distutils_enable_tests pytest
diff --git a/dev-python/deprecated/files/deprecated-1.2.14-py313.patch b/dev-python/deprecated/files/deprecated-1.2.14-py313.patch
new file mode 100644
index 000000000000..b0daead38417
--- /dev/null
+++ b/dev-python/deprecated/files/deprecated-1.2.14-py313.patch
@@ -0,0 +1,34 @@
+diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py
+index 0e467ae..69b10c1 100644
+--- a/tests/test_deprecated.py
++++ b/tests/test_deprecated.py
+@@ -152,6 +152,7 @@ def test_classic_deprecated_class__warns(classic_deprecated_class):
+ classic_deprecated_class()
+ assert len(warns) == 1
+ warn = warns[0]
++ print(warns)
+ assert issubclass(warn.category, DeprecationWarning)
+ assert "deprecated class" in str(warn.message)
+ assert warn.filename == __file__ or warn.category is WrongStackLevelWarning, 'Incorrect warning stackLevel'
+@@ -191,7 +192,7 @@ def test_classic_deprecated_class_method__warns(classic_deprecated_class_method)
+ assert len(warns) == 1
+ warn = warns[0]
+ assert issubclass(warn.category, DeprecationWarning)
+- if sys.version_info >= (3, 9):
++ if (3, 9) <= sys.version_info < (3, 13):
+ assert "deprecated class method" in str(warn.message)
+ else:
+ assert "deprecated function (or staticmethod)" in str(warn.message)
+diff --git a/tests/test_sphinx.py b/tests/test_sphinx.py
+index a1d7753..8cf8e95 100644
+--- a/tests/test_sphinx.py
++++ b/tests/test_sphinx.py
+@@ -301,7 +301,7 @@ def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
+ assert len(warns) == 1
+ warn = warns[0]
+ assert issubclass(warn.category, DeprecationWarning)
+- if sys.version_info >= (3, 9):
++ if (3, 9) <= sys.version_info < (3, 13):
+ assert "deprecated class method" in str(warn.message)
+ else:
+ assert "deprecated function (or staticmethod)" in str(warn.message)