[Git][debian-gis-team/python-deprecated][master] 4 commits: Fix URLs in upstream metadata.

Bas Couwenberg gitlab at salsa.debian.org
Tue Oct 27 18:20:19 GMT 2020



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 <sebastic at debian.org>  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 <mgorny at gentoo.org>
+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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20201027/3ae58652/attachment-0001.html>


More information about the Pkg-grass-devel mailing list