Bas Couwenberg pushed to branch master at Debian GIS Project / mapproxy
Commits: 539be121 by Bas Couwenberg at 2023-12-20T18:08:28+01:00 Add patch to fix compatility with Python 3.12. - - - - - 3 changed files: - debian/changelog - + debian/patches/python3.12.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +mapproxy (2.0.0+dfsg-2) UNRELEASED; urgency=medium + + * Add patch to fix compatility with Python 3.12. + + -- Bas Couwenberg <[email protected]> Wed, 20 Dec 2023 18:00:37 +0100 + mapproxy (2.0.0+dfsg-1) unstable; urgency=medium * New upstream release. ===================================== debian/patches/python3.12.patch ===================================== @@ -0,0 +1,33 @@ +Description: Fix compatibility with Python 3.12. +Author: Bas Couwenberg <[email protected]> +Bug: https://github.com/mapproxy/mapproxy/issues/829 +Forwarded: https://github.com/mapproxy/mapproxy/pull/833 + +--- a/.github/workflows/test.yml ++++ b/.github/workflows/test.yml +@@ -33,7 +33,7 @@ jobs: + + strategy: + matrix: +- python-version: [3.8, 3.9, "3.10", "3.11"] ++ python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] + + env: + MAPPROXY_TEST_COUCHDB: 'http://localhost:5984' +--- a/mapproxy/test/mocker.py ++++ b/mapproxy/test/mocker.py +@@ -453,8 +453,12 @@ class MockerTestCase(unittest.TestCase): + assertNotIsInstance = failIfIsInstance # Poor choice in 2.7/3.2+. + + # The following are missing in Python < 2.4. +- assertTrue = unittest.TestCase.failUnless +- assertFalse = unittest.TestCase.failIf ++ if sys.version_info < (2, 4): ++ assertTrue = unittest.TestCase.failUnless ++ assertFalse = unittest.TestCase.failIf ++ else: ++ assertTrue = unittest.TestCase.assertTrue ++ assertFalse = unittest.TestCase.assertFalse + + # The following is provided for compatibility with Twisted's trial. + assertIdentical = assertIs ===================================== debian/patches/series ===================================== @@ -1,3 +1,4 @@ disable-tag_date.patch mapnik.patch javascript.patch +python3.12.patch View it on GitLab: https://salsa.debian.org/debian-gis-team/mapproxy/-/commit/539be12148d95b676724769b9d5aa9f42f34ae17 -- View it on GitLab: https://salsa.debian.org/debian-gis-team/mapproxy/-/commit/539be12148d95b676724769b9d5aa9f42f34ae17 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
