17
0

9 Commits

Author SHA256 Message Date
46ddd4f195 Accepting request 1298793 from devel:languages:python
- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298793
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argparse-manpage?expand=0&rev=19
2025-08-12 15:03:23 +00:00
6b0a2629ea - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=41
2025-08-11 11:28:55 +00:00
d238ffaa93 Accepting request 1286127 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argparse-manpage?expand=0&rev=18
2025-06-18 13:53:46 +00:00
6e5dd3a898 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=39
2025-06-16 13:49:44 +00:00
2c6fffa3d6 Accepting request 1265999 from devel:languages:python
- Skip a failing test.

OBS-URL: https://build.opensuse.org/request/show/1265999
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argparse-manpage?expand=0&rev=17
2025-04-11 14:44:47 +00:00
f63930a42d - Skip a failing test.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=37
2025-04-01 03:51:42 +00:00
801530bce1 Accepting request 1235773 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1235773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-argparse-manpage?expand=0&rev=16
2025-01-09 14:05:19 +00:00
7b27e20bfe Point pip at the existing wheels directory
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=35
2025-01-08 04:04:01 +00:00
614ff56dae - Drop patch skip-pip-install.patch:
* Create a pip links directory with a wheel of setuptools, 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argparse-manpage?expand=0&rev=34
2025-01-08 03:49:37 +00:00
2 changed files with 28 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Aug 11 11:28:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Mon Jun 16 13:49:16 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Apr 1 03:51:22 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -17,6 +17,11 @@
%define mod_name argparse-manpage
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-argparse-manpage
Version: 4.6
Release: 0
@@ -24,7 +29,6 @@ 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
BuildArch: noarch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools-wheel}
@@ -32,11 +36,17 @@ BuildRequires: %{python_module setuptools}
BuildRequires: ca-certificates
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%if 0%{python_version_nodots} < 311
Requires: python-tomli
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
@@ -62,11 +72,14 @@ support for (deprecated) optparse objects, too.
%check
export PIP_NO_INDEX=1
export PIP_FIND_LINKS=$(ls -1 /usr/lib/python3.*/wheels | head -n 1)
export PIP_FIND_LINKS=$(ls -1 %{_prefix}/lib/python3.*/wheels | head -n 1)
%pytest -k 'not test_old_example_file_name'
%pre
%python_libalternatives_reset_alternative argparse-manpage
%post
%{python_install_alternative argparse-manpage argparse-manpage.1}
%python_install_alternative argparse-manpage argparse-manpage.1
%postun
%python_uninstall_alternative argparse-manpage