Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-sphinx-click for 
openSUSE:Factory checked in at 2023-09-20 13:31:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-sphinx-click (Old)
 and      /work/SRC/openSUSE:Factory/.python-sphinx-click.new.16627 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-sphinx-click"

Wed Sep 20 13:31:44 2023 rev:5 rq:1112497 version:5.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sphinx-click/python-sphinx-click.changes  
2023-05-12 20:39:58.194751945 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-sphinx-click.new.16627/python-sphinx-click.changes
       2023-09-20 13:35:37.884492290 +0200
@@ -1,0 +2,11 @@
+Wed Sep 13 08:30:57 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 5.0.1:
+  * Fix compatibility with Sphinx 7.2.x
+  * Add release note for events support
+  * Process events
+  * Add release note for end of Python 3.7 support
+  * setup.cfg: Add click keyword
+  * Drop Python 3.7 support
+
+-------------------------------------------------------------------

Old:
----
  sphinx-click-4.4.0.tar.gz

New:
----
  sphinx-click-5.0.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-sphinx-click.spec ++++++
--- /var/tmp/diff_new_pack.1A4QIF/_old  2023-09-20 13:35:38.940530123 +0200
+++ /var/tmp/diff_new_pack.1A4QIF/_new  2023-09-20 13:35:38.940530123 +0200
@@ -18,12 +18,13 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-sphinx-click
-Version:        4.4.0
+Version:        5.0.1
 Release:        0
 Summary:        Sphinx extension that automatically documents click 
applications
 License:        MIT
 URL:            https://github.com/stephenfin/sphinx-click
 Source:         
https://files.pythonhosted.org/packages/source/s/sphinx_click/sphinx-click-%{version}.tar.gz
+BuildRequires:  %{python_module devel >= 3.8}
 BuildRequires:  %{python_module pbr}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}

++++++ sphinx-click-4.4.0.tar.gz -> sphinx-click-5.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/.github/workflows/ci.yaml 
new/sphinx-click-5.0.1/.github/workflows/ci.yaml
--- old/sphinx-click-4.4.0/.github/workflows/ci.yaml    2022-12-06 
14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/.github/workflows/ci.yaml    2023-08-17 
18:59:08.000000000 +0200
@@ -17,13 +17,13 @@
       - name: Install dependencies
         run: python -m pip install tox
       - name: Run tox
-        run: tox -e style,mypy
+        run: tox -e style
   test:
     name: Run unit tests
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
+        python: ["3.8", "3.9", "3.10", "3.11"]
     steps:
       - name: Checkout source code
         uses: actions/checkout@v3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/.pre-commit-config.yaml 
new/sphinx-click-5.0.1/.pre-commit-config.yaml
--- old/sphinx-click-4.4.0/.pre-commit-config.yaml      2022-12-06 
14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/.pre-commit-config.yaml      2023-08-17 
18:59:08.000000000 +0200
@@ -6,11 +6,11 @@
   python: python3
 repos:
   - repo: https://github.com/ambv/black
-    rev: 22.3.0
+    rev: 23.7.0
     hooks:
       - id: black
   - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.2.0
+    rev: v4.4.0
     hooks:
       - id: trailing-whitespace
       - id: mixed-line-ending
@@ -23,7 +23,19 @@
       - id: check-yaml
         files: .*\.(yaml|yml)$
       - id: check-added-large-files
-  - repo: https://gitlab.com/pycqa/flake8
-    rev: 3.9.2
+  - repo: https://github.com/pycqa/flake8
+    rev: 6.1.0
     hooks:
       - id: flake8
+  - repo: https://github.com/pre-commit/mirrors-mypy
+    rev: v1.4.1
+    hooks:
+      - id: mypy
+        additional_dependencies:
+          - types-docutils
+        args: ['--explicit-package-bases']
+        exclude: |
+          (?x)(
+            docs/.* \
+            | tests/.*
+          )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/AUTHORS 
new/sphinx-click-5.0.1/AUTHORS
--- old/sphinx-click-4.4.0/AUTHORS      2022-12-06 14:00:46.000000000 +0100
+++ new/sphinx-click-5.0.1/AUTHORS      2023-08-17 18:59:19.000000000 +0200
@@ -24,6 +24,7 @@
 Stephen Finucane <[email protected]>
 Tim Abramson <[email protected]>
 William Jamir Silva <[email protected]>
+coloursofnoise <[email protected]>
 frostming <[email protected]>
 jtrakk <[email protected]>
 oleg.hoefling <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/ChangeLog 
new/sphinx-click-5.0.1/ChangeLog
--- old/sphinx-click-4.4.0/ChangeLog    2022-12-06 14:00:46.000000000 +0100
+++ new/sphinx-click-5.0.1/ChangeLog    2023-08-17 18:59:19.000000000 +0200
@@ -1,6 +1,26 @@
 CHANGES
 =======
 
+5.0.1
+-----
+
+* Fix compatibility with Sphinx 7.2.x
+
+5.0.0
+-----
+
+* Add release note for events support
+* Process events (#126)
+* Add release note for end of Python 3.7 support
+* setup.cfg: Add click keyword
+* Drop Python 3.7 support
+* tox: Use pre-commit for 'style' target
+* mypy: Follow imports
+* pre-commit: Enable black
+* pre-commit: Version bumps
+* examples: Add typing info
+* Typo
+
 4.4.0
 -----
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/PKG-INFO 
new/sphinx-click-5.0.1/PKG-INFO
--- old/sphinx-click-4.4.0/PKG-INFO     2022-12-06 14:00:46.728331300 +0100
+++ new/sphinx-click-5.0.1/PKG-INFO     2023-08-17 18:59:19.087782900 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: sphinx-click
-Version: 4.4.0
+Version: 5.0.1
 Summary: Sphinx extension that automatically documents click applications
 Home-page: https://github.com/click-contrib/sphinx-click
 Author: Stephen Finucane
@@ -9,7 +9,7 @@
 Project-URL: Bug Tracker, https://github.com/click-contrib/sphinx-click/issues
 Project-URL: Documentation, https://sphinx-click.readthedocs.io/en/latest
 Project-URL: Source Code, https://github.com/click-contrib/sphinx-click
-Keywords: sphinx
+Keywords: sphinx click
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Console
 Classifier: Framework :: Sphinx :: Extension
@@ -22,7 +22,7 @@
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Topic :: Documentation
 Classifier: Topic :: Utilities
-Requires-Python: >=3.7
+Requires-Python: >=3.8
 Description-Content-Type: text/x-rst; charset=UTF-8
 License-File: LICENSE
 
@@ -68,7 +68,7 @@
    To document a Click-based application, both the application itself and any
    additional dependencies required by that application **must be installed**.
 
-Enable the plugin in your Sphinx ``conf.py``` file:
+Enable the plugin in your Sphinx ``conf.py`` file:
 
 .. code-block:: python
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/README.rst 
new/sphinx-click-5.0.1/README.rst
--- old/sphinx-click-4.4.0/README.rst   2022-12-06 14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/README.rst   2023-08-17 18:59:08.000000000 +0200
@@ -40,7 +40,7 @@
    To document a Click-based application, both the application itself and any
    additional dependencies required by that application **must be installed**.
 
-Enable the plugin in your Sphinx ``conf.py``` file:
+Enable the plugin in your Sphinx ``conf.py`` file:
 
 .. code-block:: python
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/docs/conf.py 
new/sphinx-click-5.0.1/docs/conf.py
--- old/sphinx-click-4.4.0/docs/conf.py 2022-12-06 14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/docs/conf.py 2023-08-17 18:59:08.000000000 +0200
@@ -19,9 +19,6 @@
 # ones.
 extensions = ['sphinx_click']
 
-# Add any paths that contain templates here, relative to this directory.
-templates_path = []
-
 # The suffix(es) of source filenames.
 # You can specify multiple suffix as a list of string:
 #
@@ -63,10 +60,3 @@
 # a list of builtin themes.
 #
 html_theme = 'alabaster'
-
-
-# -- Options for manual page output ---------------------------------------
-
-# One entry per manual page. List of tuples
-# (source start file, name, description, authors, manual section).
-man_pages = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/docs/usage.rst 
new/sphinx-click-5.0.1/docs/usage.rst
--- old/sphinx-click-4.4.0/docs/usage.rst       2022-12-06 14:00:28.000000000 
+0100
+++ new/sphinx-click-5.0.1/docs/usage.rst       2023-08-17 18:59:08.000000000 
+0200
@@ -92,6 +92,38 @@
   __ https://github.com/sphinx-doc/sphinx/issues/880
 
 
+Docstring processing
+--------------------
+
+*sphinx-click* provides the following additional events:
+
+.. py:function:: sphinx-click-process-description(app, ctx, lines)
+.. py:function:: sphinx-click-process-usage(app, ctx, lines)
+.. py:function:: sphinx-click-process-options(app, ctx, lines)
+.. py:function:: sphinx-click-process-arguments(app, ctx, lines)
+.. py:function:: sphinx-click-process-envvars(app, ctx, lines)
+.. py:function:: sphinx-click-process-epilog(app, ctx, lines)
+
+   :param app: the Sphinx application object
+   :param ctx: the ``click.Context`` object used to generate the description
+   :param lines: the lines of the documentation, see below
+
+Events are emitted when sphinx-click has read and processed part of a
+command's documentation. *lines* is a list of strings -- the lines of the
+documentation that was processed -- that the event handler can
+modify **in place** to change what Sphinx puts into the output.
+
+.. code-block:: python
+
+    def process_description(app, ctx, lines):
+        """Append some text to the "example" command description."""
+        if ctx.command.name == "example":
+            lines.extend(["Hello, World!", ""])
+
+    def setup(app):
+        app.connect("sphinx-click-process-description", process_description)
+
+
 Example
 -------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sphinx-click-4.4.0/examples/commandcollections/cli.py 
new/sphinx-click-5.0.1/examples/commandcollections/cli.py
--- old/sphinx-click-4.4.0/examples/commandcollections/cli.py   2022-12-06 
14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/examples/commandcollections/cli.py   2023-08-17 
18:59:08.000000000 +0200
@@ -13,26 +13,31 @@
 
 
 @main.command(help='CMD 1')
-def cmd1():
+def cmd1() -> None:
     print('call cmd 1')
 
 
-helpers = click.Group(name='Helper Commands', help="Helper commands for 
``cli``.")
+helpers = click.Group(
+    name='Helper Commands',
+    help="Helper commands for ``cli``.",
+)
 
 
 @helpers.command()
-def cmd2():
+def cmd2() -> None:
     "Helper command that has no option."
     pass
 
 
 @helpers.command()
 @click.option('--user', type=str)
-def cmd3(user):
+def cmd3(user: str) -> None:
     "Helper command with an option."
     pass
 
 
 cli = click.CommandCollection(
-    name='cli', sources=[main, helpers], help='Some general info on ``cli``.'
+    name='cli',
+    sources=[main, helpers],
+    help='Some general info on ``cli``.',
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/examples/commands/cli.py 
new/sphinx-click-5.0.1/examples/commands/cli.py
--- old/sphinx-click-4.4.0/examples/commands/cli.py     2022-12-06 
14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/examples/commands/cli.py     2023-08-17 
18:59:08.000000000 +0200
@@ -22,6 +22,12 @@
     help='A boolean flag',
 )
 @click.argument('ARG', envvar='ARG')
-def cli(bar):
+def cli(
+    param: str,
+    another: str,
+    choice: str,
+    numeric_choice: int,
+    flag: bool,
+) -> None:
     """A sample command."""
     pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/examples/groups/cli.py 
new/sphinx-click-5.0.1/examples/groups/cli.py
--- old/sphinx-click-4.4.0/examples/groups/cli.py       2022-12-06 
14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/examples/groups/cli.py       2023-08-17 
18:59:08.000000000 +0200
@@ -9,7 +9,7 @@
     is_flag=True,
     help="Output more information about what's going on.",
 )
-def cli():
+def cli(debug: bool) -> None:
     """A sample command group."""
     pass
 
@@ -17,6 +17,6 @@
 @cli.command()
 @click.option('--param', envvar='PARAM', help='A sample option')
 @click.option('--another', metavar='[FOO]', help='Another option')
-def hello():
+def hello(param: str, another: str) -> None:
     """A sample command."""
     pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sphinx-click-4.4.0/releasenotes/notes/add-event-support-e55edb86d86d1082.yaml
 
new/sphinx-click-5.0.1/releasenotes/notes/add-event-support-e55edb86d86d1082.yaml
--- 
old/sphinx-click-4.4.0/releasenotes/notes/add-event-support-e55edb86d86d1082.yaml
   1970-01-01 01:00:00.000000000 +0100
+++ 
new/sphinx-click-5.0.1/releasenotes/notes/add-event-support-e55edb86d86d1082.yaml
   2023-08-17 18:59:08.000000000 +0200
@@ -0,0 +1,17 @@
+---
+features:
+  - |
+    A number of events are now supported:
+
+    - ``sphinx-click-process-description``
+    - ``sphinx-click-process-usage``
+    - ``sphinx-click-process-options``
+    - ``sphinx-click-process-arguments``
+    - ``sphinx-click-process-envvars``
+    - ``sphinx-click-process-epilog``
+
+    These allow you to plug in to the build process for documentation and
+    post-process the generated command documentation. For more information,
+    refer to the `documentation`__.
+
+    .. __: 
https://sphinx-click.readthedocs.io/en/latest/usage/#docstring-processing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/sphinx-click-4.4.0/releasenotes/notes/drop-python-3-7-support-3d3cab951fc6ae82.yaml
 
new/sphinx-click-5.0.1/releasenotes/notes/drop-python-3-7-support-3d3cab951fc6ae82.yaml
--- 
old/sphinx-click-4.4.0/releasenotes/notes/drop-python-3-7-support-3d3cab951fc6ae82.yaml
     1970-01-01 01:00:00.000000000 +0100
+++ 
new/sphinx-click-5.0.1/releasenotes/notes/drop-python-3-7-support-3d3cab951fc6ae82.yaml
     2023-08-17 18:59:08.000000000 +0200
@@ -0,0 +1,4 @@
+---
+upgrade:
+  - |
+    Python 3.7 is no longer supported as it has reached end-of-life.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/setup.cfg 
new/sphinx-click-5.0.1/setup.cfg
--- old/sphinx-click-4.4.0/setup.cfg    2022-12-06 14:00:46.728331300 +0100
+++ new/sphinx-click-5.0.1/setup.cfg    2023-08-17 18:59:19.087782900 +0200
@@ -24,8 +24,8 @@
        Programming Language :: Python :: 3 :: Only
        Topic :: Documentation
        Topic :: Utilities
-python_requires = >=3.7
-keywords = sphinx
+python_requires = >=3.8
+keywords = sphinx click
 
 [files]
 packages = 
@@ -42,11 +42,14 @@
 show_column_numbers = true
 show_error_context = true
 ignore_missing_imports = true
-follow_imports = skip
 check_untyped_defs = true
 warn_unused_ignores = true
 warn_return_any = true
-strict_optional = false
+strict_optional = true
+exclude = (?x)(
+       docs/.* \
+       | tests/.*
+       )
 
 [egg_info]
 tag_build = 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/sphinx_click/ext.py 
new/sphinx-click-5.0.1/sphinx_click/ext.py
--- old/sphinx-click-4.4.0/sphinx_click/ext.py  2022-12-06 14:00:28.000000000 
+0100
+++ new/sphinx-click-5.0.1/sphinx_click/ext.py  2023-08-17 18:59:08.000000000 
+0200
@@ -1,4 +1,5 @@
 import inspect
+import functools
 import re
 import traceback
 import typing as ty
@@ -24,6 +25,23 @@
 
 ANSI_ESC_SEQ_RE = re.compile(r'\x1B\[\d+(;\d+){0,2}m', flags=re.MULTILINE)
 
+_T_Formatter = ty.Callable[[click.Context], ty.Generator[str, None, None]]
+
+
+def _process_lines(event_name: str) -> ty.Callable[[_T_Formatter], 
_T_Formatter]:
+    def decorator(func: _T_Formatter) -> _T_Formatter:
+        @functools.wraps(func)
+        def process_lines(ctx: click.Context) -> ty.Generator[str, None, None]:
+            lines = list(func(ctx))
+            if "sphinx-click-env" in ctx.meta:
+                ctx.meta["sphinx-click-env"].app.events.emit(event_name, ctx, 
lines)
+            for line in lines:
+                yield line
+
+        return process_lines
+
+    return decorator
+
 
 def _indent(text: str, level: int = 1) -> str:
     prefix = ' ' * (4 * level)
@@ -123,6 +141,7 @@
     yield ''
 
 
+@_process_lines("sphinx-click-process-description")
 def _format_description(ctx: click.Context) -> ty.Generator[str, None, None]:
     """Format the description for a given `click.Command`.
 
@@ -134,6 +153,7 @@
         yield from _format_help(help_string)
 
 
+@_process_lines("sphinx-click-process-usage")
 def _format_usage(ctx: click.Context) -> ty.Generator[str, None, None]:
     """Format the usage for a `click.Command`."""
     yield '.. code-block:: shell'
@@ -163,6 +183,7 @@
             yield _indent(line)
 
 
+@_process_lines("sphinx-click-process-options")
 def _format_options(ctx: click.Context) -> ty.Generator[str, None, None]:
     """Format all `click.Option` for a `click.Command`."""
     # the hidden attribute is part of click 7.x only hence use of getattr
@@ -189,6 +210,7 @@
     )
 
 
+@_process_lines("sphinx-click-process-arguments")
 def _format_arguments(ctx: click.Context) -> ty.Generator[str, None, None]:
     """Format all `click.Argument` for a `click.Command`."""
     params = [x for x in ctx.command.params if isinstance(x, click.Argument)]
@@ -216,6 +238,7 @@
     yield _indent('Provide a default for :option:`{}`'.format(param_ref))
 
 
+@_process_lines("sphinx-click-process-envars")
 def _format_envvars(ctx: click.Context) -> ty.Generator[str, None, None]:
     """Format all envvars for a `click.Command`."""
 
@@ -255,6 +278,7 @@
             yield _indent(line)
 
 
+@_process_lines("sphinx-click-process-epilog")
 def _format_epilog(ctx: click.Context) -> ty.Generator[str, None, None]:
     """Format the epilog for a given `click.Command`.
 
@@ -379,7 +403,6 @@
 
 
 class ClickDirective(rst.Directive):
-
     has_content = False
     required_arguments = 1
     option_spec = {
@@ -467,6 +490,7 @@
         source_name = ctx.command_path
         result = statemachine.ViewList()
 
+        ctx.meta["sphinx-click-env"] = self.env
         if semantic_group:
             lines = _format_description(ctx)
         else:
@@ -540,6 +564,13 @@
 def setup(app: application.Sphinx) -> ty.Dict[str, ty.Any]:
     app.add_directive('click', ClickDirective)
 
+    app.add_event("sphinx-click-process-description")
+    app.add_event("sphinx-click-process-usage")
+    app.add_event("sphinx-click-process-options")
+    app.add_event("sphinx-click-process-arguments")
+    app.add_event("sphinx-click-process-envvars")
+    app.add_event("sphinx-click-process-epilog")
+
     return {
         'parallel_read_safe': True,
         'parallel_write_safe': True,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/sphinx_click.egg-info/PKG-INFO 
new/sphinx-click-5.0.1/sphinx_click.egg-info/PKG-INFO
--- old/sphinx-click-4.4.0/sphinx_click.egg-info/PKG-INFO       2022-12-06 
14:00:46.000000000 +0100
+++ new/sphinx-click-5.0.1/sphinx_click.egg-info/PKG-INFO       2023-08-17 
18:59:19.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: sphinx-click
-Version: 4.4.0
+Version: 5.0.1
 Summary: Sphinx extension that automatically documents click applications
 Home-page: https://github.com/click-contrib/sphinx-click
 Author: Stephen Finucane
@@ -9,7 +9,7 @@
 Project-URL: Bug Tracker, https://github.com/click-contrib/sphinx-click/issues
 Project-URL: Documentation, https://sphinx-click.readthedocs.io/en/latest
 Project-URL: Source Code, https://github.com/click-contrib/sphinx-click
-Keywords: sphinx
+Keywords: sphinx click
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Console
 Classifier: Framework :: Sphinx :: Extension
@@ -22,7 +22,7 @@
 Classifier: Programming Language :: Python :: 3 :: Only
 Classifier: Topic :: Documentation
 Classifier: Topic :: Utilities
-Requires-Python: >=3.7
+Requires-Python: >=3.8
 Description-Content-Type: text/x-rst; charset=UTF-8
 License-File: LICENSE
 
@@ -68,7 +68,7 @@
    To document a Click-based application, both the application itself and any
    additional dependencies required by that application **must be installed**.
 
-Enable the plugin in your Sphinx ``conf.py``` file:
+Enable the plugin in your Sphinx ``conf.py`` file:
 
 .. code-block:: python
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/sphinx_click.egg-info/SOURCES.txt 
new/sphinx-click-5.0.1/sphinx_click.egg-info/SOURCES.txt
--- old/sphinx-click-4.4.0/sphinx_click.egg-info/SOURCES.txt    2022-12-06 
14:00:46.000000000 +0100
+++ new/sphinx-click-5.0.1/sphinx_click.egg-info/SOURCES.txt    2023-08-17 
18:59:19.000000000 +0200
@@ -27,6 +27,8 @@
 examples/commands/cli.py
 examples/groups/cli.py
 releasenotes/notes/add-auto_envvar_prefix-support-a08e68aba792ee26.yaml
+releasenotes/notes/add-event-support-e55edb86d86d1082.yaml
+releasenotes/notes/drop-python-3-7-support-3d3cab951fc6ae82.yaml
 releasenotes/notes/python-3.11-support-64013e70ae9926f4.yaml
 sphinx_click/__init__.py
 sphinx_click/ext.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/sphinx_click.egg-info/pbr.json 
new/sphinx-click-5.0.1/sphinx_click.egg-info/pbr.json
--- old/sphinx-click-4.4.0/sphinx_click.egg-info/pbr.json       2022-12-06 
14:00:46.000000000 +0100
+++ new/sphinx-click-5.0.1/sphinx_click.egg-info/pbr.json       2023-08-17 
18:59:19.000000000 +0200
@@ -1 +1 @@
-{"git_version": "0b81d33", "is_release": false}
\ No newline at end of file
+{"git_version": "620ce83", "is_release": false}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/tests/conftest.py 
new/sphinx-click-5.0.1/tests/conftest.py
--- old/sphinx-click-4.4.0/tests/conftest.py    2022-12-06 14:00:28.000000000 
+0100
+++ new/sphinx-click-5.0.1/tests/conftest.py    2023-08-17 18:59:08.000000000 
+0200
@@ -1,19 +1,29 @@
+import pathlib
 import shutil
 
+import sphinx
 import pytest
-from sphinx.testing import path
 
 # this is necessary because Sphinx isn't exposing its fixtures
 # 
https://docs.pytest.org/en/7.1.x/how-to/writing_plugins.html#requiring-loading-plugins-in-a-test-module-or-conftest-file
 pytest_plugins = ['sphinx.testing.fixtures']
 
 
+# TODO: Remove when we no longer care about Sphinx < 7.2
 @pytest.fixture
 def rootdir(tmpdir):
-    src = path.path(__file__).parent.abspath() / 'roots'
-    dst = tmpdir.join('roots')
-    shutil.copytree(src, dst)
-    roots = path.path(dst)
-    print(dst)
+    if sphinx.version_info >= (7, 2, 0):
+        src = pathlib.Path(__file__).parent.absolute().joinpath('roots')
+        dst = tmpdir.join('roots')
+        shutil.copytree(src, dst)
+        roots = pathlib.Path(dst)
+    else:
+        from sphinx.testing import path
+
+        src = path.path(__file__).parent.abspath() / 'roots'
+        dst = tmpdir.join('roots')
+        shutil.copytree(src, dst)
+        roots = path.path(dst)
+
     yield roots
     shutil.rmtree(dst)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sphinx-click-4.4.0/tox.ini 
new/sphinx-click-5.0.1/tox.ini
--- old/sphinx-click-4.4.0/tox.ini      2022-12-06 14:00:28.000000000 +0100
+++ new/sphinx-click-5.0.1/tox.ini      2023-08-17 18:59:08.000000000 +0200
@@ -26,16 +26,9 @@
 
 [testenv:style]
 deps =
-    flake8
+    pre-commit
 commands =
-    flake8 {toxinidir}/sphinx_click/
-
-[testenv:mypy]
-deps =
-    mypy
-    types-docutils
-commands =
-    mypy sphinx_click
+    pre-commit run --all-files --show-diff-on-failure
 
 [testenv:docs]
 commands =

Reply via email to