[packages/python3-pyproject_metadata] Initial

arekm arekm at pld-linux.org
Mon Feb 10 17:58:57 CET 2025


commit c4e0921c46d3ce9c5c6a59a7e20681ab62429cba
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 10 17:31:04 2025 +0100

    Initial

 python3-pyproject_metadata.spec | 85 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)
---
diff --git a/python3-pyproject_metadata.spec b/python3-pyproject_metadata.spec
new file mode 100644
index 0000000..a52bb0f
--- /dev/null
+++ b/python3-pyproject_metadata.spec
@@ -0,0 +1,85 @@
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_with		tests	# unit tests
+
+%define		module	pyproject_metadata
+Summary:	PEP 621 metadata parsing
+Name:		python3-%{module}
+Version:	0.9.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/pyproject_metadata/%{module}-%{version}.tar.gz
+# Source0-md5:	d947b3c632f4aee9cf23bb5950ac02f9
+URL:		https://pypi.org/project/pyproject-metadata/
+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
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This project does not implement the parsing of pyproject.toml
+containing PEP 621 metadata.
+
+instead, given a Python data structure representing PEP 621 metadata
+(already parsed), it will validate this input and generate a PEP
+643-compliant metadata file (e.g. PKG-INFO).
+
+%package apidocs
+Summary:	API documentation for Python %{module} module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona %{module}
+Group:		Documentation
+
+%description apidocs
+API documentation for Python %{module} module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona %{module}.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+sphinx-build-3 -b html docs docs/_build/html
+rm -rf docs/_build/html/_sources
+%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}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyproject_metadata.git/commitdiff/c4e0921c46d3ce9c5c6a59a7e20681ab62429cba



More information about the pld-cvs-commit mailing list