!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:
commit
d0bd678707
BIN
docstring_parser-0.15.tar.gz
Normal file
BIN
docstring_parser-0.15.tar.gz
Normal file
Binary file not shown.
48
python-docstring-parser.spec
Normal file
48
python-docstring-parser.spec
Normal 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.
|
||||||
Loading…
x
Reference in New Issue
Block a user