[med-svn] [Git][python-team/packages/sphinxcontrib-autoprogram][upstream] New upstream version 0.1.8

Alexandre Detiste (@detiste-guest) gitlab at salsa.debian.org
Sat Jan 6 17:05:46 GMT 2024



Alexandre Detiste pushed to branch upstream at Debian Python Team / packages / sphinxcontrib-autoprogram


Commits:
d85dc740 by Alexandre Detiste at 2024-01-06T17:48:25+01:00
New upstream version 0.1.8
- - - - -


5 changed files:

- .github/workflows/build.yml
- doc/changelog.rst
- setup.py
- sphinxcontrib/autoprogram.py
- tox.ini


Changes:

=====================================
.github/workflows/build.yml
=====================================
@@ -14,7 +14,7 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python-version: [3.7, 3.8, 3.9]
+        python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
 
     steps:
     - uses: actions/checkout at v2
@@ -69,7 +69,7 @@ jobs:
       working-directory: ${{ github.workspace }}/tmp/sdist
 
     - name: Publish package
-      if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') && matrix.python-version == 3.9
+      if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') && matrix.python-version == 3.11
       uses: pypa/gh-action-pypi-publish at v1.4.2
       with:
         user: __token__


=====================================
doc/changelog.rst
=====================================
@@ -1,13 +1,13 @@
 Changelog
 =========
 
-..
-   TODO Uncomment this:
+Version 0.1.8
+-------------
+
+Released on February 11, 2023.
 
-   Version 0.1.8
-   -------------
+- Test against Python 3.10, 3.11.
 
-   To be released.
 
 Version 0.1.7
 -------------


=====================================
setup.py
=====================================
@@ -7,7 +7,7 @@ from setuptools import setup, find_packages
 
 
 # Do not change the variable name.  It's parsed by doc/conf.py script.
-version = '0.1.7'
+version = '0.1.8'
 
 requires = ['Sphinx >= 1.2', 'six']
 
@@ -35,20 +35,18 @@ setup(
         'License :: OSI Approved :: BSD License',
         'Operating System :: OS Independent',
         'Programming Language :: Python',
-        'Programming Language :: Python :: 3.3',
-        'Programming Language :: Python :: 3.4',
-        'Programming Language :: Python :: 3.5',
-        'Programming Language :: Python :: 3.6',
         'Programming Language :: Python :: 3.7',
         'Programming Language :: Python :: 3.8',
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
+        'Programming Language :: Python :: 3.11',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: Stackless',
         'Topic :: Documentation',
         'Topic :: Software Development :: Documentation',
         'Topic :: Utilities'
     ],
+    python_requires='>=3.7',
     platforms='any',
     packages=find_packages(),
     namespace_packages=['sphinxcontrib'],


=====================================
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
@@ -476,7 +477,11 @@ class ScannerTestCase(unittest.TestCase):
         # section: default optionals
         program, options, group = sections[1]
         self.assertEqual([], program)
-        self.assertEqual("optional arguments", group.title)
+        # See https://github.com/sphinx-contrib/autoprogram/issues/24
+        if sys.version_info >= (3, 10):
+            self.assertEqual('options', group.title)
+        else:
+            self.assertEqual('optional arguments', group.title)
         self.assertEqual(None, group.description)
         self.assertEqual(2, len(options))
         self.assertEqual(
@@ -534,7 +539,7 @@ class AutoprogramDirectiveTestCase(unittest.TestCase):
             0,
             ".. autoprogram:: cli:parser\n   :prog: cli.py\n",
             None,
-            None,
+            mock.Mock(),
         )
 
     def tearDown(self) -> None:


=====================================
tox.ini
=====================================
@@ -7,9 +7,7 @@
 # them.
 
 [tox]
-envlist =
-    {py37,py38,py39}-{sphinx34,sphinx33,sphinx32,sphinx24,sphinx18}
-    black flake8 mypy pylint
+envlist = {py37,py38,py39,py310,py311}-{sphinx34,sphinx33,sphinx32,sphinx24,sphinx18}
 minversion = 2.7.0
 
 [testenv]



View it on GitLab: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram/-/commit/d85dc740d68aef91593e07cfc09d07066e532cad

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/sphinxcontrib-autoprogram/-/commit/d85dc740d68aef91593e07cfc09d07066e532cad
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/20240106/730dce96/attachment-0001.htm>


More information about the debian-med-commit mailing list