Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-hatch-argparse-manpage for
openSUSE:Factory checked in at 2026-10-26 10:01:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-hatch-argparse-manpage (Old)
and /work/SRC/openSUSE:Factory/.python-hatch-argparse-manpage.new.2252680
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hatch-argparse-manpage"
Mon Oct 26 10:01:08 2026 rev:2 rq:1392482 version:1.0.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-hatch-argparse-manpage/python-hatch-argparse-manpage.changes
2026-04-10 18:03:39.760217677 +0200
+++
/work/SRC/openSUSE:Factory/.python-hatch-argparse-manpage.new.2252680/python-hatch-argparse-manpage.changes
2026-10-26 10:02:34.518188295 +0100
@@ -1,0 +2,6 @@
+Sun Oct 25 16:30:39 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 1.0.2:
+ * Add skip-platforms configuration option.
+
+-------------------------------------------------------------------
Old:
----
hatch_argparse_manpage-1.0.1.tar.gz
New:
----
hatch_argparse_manpage-1.0.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hatch-argparse-manpage.spec ++++++
--- /var/tmp/diff_new_pack.locZ87/_old 2026-10-26 10:02:36.408267559 +0100
+++ /var/tmp/diff_new_pack.locZ87/_new 2026-10-26 10:02:36.412267726 +0100
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-hatch-argparse-manpage
-Version: 1.0.1
+Version: 1.0.2
Release: 0
Summary: Hatch build hook plugin to generate manual pages
License: GPL-3.0-or-later
++++++ hatch_argparse_manpage-1.0.1.tar.gz ->
hatch_argparse_manpage-1.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_argparse_manpage-1.0.1/CHANGES.md
new/hatch_argparse_manpage-1.0.2/CHANGES.md
--- old/hatch_argparse_manpage-1.0.1/CHANGES.md 2020-02-02 01:00:00.000000000
+0100
+++ new/hatch_argparse_manpage-1.0.2/CHANGES.md 2020-02-02 01:00:00.000000000
+0100
@@ -1,5 +1,9 @@
# Changelog for Hatch Argparse Manpage
+## 1.0.2 (2026-08-17)
+
+- Add skip-platforms configuration option.
+
## 1.0.1 (2026-02-19)
- Don't crash when doing quiet hatch build.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_argparse_manpage-1.0.1/PKG-INFO
new/hatch_argparse_manpage-1.0.2/PKG-INFO
--- old/hatch_argparse_manpage-1.0.1/PKG-INFO 2020-02-02 01:00:00.000000000
+0100
+++ new/hatch_argparse_manpage-1.0.2/PKG-INFO 2020-02-02 01:00:00.000000000
+0100
@@ -1,6 +1,6 @@
-Metadata-Version: 2.4
+Metadata-Version: 2.5
Name: hatch-argparse-manpage
-Version: 1.0.1
+Version: 1.0.2
Summary: Hatch build hook plugin to generate manual pages
Project-URL: Documentation,
https://github.com/damonlynch/hatch-argparse-manpage#readme
Project-URL: Issues,
https://github.com/damonlynch/hatch-argparse-manpage/issues
@@ -12,8 +12,6 @@
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Hatch
Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3.8
-Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
@@ -22,7 +20,7 @@
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Typing :: Typed
-Requires-Python: >=3.8
+Requires-Python: >=3.10
Requires-Dist: argparse-manpage
Requires-Dist: rich
Description-Content-Type: text/markdown
@@ -38,7 +36,7 @@
This provides a [build
hook](https://hatch.pypa.io/latest/config/build/#build-hooks) plugin for
[Hatch](https://github.com/pypa/hatch) to automatically generate a manual page
from an `ArgumentParser` object, using
[argparse-manpage](https://github.com/praiskup/argparse-manpage) by [Pavel
Raiskup](https://github.com/praiskup).
-**Important:** using argparse-manpage means that module imports are
unavailable at build time in your argparse script.
+**Important:** an unavoidable aspect of argparse-manpage is that module
imports are unavailable at build time in your argparse script.
**Table of Contents**
@@ -77,6 +75,8 @@
### Generating the manual page
+This plugin will do nothing unless the build target is `sdist` or `wheel`.
+
This plugin requires the directories storing the generated man pages are
within the project's base directory, and are not equal to the project's base
directory.
For example, for a project named `myproject`, and a src layout
`src/myproject`, an acceptable directory in which to store a man page would be
`man`.
@@ -96,6 +96,15 @@
### Extra options
+#### Skip Platforms
+
+This plugin makes little sense on some platforms, e.g. Windows. To skip
running this plugin on specific platforms use values from `sys.platform` in the
configuration option `skip-platforms`, e.g.:
+
+```toml
+[tool.hatch.build.hooks.argparse-manpage]
+skip-platforms = ["win32", "cygwin"]
+```
+
#### Project URLs
If a URL is not specified in the man page's build configuration, this plugin
extracts it from the `[project.urls]` section of the project's pyproject.toml:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_argparse_manpage-1.0.1/README.md
new/hatch_argparse_manpage-1.0.2/README.md
--- old/hatch_argparse_manpage-1.0.1/README.md 2020-02-02 01:00:00.000000000
+0100
+++ new/hatch_argparse_manpage-1.0.2/README.md 2020-02-02 01:00:00.000000000
+0100
@@ -9,7 +9,7 @@
This provides a [build
hook](https://hatch.pypa.io/latest/config/build/#build-hooks) plugin for
[Hatch](https://github.com/pypa/hatch) to automatically generate a manual page
from an `ArgumentParser` object, using
[argparse-manpage](https://github.com/praiskup/argparse-manpage) by [Pavel
Raiskup](https://github.com/praiskup).
-**Important:** using argparse-manpage means that module imports are
unavailable at build time in your argparse script.
+**Important:** an unavoidable aspect of argparse-manpage is that module
imports are unavailable at build time in your argparse script.
**Table of Contents**
@@ -48,6 +48,8 @@
### Generating the manual page
+This plugin will do nothing unless the build target is `sdist` or `wheel`.
+
This plugin requires the directories storing the generated man pages are
within the project's base directory, and are not equal to the project's base
directory.
For example, for a project named `myproject`, and a src layout
`src/myproject`, an acceptable directory in which to store a man page would be
`man`.
@@ -67,6 +69,15 @@
### Extra options
+#### Skip Platforms
+
+This plugin makes little sense on some platforms, e.g. Windows. To skip
running this plugin on specific platforms use values from `sys.platform` in the
configuration option `skip-platforms`, e.g.:
+
+```toml
+[tool.hatch.build.hooks.argparse-manpage]
+skip-platforms = ["win32", "cygwin"]
+```
+
#### Project URLs
If a URL is not specified in the man page's build configuration, this plugin
extracts it from the `[project.urls]` section of the project's pyproject.toml:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/hatch_argparse_manpage-1.0.1/hatch_argparse_manpage/__about__.py
new/hatch_argparse_manpage-1.0.2/hatch_argparse_manpage/__about__.py
--- old/hatch_argparse_manpage-1.0.1/hatch_argparse_manpage/__about__.py
2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_argparse_manpage-1.0.2/hatch_argparse_manpage/__about__.py
2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
-# SPDX-FileCopyrightText: 2024-2026 Damon Lynch <[email protected]>
-# SPDX-License-Identifier: GPL-3.0-or-later
-__version__ = "1.0.1"
+# SPDX-FileCopyrightText: 2024-2026 Damon Lynch <[email protected]>
+# SPDX-License-Identifier: GPL-3.0-or-later
+__version__ = "1.0.2"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/hatch_argparse_manpage-1.0.1/hatch_argparse_manpage/plugin.py
new/hatch_argparse_manpage-1.0.2/hatch_argparse_manpage/plugin.py
--- old/hatch_argparse_manpage-1.0.1/hatch_argparse_manpage/plugin.py
2020-02-02 01:00:00.000000000 +0100
+++ new/hatch_argparse_manpage-1.0.2/hatch_argparse_manpage/plugin.py
2020-02-02 01:00:00.000000000 +0100
@@ -2,20 +2,21 @@
# SPDX-License-Identifier: GPL-3.0-or-later
import re
-from email.utils import parseaddr
import shlex
import shutil
import subprocess
import sys
+from collections.abc import Iterator
+from email.utils import parseaddr
from pathlib import Path
-from typing import Any, Iterator, NamedTuple, Union
+from typing import Any, NamedTuple, Union
-import argparse_manpage.tooling # type:ignore[import-untyped]
import argparse_manpage.manpage # type:ignore[import-untyped]
+import argparse_manpage.tooling # type:ignore[import-untyped]
from hatchling.builders.hooks.plugin.interface import BuildHookInterface
from rich.console import Console
-ManpageOptions = dict[str, Union[str, list[tuple[str, str]], list[str]]]
+ManpageOptions = dict[str, str | list[tuple[str, str]] | list[str]]
class ManpageToBuildOptions(NamedTuple):
@@ -60,7 +61,7 @@
return f"[tool.hatch.build.hooks.{self.PLUGIN_NAME}]"
@staticmethod
- def _assemble_command(cmd: str) -> Union[list[str], str]:
+ def _assemble_command(cmd: str) -> list[str] | str:
if sys.platform == "win32":
return cmd
return shlex.split(cmd)
@@ -187,14 +188,12 @@
# Wrap command line values in double quotes
other_options = " ".join(
- (
- f"--{key.replace('_', '-')} \"{options[key]}\""
- for key in self.MANPAGE_OPTIONS
- if key in options and key != self.AUTHOR_PAIR
- )
+ f'--{key.replace("_", "-")} "{options[key]}"'
+ for key in self.MANPAGE_OPTIONS
+ if key in options and key != self.AUTHOR_PAIR
)
- args = " ".join([manpage, object, import_from, format, authors,
other_options])
+ args = f"{manpage} {object} {import_from} {format} {authors}
{other_options}"
# Remove extraneous whitespace before returning string
return re.sub(r"\s+", r" ", args)
@@ -479,6 +478,11 @@
if self.target_name not in ["wheel", "sdist"]:
return
+ if (
+ skip_platforms := self.config.get("skip-platforms", [])
+ ) and sys.platform in skip_platforms:
+ return
+
self.setup_console()
self.console_output(
"Building manual pages", level=1, style=self._style_level_waiting
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hatch_argparse_manpage-1.0.1/pyproject.toml
new/hatch_argparse_manpage-1.0.2/pyproject.toml
--- old/hatch_argparse_manpage-1.0.1/pyproject.toml 2020-02-02
01:00:00.000000000 +0100
+++ new/hatch_argparse_manpage-1.0.2/pyproject.toml 2020-02-02
01:00:00.000000000 +0100
@@ -7,7 +7,7 @@
dynamic = ["version"]
description = "Hatch build hook plugin to generate manual pages"
readme = "README.md"
-requires-python = ">=3.8"
+requires-python = ">=3.10"
license = "GPL-3.0-or-later"
keywords = [
"build",
@@ -27,8 +27,6 @@
"Development Status :: 5 - Production/Stable",
"Framework :: Hatch",
"Programming Language :: Python",
- "Programming Language :: Python :: 3.8",
- "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",