diff --git a/debian/changelog b/debian/changelog index 4d6830c07a003865b6a065fb6d1cce2ab7764afc..d156c29d054c84b8e8f1a3a487bdfffb3d318299 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,20 @@ -python-randomize (0.14-3) UNRELEASED; urgency=medium +python-randomize (0.14-4) UNRELEASED; urgency=medium + * Bump debhelper from old 12 to 13. + * Set upstream metadata fields: Contact, Repository-Browse. + * Update standards version to 4.6.1, no changes needed. + + -- Debian Janitor <janitor@jelmer.uk> Sun, 25 Dec 2022 19:00:33 -0000 + +python-randomize (0.14-3) unstable; urgency=medium + + [ Ondřej Nový ] * Bump Standards-Version to 4.4.1. - -- Ondřej Nový <onovy@debian.org> Fri, 18 Oct 2019 16:29:50 +0200 + [ Thomas Goirand ] + * Fixed unit testing with Python 3.11 (Closes: #1026521). + + -- Thomas Goirand <zigo@debian.org> Sun, 25 Dec 2022 19:02:15 +0100 python-randomize (0.14-2) unstable; urgency=medium diff --git a/debian/control b/debian/control index 3d9787f457acdff4d0ecc4241b7e5af500cddb35..b48e2b3c8a007d98c6dbaf90cb89ccda4f628cd8 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: Debian OpenStack <team+openstack@tracker.debian.org> Uploaders: Thomas Goirand <zigo@debian.org>, Build-Depends: - debhelper-compat (= 12), + debhelper-compat (= 13), dh-python, openstack-pkg-tools, python3-all, @@ -15,7 +15,7 @@ Build-Depends-Indep: python3-ipdb, python3-ipython, python3-nose, -Standards-Version: 4.4.1 +Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-randomize Vcs-Git: https://salsa.debian.org/openstack-team/python/python-randomize.git Homepage: https://github.com/nloadholtes/nose-randomize diff --git a/debian/patches/py3.11-fixed-testing.patch b/debian/patches/py3.11-fixed-testing.patch new file mode 100644 index 0000000000000000000000000000000000000000..d6e360f286a664916a5e3717a1f6e6e30248d631 --- /dev/null +++ b/debian/patches/py3.11-fixed-testing.patch @@ -0,0 +1,32 @@ +Description: Python 3.11: fixed testing +Author: Thomas Goirand <zigo@debian.org> +Bug-Debian: https://bugs.debian.org/1026521 +Forwarded: no +Last-Update: 2022-12-25 + +--- python-randomize-0.14.orig/tests/test_randomize.py ++++ python-randomize-0.14/tests/test_randomize.py +@@ -26,11 +26,18 @@ class TestRandomizePlugin(PluginTester, + suitepath = os.path.join(support, 'fixtures.py') + + def runTest(self): +- expect = [ +- 'test_C (fixtures.Tests) ... ok', +- 'test_B (fixtures.Tests) ... ok', +- 'test_A (fixtures.Tests) ... ok', +- 'test_D (fixtures.Tests) ... ok'] ++ if sys.version_info.minor >= 11: ++ expect = [ ++ 'test_C (fixtures.Tests.test_C) ... ok', ++ 'test_B (fixtures.Tests.test_B) ... ok', ++ 'test_A (fixtures.Tests.test_A) ... ok', ++ 'test_D (fixtures.Tests.test_D) ... ok'] ++ else: ++ expect = [ ++ 'test_C (fixtures.Tests) ... ok', ++ 'test_B (fixtures.Tests) ... ok', ++ 'test_A (fixtures.Tests) ... ok', ++ 'test_D (fixtures.Tests) ... ok'] + print(str(self.output)) + for line in self.output: + if expect: diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000000000000000000000000000000000000..321de92766594c497407b843116493836aa50482 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +py3.11-fixed-testing.patch diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000000000000000000000000000000000000..bd4cf2725b003132bcab84a3a20fc81ac85fc18a --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,3 @@ +--- +Contact: Nick Loadholtes <nick@ironboundsoftware.com> +Repository-Browse: https://github.com/nloadholtes/nose-randomize