Bas Couwenberg pushed to branch master at Debian GIS Project / python-deprecated
Commits: 778143c8 by Bas Couwenberg at 2020-10-27T19:03:29+01:00 Fix URLs in upstream metadata. - - - - - 4e94f622 by Bas Couwenberg at 2020-10-27T19:08:08+01:00 Add upstream patch to fix FTBFS with python3.9. (closes: #973164) - - - - - 61c3fd9a by Bas Couwenberg at 2020-10-27T19:13:11+01:00 Update lintian overrides. - - - - - 13bd88c7 by Bas Couwenberg at 2020-10-27T19:13:11+01:00 Set distribution to unstable. - - - - - 5 changed files: - debian/changelog - + debian/patches/0001-Update-expected-class-method-deprecation-msgs-in-tes.patch - + debian/patches/series - − debian/source/lintian-overrides - debian/upstream/metadata Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,12 @@ +python-deprecated (1.2.10-2) unstable; urgency=medium + + * Fix URLs in upstream metadata. + * Add upstream patch to fix FTBFS with python3.9. + (closes: #973164) + * Update lintian overrides. + + -- Bas Couwenberg <[email protected]> Tue, 27 Oct 2020 19:03:51 +0100 + python-deprecated (1.2.10-1) unstable; urgency=medium * New upstream release. ===================================== debian/patches/0001-Update-expected-class-method-deprecation-msgs-in-tes.patch ===================================== @@ -0,0 +1,43 @@ +Description: Update expected class method deprecation msgs in tests for py3.9 + Python 3.9 has fixed @classmethod combining with other decorators, + making deprecated correctly report 'class method' (instead of function + or static method). Update the tests to account for that. +Author: Michał Górny <[email protected]> +Origin: https://github.com/tantale/deprecated/commit/efb3e60623e1dda88c2725a93223d290924e8666 +Bug: https://github.com/tantale/deprecated/issues/29 +Bug-Debian: https://bugs.debian.org/973164 + +--- a/tests/test_deprecated.py ++++ b/tests/test_deprecated.py +@@ -1,4 +1,5 @@ + # -*- coding: utf-8 -*- ++import sys + import warnings + + import pytest +@@ -184,7 +185,10 @@ def test_classic_deprecated_class_method + assert len(warns) == 1 + warn = warns[0] + assert issubclass(warn.category, DeprecationWarning) +- assert "deprecated function (or staticmethod)" in str(warn.message) ++ if sys.version_info >= (3, 9): ++ assert "deprecated class method" in str(warn.message) ++ else: ++ assert "deprecated function (or staticmethod)" in str(warn.message) + assert warn.filename == __file__, 'Incorrect warning stackLevel' + + +--- a/tests/test_sphinx.py ++++ b/tests/test_sphinx.py +@@ -334,7 +334,10 @@ def test_sphinx_deprecated_class_method_ + assert len(warns) == 1 + warn = warns[0] + assert issubclass(warn.category, DeprecationWarning) +- assert "deprecated function (or staticmethod)" in str(warn.message) ++ if sys.version_info >= (3, 9): ++ assert "deprecated class method" in str(warn.message) ++ else: ++ assert "deprecated function (or staticmethod)" in str(warn.message) + + + def test_should_raise_type_error(): ===================================== debian/patches/series ===================================== @@ -0,0 +1 @@ +0001-Update-expected-class-method-deprecation-msgs-in-tes.patch ===================================== debian/source/lintian-overrides deleted ===================================== @@ -1,3 +0,0 @@ -# Not worth the effort -testsuite-autopkgtest-missing - ===================================== debian/upstream/metadata ===================================== @@ -1,5 +1,5 @@ --- -Bug-Database: https://github.com/geopython/stetl/issues -Bug-Submit: https://github.com/geopython/stetl/issues/new -Repository: https://github.com/geopython/stetl.git -Repository-Browse: https://github.com/geopython/stetl +Bug-Database: https://github.com/tantale/deprecated/issues +Bug-Submit: https://github.com/tantale/deprecated/issues/new +Repository: https://github.com/tantale/deprecated.git +Repository-Browse: https://github.com/tantale/deprecated View it on GitLab: https://salsa.debian.org/debian-gis-team/python-deprecated/-/compare/a7144a670af2ba497958aa924d5dd2072b09e12a...13bd88c7f283ab896b50ae13e3d1612c19cb5414 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/python-deprecated/-/compare/a7144a670af2ba497958aa924d5dd2072b09e12a...13bd88c7f283ab896b50ae13e3d1612c19cb5414 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
