[packages/python3-pyproject_parser] Initial

arekm arekm at pld-linux.org
Fri Feb 7 22:07:34 CET 2025


commit 31026923ce14abc2f8ee1f82a4058882c90ec7cc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Feb 7 22:02:15 2025 +0100

    Initial

 python3-pyproject_parser.spec | 47 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
---
diff --git a/python3-pyproject_parser.spec b/python3-pyproject_parser.spec
new file mode 100644
index 0000000..b091e6c
--- /dev/null
+++ b/python3-pyproject_parser.spec
@@ -0,0 +1,47 @@
+%define		module	pyproject_parser
+Summary:	Parser for 'pyproject.toml'
+Name:		python3-%{module}
+Version:	0.11.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/pyproject-parser/pyproject-parser-%{version}.tar.gz
+# Source0-md5:	316169c265142c30cce9524cc4bcc07e
+URL:		https://pypi.org/project/pyproject_parser/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Parser for 'pyproject.toml'.
+
+%prep
+%setup -q -n pyproject-parser-%{version}
+
+sed -i -e 's#<=67.1.0,##g' pyproject.toml
+
+%build
+%{__python3} -m build --wheel --no-isolation --outdir build-3
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python3} -m installer --destdir=$RPM_BUILD_ROOT build-3/*.whl
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{_bindir}/check-pyproject
+%attr(755,root,root) %{_bindir}/pyproject-fmt
+%attr(755,root,root) %{_bindir}/pyproject-info
+%attr(755,root,root) %{_bindir}/pyproject-parser
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pyproject_parser.git/commitdiff/31026923ce14abc2f8ee1f82a4058882c90ec7cc



More information about the pld-cvs-commit mailing list