diff --git a/0001-change-build-backend-to-poetry-core.patch b/0001-change-build-backend-to-poetry-core.patch new file mode 100644 index 0000000..bd2c3b2 --- /dev/null +++ b/0001-change-build-backend-to-poetry-core.patch @@ -0,0 +1,25 @@ +From 39fda439cbb1830da8b35901e1bfd4a3afa0d7c5 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Sun, 18 Jun 2023 08:58:57 +0800 +Subject: [PATCH] change build-backend to poetry-core + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 67b5abd..4278188 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -39,6 +39,6 @@ logo = "art/logo.png" + name = "material" + palette = {primary = "deep purple", accent = "pink"} + [build-system] +-requires = ["poetry>=0.12"] +-build-backend = "poetry.masonry.api" ++requires = ["poetry-core>=1.0.0"] ++build-backend = "poetry.core.masonry.api" + +-- +2.33.0 + diff --git a/pdocs-1.2.0.tar.gz b/pdocs-1.2.0.tar.gz new file mode 100644 index 0000000..e15eca6 Binary files /dev/null and b/pdocs-1.2.0.tar.gz differ diff --git a/python-pdocs.spec b/python-pdocs.spec new file mode 100644 index 0000000..0df8628 --- /dev/null +++ b/python-pdocs.spec @@ -0,0 +1,51 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name pdocs + +Name: python-%{pypi_name} +Version: 1.2.0 +Release: 1 +Summary: A simple program and library to auto generate API documentation for Python modules. + +License: MIT +URL: https://github.com/timothycrosley/pdocs +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Patch1: 0001-change-build-backend-to-poetry-core.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv +BuildRequires: python3-poetry-core + +%description +A simple program and library to auto generate API documentation for Python modules. + + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +A simple program and library to auto generate API documentation for Python modules. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%license LICENSE +%{_bindir}/pdocs +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}*.dist-info/ + +%changelog +* Sun Jun 18 2023 Dongxing Wang - 1.2.0-1 +- Initial package