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

From: @zhangchao13 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2023-06-28 02:00:43 +00:00 committed by Gitee
commit d0bd678707
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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.