diff --git a/Deprecated-1.2.14.tar.gz b/Deprecated-1.2.14.tar.gz deleted file mode 100644 index 1a2fffb..0000000 --- a/Deprecated-1.2.14.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5323eb936458dccc2582dc6f9c322c852a775a27065ff2b0c4970b9d53d01b3 -size 2974416 diff --git a/deprecated-1.2.15.tar.gz b/deprecated-1.2.15.tar.gz new file mode 100644 index 0000000..56351ea --- /dev/null +++ b/deprecated-1.2.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:683e561a90de76239796e6b6feac66b99030d2dd3fcf61ef996330f14bbb9b0d +size 2977612 diff --git a/fix-python3.13-ftbfs.patch b/fix-python3.13-ftbfs.patch deleted file mode 100644 index 26e14dc..0000000 --- a/fix-python3.13-ftbfs.patch +++ /dev/null @@ -1,42 +0,0 @@ -From 3b1aec9b8ff43f81cf7df9be92d0d383d759792e Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= -Date: Fri, 28 Jun 2024 07:52:59 +0200 -Subject: [PATCH] Update class method deprecation warnings for Python 3.13 - -Update the version range for modified deprecation warnings that was -introduced in efb3e60623e1dda88c2725a93223d290924e8666, since Python -3.13 reverted the change originally introduced in 3.9 and is back to -the old messages. This fixes tests with Python 3.13. - -See also https://github.com/GrahamDumpleton/wrapt/pull/260. ---- - tests/test_deprecated.py | 2 +- - tests/test_sphinx.py | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py -index 0e467ae..c39229b 100644 ---- a/tests/test_deprecated.py -+++ b/tests/test_deprecated.py -@@ -191,7 +191,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) diff --git a/python-Deprecated.changes b/python-Deprecated.changes index 883ad9a..b710d42 100644 --- a/python-Deprecated.changes +++ b/python-Deprecated.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Nov 25 12:43:42 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 1.2.15 + * Resolve Python 2.7 support issue introduced in v1.2.14 in ``sphinx.py``. + * Fix #69: Add ``extra_stacklevel`` argument for interoperating with + other wrapper functions (refer to #68 for a concrete use case). + * Fix #73: Update class method deprecation warnings for Python 3.13. + * Fix #75: Update GitHub workflows and fix development dependencies for Python 3.12. + * Fix #66: discontinue TravisCI and AppVeyor due to end of free support. +- Adjust upstream source name in spec file +- Drop fix-python3.13-ftbfs.patch, merged upstream + ------------------------------------------------------------------- Tue Sep 24 12:03:30 UTC 2024 - ecsos diff --git a/python-Deprecated.spec b/python-Deprecated.spec index c34e1b6..bf5bcee 100644 --- a/python-Deprecated.spec +++ b/python-Deprecated.spec @@ -19,15 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-Deprecated -Version: 1.2.14 +Version: 1.2.15 Release: 0 Summary: Python @deprecated decorator License: MIT Group: Development/Languages/Python URL: https://github.com/tantale/deprecated -Source: https://files.pythonhosted.org/packages/source/D/Deprecated/Deprecated-%{version}.tar.gz -# PATCH-FIX-UPSTREAM - gh#tantale/deprecated/73 - Update class method deprecation warnings for Python 3.13 -Patch1: https://github.com/tantale/deprecated/pull/73.patch#/fix-python3.13-ftbfs.patch +Source: https://files.pythonhosted.org/packages/source/d/deprecated/deprecated-%{version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wrapt >= 1.10} @@ -43,8 +41,7 @@ If you need to mark a function or a method as deprecated, you can use the ``@deprecated`` decorator. %prep -%setup -q -n Deprecated-%{version} -%patch -P 1 -p1 +%setup -q -n deprecated-%{version} %build %python_build