fix issue:python3.10dist(docstring-parser) >= 0.7.2 needed by python3-pdocs-1.2.0

This commit is contained in:
zhangchao13 2023-06-26 09:43:24 +08:00
parent f94d8f7dd6
commit 92bbc8ef57
2 changed files with 48 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,48 @@
%global srcname docstring-parser
Name: python-%{srcname}
Version: 0.15
Release: 1
Summary: Parse Python docstrings
License: MIT
URL: https://github.com/rr-/docstring_parser
Source0: %{pypi_source docstring_parser}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-poetry-core
%global _description %{expand:
Parse Python docstrings. Currently support ReST, Google, Numpydoc-style and Epydoc docstrings.}
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
%description -n python3-%{srcname} %{_description}
%prep
%autosetup -n docstring_parser-%{version}
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{srcname}
%defattr(-,root,root)
%license LICENSE.md
%{python3_sitelib}/docstring_parser/
%{python3_sitelib}/docstring_parser*.dist-info/
%doc README.md
%changelog
* Mon Jun 26 2023 chaozhangm <chaozhangm@isoftstone.com> - 0.15-1
- Initial package.