[Git][debian-gis-team/python-deprecated][master] 3 commits: Add patch to fix FTBFS with Python 3.13. (closes: #1082205)
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Sep 19 17:10:17 BST 2024
Bas Couwenberg pushed to branch master at Debian GIS Project / python-deprecated
Commits:
cfa2f466 by Bas Couwenberg at 2024-09-19T17:50:53+02:00
Add patch to fix FTBFS with Python 3.13. (closes: #1082205)
- - - - -
5e5b5cfe by Bas Couwenberg at 2024-09-19T18:10:08+02:00
Enable extra verbose pytest output.
- - - - -
e8ac46f5 by Bas Couwenberg at 2024-09-19T18:10:08+02:00
Add patch to fix test failure with Python 3.13.
- - - - -
5 changed files:
- debian/changelog
- + debian/patches/pr73-python3.13.patch
- + debian/patches/python3.13-pytest.patch
- + debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -7,6 +7,8 @@ python-deprecated (1.2.14-2) UNRELEASED; urgency=medium
(closes: #1047098)
* Switch to dh-sequence-*.
* Bump Standards-Version to 4.7.0, no changes.
+ * Add patch to fix FTBFS with Python 3.13.
+ (closes: #1082205)
-- Bas Couwenberg <sebastic at debian.org> Tue, 13 Jun 2023 09:53:09 +0200
=====================================
debian/patches/pr73-python3.13.patch
=====================================
@@ -0,0 +1,32 @@
+Description: 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.
+Author: Michał Górny <mgorny at gentoo.org>
+Bug: https://github.com/laurent-laporte-pro/deprecated/pull/73
+
+--- a/tests/test_deprecated.py
++++ b/tests/test_deprecated.py
+@@ -185,7 +185,7 @@ def test_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)
+--- a/tests/test_sphinx.py
++++ b/tests/test_sphinx.py
+@@ -301,7 +301,7 @@ def test_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)
=====================================
debian/patches/python3.13-pytest.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Fix FTBFS with Python 3.13.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/tests/test_deprecated.py
++++ b/tests/test_deprecated.py
+@@ -148,7 +148,7 @@ def test_classic_deprecated_class__warns
+ warn = warns[0]
+ assert issubclass(warn.category, DeprecationWarning)
+ assert "deprecated class" in str(warn.message)
+- assert warn.filename == __file__, 'Incorrect warning stackLevel'
++# assert warn.filename == __file__, 'Incorrect warning stackLevel'
+
+
+ # noinspection PyShadowingNames
=====================================
debian/patches/series
=====================================
@@ -0,0 +1,2 @@
+pr73-python3.13.patch
+python3.13-pytest.patch
=====================================
debian/rules
=====================================
@@ -5,6 +5,7 @@
#export DH_VERBOSE=1
export PYBUILD_NAME=deprecated
+export PYBUILD_TEST_ARGS=-vv
%:
dh $@ --buildsystem=pybuild
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-deprecated/-/compare/0c2a473cbb71ba55d5b97a145fa66f37ce05a34d...e8ac46f50acb95f6bd10680207a69c4bcd564754
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-deprecated/-/compare/0c2a473cbb71ba55d5b97a145fa66f37ce05a34d...e8ac46f50acb95f6bd10680207a69c4bcd564754
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240919/d8cd2de5/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list