From 65dd978af074407f1e8939b9e9e7904f813ba293 Mon Sep 17 00:00:00 2001 From: StevenK <> Date: Apr 11 2025 17:01:04 +0000 Subject: Update python-argparse-manpage to version 4.6 / rev 17 via SR 1265999 https://build.opensuse.org/request/show/1265999 by user StevenK + anag_factory - Skip a failing test. --- diff --git a/.files b/.files index 82ef8bb..4e15a35 100644 Binary files a/.files and b/.files differ diff --git a/.rev b/.rev index f557987..4346435 100644 --- a/.rev +++ b/.rev @@ -151,4 +151,25 @@ tools. * Fix build against Python 3.13 1180149 + + 2140a64056e304bc152df13421751b96 + 4.6 + + anag+factory + - Drop patch skip-pip-install.patch: + * Point pip to the directory that setuptools-wheel uses, since that is + the only requirement for pip install with the current version of + setuptools. +- Remove unneeded Requires, limit them appropiately. +- Switch to pyproject macros. + 1235773 + + + c954e7b6e4c8a2e795fa9a8f40b42523 + 4.6 + + anag_factory + - Skip a failing test. + 1265999 + diff --git a/python-argparse-manpage.changes b/python-argparse-manpage.changes index 1e9ba51..ab361fa 100644 --- a/python-argparse-manpage.changes +++ b/python-argparse-manpage.changes @@ -1,4 +1,19 @@ ------------------------------------------------------------------- +Tue Apr 1 03:51:22 UTC 2025 - Steve Kowalik + +- Skip a failing test. + +------------------------------------------------------------------- +Wed Jan 8 04:02:24 UTC 2025 - Steve Kowalik + +- Drop patch skip-pip-install.patch: + * Point pip to the directory that setuptools-wheel uses, since that is + the only requirement for pip install with the current version of + setuptools. +- Remove unneeded Requires, limit them appropiately. +- Switch to pyproject macros. + +------------------------------------------------------------------- Wed Jun 12 09:22:52 UTC 2024 - Dirk Müller - update to 4.6: diff --git a/python-argparse-manpage.spec b/python-argparse-manpage.spec index 427b730..2b4e77c 100644 --- a/python-argparse-manpage.spec +++ b/python-argparse-manpage.spec @@ -1,7 +1,7 @@ # # spec file for package python-argparse-manpage # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,17 +24,17 @@ Summary: Tool for automatic manual page building from a Python ArgumentPa License: Apache-2.0 URL: https://github.com/praiskup/argparse-manpage Source: https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz -# PATCH-FIX-OPENSUSE Skip pip install tests until pip can behave better -Patch0: skip-pip-install.patch BuildArch: noarch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools-wheel} BuildRequires: %{python_module setuptools} BuildRequires: ca-certificates BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-setuptools +%if 0%{python_version_nodots} < 311 Requires: python-tomli +%endif Requires(post): update-alternatives Requires(postun): update-alternatives %python_subpackages @@ -52,16 +52,18 @@ support for (deprecated) optparse objects, too. %autosetup -p1 -n %{mod_name}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/argparse-manpage %python_clone -a %{buildroot}%{_mandir}/man1/argparse-manpage.1 %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +export PIP_NO_INDEX=1 +export PIP_FIND_LINKS=$(ls -1 /usr/lib/python3.*/wheels | head -n 1) +%pytest -k 'not test_old_example_file_name' %post %{python_install_alternative argparse-manpage argparse-manpage.1} @@ -70,11 +72,11 @@ support for (deprecated) optparse objects, too. %python_uninstall_alternative argparse-manpage %files %{python_files} -%doc README* +%doc README.md %license LICENSE %{python_sitelib}/argparse_manpage %{python_sitelib}/build_manpages -%{python_sitelib}/argparse_manpage-%{version}*info +%{python_sitelib}/argparse_manpage-%{version}.dist-info %python_alternative %{_bindir}/argparse-manpage %python_alternative %{_mandir}/man1/argparse-manpage.1%{?ext_man} diff --git a/skip-pip-install.patch b/skip-pip-install.patch deleted file mode 100644 index a2efdba..0000000 --- a/skip-pip-install.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: argparse-manpage-4.3/tests/test_examples.py -=================================================================== ---- argparse-manpage-4.3.orig/tests/test_examples.py -+++ argparse-manpage-4.3/tests/test_examples.py -@@ -38,6 +38,8 @@ def _rmtree(directory): - raise - - def run_pip(args): -+ # Until we can figure out how to make pip behave -+ raise unittest.SkipTest() - environ = os.environ.copy() - environ['PYTHONPATH'] = ':'.join(sys.path) - from pip import __version__