[med-svn] [Git][python-team/packages/sphinxcontrib-autoprogram][master] 5 commits: Mock state_machine in AutoprogramDirectiveTestCase
Jochen Sprickerhof (@jspricke)
gitlab at salsa.debian.org
Fri Feb 10 19:50:17 GMT 2023
Jochen Sprickerhof pushed to branch master at Debian Python Team / packages / sphinxcontrib-autoprogram
Commits:
43dc5ca4 by Jochen Sprickerhof at 2023-02-10T20:44:08+01:00
Mock state_machine in AutoprogramDirectiveTestCase
Closes: #1030431
- - - - -
271bc87f by Jochen Sprickerhof at 2023-02-10T20:46:11+01:00
Switch to autopkgtest-pkg-pybuild
- - - - -
a4b6336a by Jochen Sprickerhof at 2023-02-10T20:47:01+01:00
Use dh-sequence-python3
- - - - -
6274b78c by Jochen Sprickerhof at 2023-02-10T20:47:10+01:00
Bump policy version (no changes)
- - - - -
24a5c978 by Jochen Sprickerhof at 2023-02-10T20:47:44+01:00
Update changelog for 0.1.7-4 release
- - - - -
6 changed files:
- debian/changelog
- debian/control
- + debian/patches/0002-Mock-state_machine-in-AutoprogramDirectiveTestCase.patch
- debian/patches/fix_test.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+sphinxcontrib-autoprogram (0.1.7-4) unstable; urgency=medium
+
+ * Team upload.
+ * Mock state_machine in AutoprogramDirectiveTestCase (Closes: #1030431)
+ * Switch to autopkgtest-pkg-pybuild
+ * Use dh-sequence-python3
+ * Bump policy version (no changes)
+
+ -- Jochen Sprickerhof <jspricke at debian.org> Fri, 10 Feb 2023 20:47:37 +0100
+
sphinxcontrib-autoprogram (0.1.7-3) unstable; urgency=medium
* Fix watch file
=====================================
debian/control
=====================================
@@ -3,16 +3,16 @@ Maintainer: Debian Python Team <team+python at tracker.debian.org>
Uploaders: Andreas Tille <tille at debian.org>,
Kevin Murray <spam at kdmurray.id.au>
Section: python
-Testsuite: autopkgtest-pkg-python
+Testsuite: autopkgtest-pkg-pybuild
Priority: optional
Build-Depends: debhelper-compat (= 13),
- dh-python,
+ dh-sequence-python3,
python3,
python3-setuptools,
python3-sphinx,
python3-six,
debhelper
-Standards-Version: 4.6.1
+Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram
Vcs-Git: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram.git
Homepage: https://pythonhosted.org/sphinxcontrib-autoprogram/
=====================================
debian/patches/0002-Mock-state_machine-in-AutoprogramDirectiveTestCase.patch
=====================================
@@ -0,0 +1,29 @@
+From: Jochen Sprickerhof <jspricke at debian.org>
+Date: Fri, 10 Feb 2023 20:41:15 +0100
+Subject: Mock state_machine in AutoprogramDirectiveTestCase
+
+---
+ sphinxcontrib/autoprogram.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/sphinxcontrib/autoprogram.py b/sphinxcontrib/autoprogram.py
+index de687af..d9fc924 100644
+--- a/sphinxcontrib/autoprogram.py
++++ b/sphinxcontrib/autoprogram.py
+@@ -19,6 +19,7 @@ import re
+ import sys
+ from typing import Any, Dict, Iterable, List, Optional, Tuple
+ import unittest
++from unittest import mock
+
+ from docutils import nodes
+ from docutils.parsers.rst import Directive
+@@ -534,7 +535,7 @@ class AutoprogramDirectiveTestCase(unittest.TestCase):
+ 0,
+ ".. autoprogram:: cli:parser\n :prog: cli.py\n",
+ None,
+- None,
++ mock.Mock(),
+ )
+
+ def tearDown(self) -> None:
=====================================
debian/patches/fix_test.patch
=====================================
@@ -1,10 +1,17 @@
-Description: Adapt test to current output
-Author: Andreas Tille <tille at debian.org>
+From: Andreas Tille <tille at debian.org>
+Date: Fri, 10 Feb 2023 20:03:14 +0100
+Subject: Adapt test to current output
+
Last-Update: Tue, 29 Nov 2022 17:59:22 +0100
+---
+ sphinxcontrib/autoprogram.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+diff --git a/sphinxcontrib/autoprogram.py b/sphinxcontrib/autoprogram.py
+index c60cf68..de687af 100644
--- a/sphinxcontrib/autoprogram.py
+++ b/sphinxcontrib/autoprogram.py
-@@ -476,7 +476,7 @@ class ScannerTestCase(unittest.TestCase)
+@@ -476,7 +476,7 @@ class ScannerTestCase(unittest.TestCase):
# section: default optionals
program, options, group = sections[1]
self.assertEqual([], program)
=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
fix_test.patch
+0002-Mock-state_machine-in-AutoprogramDirectiveTestCase.patch
=====================================
debian/rules
=====================================
@@ -2,7 +2,7 @@
export PYBUILD_DESTDIR_python3=debian/python3-sphinxcontrib.autoprogram
%:
- dh $@ --with=python3 --buildsystem=pybuild
+ dh $@ --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
View it on GitLab: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram/-/compare/4d41f12eed2b2836d7a9419ac23c4c855a300a7b...24a5c978b7f4cdb00ff438903615b68d3364806a
--
View it on GitLab: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram/-/compare/4d41f12eed2b2836d7a9419ac23c4c855a300a7b...24a5c978b7f4cdb00ff438903615b68d3364806a
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/debian-med-commit/attachments/20230210/3bf26221/attachment-0001.htm>
More information about the debian-med-commit
mailing list