Skip to content

Commit fa7af3c

Browse files
Upgrade mock to 6.7 and add dependent package argparse-manpage version 4.7 (microsoft#17112) (microsoft#17711)
1 parent 34fb472 commit fa7af3c

10 files changed

Lines changed: 211 additions & 125 deletions

File tree

LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSES-AND-NOTICES/SPECS/data/licenses.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"annobin",
5656
"ansible-freeipa",
5757
"archivemount",
58+
"argparse-manpage",
5859
"arptables",
5960
"arpwatch",
6061
"asio",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Signatures": {
3+
"argparse_manpage-4.7.tar.gz": "1deab76b212ac8753cbb67b9d2d2bc0949bbc338bb1cc3547f0890cb34108b32"
4+
}
5+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
%global pip_module_name argparse_manpage
2+
3+
Name: argparse-manpage
4+
Version: 4.7
5+
Release: 1%{?dist}
6+
Summary: Build manual page from Python ArgumentParser object
7+
BuildArch: noarch
8+
9+
License: Apache-2.0
10+
URL: https://github.com/praiskup/%{name}
11+
Vendor: Microsoft Corporation
12+
Distribution: Azure Linux
13+
Source0: %{pypi_source %{pip_module_name}}
14+
15+
BuildRequires: python3-devel
16+
BuildRequires: pyproject-rpm-macros
17+
BuildRequires: python3-pip
18+
BuildRequires: python3-wheel
19+
BuildRequires: python3-tomli
20+
BuildRequires: python3-pytest
21+
22+
Requires: python3-%{name} = %{version}-%{release}
23+
24+
%description
25+
Generate manual page an automatic way from ArgumentParser object, so the
26+
manpage 1:1 corresponds to the automatically generated --help output. The
27+
manpage generator needs to known the location of the object, user can
28+
specify that by (a) the module name or corresponding python filename and
29+
(b) the object name or the function name which returns the object.
30+
There is a limited support for (deprecated) optparse objects, too.
31+
32+
33+
%package -n python3-%{name}
34+
Summary: Build manual page from Python 3 ArgumentParser object
35+
36+
%description -n python3-%{name}
37+
Generate manual page an automatic way from ArgumentParser object, so the
38+
manpage 1:1 corresponds to the automatically generated --help output. The
39+
manpage generator needs to known the location of the object, user can
40+
specify that by (a) the module name or corresponding python filename and
41+
(b) the object name or the function name which returns the object.
42+
There is a limited support for (deprecated) optparse objects, too.
43+
44+
45+
%pyproject_extras_subpkg -n python3-%{name} setuptools
46+
47+
48+
%prep
49+
%autosetup -n %{pip_module_name}-%{version}
50+
51+
%generate_buildrequires
52+
%pyproject_buildrequires
53+
54+
55+
%build
56+
%pyproject_wheel
57+
58+
59+
%install
60+
%pyproject_install
61+
62+
63+
%check
64+
# Disable pip build isolation to make the tests work in offline environment
65+
# Fixes https://bugzilla.redhat.com/2417959
66+
export PIP_NO_BUILD_ISOLATION=0
67+
%pytest -vv
68+
69+
70+
%files
71+
%license LICENSE
72+
%{_bindir}/argparse-manpage
73+
%{_mandir}/man1/argparse-manpage.1.*
74+
%{python3_sitelib}/argparse_manpage/cli.py
75+
76+
77+
%files -n python3-%{name}
78+
%license LICENSE
79+
%{python3_sitelib}/build_manpages
80+
%{python3_sitelib}/argparse_manpage
81+
%{python3_sitelib}/argparse_manpage-*dist-info
82+
%exclude %{python3_sitelib}/argparse_manpage/cli.py
83+
84+
85+
%changelog
86+
* Fri May 08 2026 Sandeep Karambelkar <skarambelkar@microsoft.com> - 4.7-1
87+
- Initial Azure Linux import from Fedora 44 (license: MIT)
88+
- License Verified

SPECS/mock/disable-copying-ca-trust-dirs.patch

Lines changed: 0 additions & 88 deletions
This file was deleted.

SPECS/mock/mock.signatures.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"mock-5.6.tar.gz": "0a902c1b89667e9653664487bfa7f9acfcb8f55ba9d64a021058cec40144697d"
3+
"mock-6.7.tar.gz": "1186262d5015a4ecd609ee5cf9082e94d974fff0c1e6ec57eadc68a545e11749"
44
}
5-
}
5+
}

0 commit comments

Comments
 (0)