mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/deprecated: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST Deprecated-1.2.14.tar.gz 2974416 BLAKE2B d7994a435f7709a74fde71b1bfe20aaec44813893fd8d9fba70b55938ec2dcb01364a0084e5b161ad84819a6ce258ef28813f7272c9cc48cfc8a2159408b5f29 SHA512 5c2f71fc4c1abb6d4a6913bd9644d47d12f709a0830b2aa3513aa2aa92c13e916c49fcd45a5f38aa29279822a5bb8563c4062e5f3e21bb6c55ca97b7845ee736
|
||||
DIST deprecated-1.2.15.tar.gz 2977612 BLAKE2B b12747c874ac94825dd6c8e2004aa31d4b0b5a7b2f6057951963ba24a26d17fead67ce4283755b3740399e7bb7ed49a7b3ad7b081497e58af80c6454280eefd1 SHA512 03d5eaa2cb881b5b284f9112d15502522887c3beb91a0e8e2868bfd7b7d8ddf0c947937f3b19dd42c8b512ab1e37dc1012f5e0b5d3d374eb7a8718c4b5f214b8
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
# Copyright 2019-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYPI_NO_NORMALIZE=1
|
||||
PYPI_PN=${PN^}
|
||||
PYTHON_COMPAT=( python3_{10..13} pypy3 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python @deprecated decorator to deprecate old API"
|
||||
HOMEPAGE="
|
||||
https://github.com/tantale/deprecated/
|
||||
https://pypi.org/project/Deprecated/
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/wrapt[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-py313.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
@@ -1,34 +0,0 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user