[packages/python3-poetry-core] Initial
arekm
arekm at pld-linux.org
Sat Feb 8 22:02:17 CET 2025
commit 150dcb52ab76005394b24b74e31584834b7d42de
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 8 21:56:27 2025 +0100
Initial
python3-poetry-core.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/python3-poetry-core.spec b/python3-poetry-core.spec
new file mode 100644
index 0000000..646c8e5
--- /dev/null
+++ b/python3-poetry-core.spec
@@ -0,0 +1,58 @@
+# Conditional build:
+%bcond_without tests # unit tests
+
+%define module poetry-core
+Summary: Poetry PEP 517 Build Backend
+Name: python3-%{module}
+Version: 2.0.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+Source0: https://pypi.debian.net/%{module}/poetry_core-%{version}.tar.gz
+# Source0-md5: 799f582e2644e6c2c7865498f3b37394
+URL: https://pypi.org/project/poetry/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.2
+%if %{with tests}
+#BuildRequires: python3-
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.2
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A PEP 517 build backend implementation developed for Poetry. This
+project is intended to be a lightweight, fully compliant,
+self-contained package allowing PEP 517-compatible build frontends to
+build Poetry-managed projects.
+
+%prep
+%setup -q -n poetry_core-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=mocker \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/poetry/core
+%{py3_sitescriptdir}/poetry_core-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-poetry-core.git/commitdiff/150dcb52ab76005394b24b74e31584834b7d42de
More information about the pld-cvs-commit
mailing list