[packages/python3-hatch_fancy_pypi_readme] Initial

arekm arekm at pld-linux.org
Fri Feb 7 18:50:29 CET 2025


commit 85989eac957fb3a862c8ba29bd2a5818315551e5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Feb 7 18:27:15 2025 +0100

    Initial

 python3-hatch_fancy_pypi_readme.spec | 66 ++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/python3-hatch_fancy_pypi_readme.spec b/python3-hatch_fancy_pypi_readme.spec
new file mode 100644
index 0000000..5fff5ca
--- /dev/null
+++ b/python3-hatch_fancy_pypi_readme.spec
@@ -0,0 +1,66 @@
+# Conditional build:
+%bcond_with	tests	# unit tests
+
+%define		module	 hatch_fancy_pypi_readme
+Summary:	Fancy PyPI READMEs with Hatch
+Name:		python3-%{module}
+Version:	24.1.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/hatch_fancy_pypi_readme/%{module}-%{version}.tar.gz
+# Source0-md5:	f5f9e639f066c91f8e623ec6231beae9
+URL:		https://pypi.org/project/hatch-fancy-pypi-readme/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.2
+%if %{with tests}
+#BuildRequires:	python3-
+%endif
+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
+Your ✨Fancy✨ Project Deserves a ✨Fancy✨ PyPI Readme!
+
+%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
+%{__python3} -m build --wheel --no-isolation --outdir build-3
+
+%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
+
+%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 AUTHORS.md CHANGELOG.md README.md
+%attr(755,root,root) %{_bindir}/hatch-fancy-pypi-readme
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hatch_fancy_pypi_readme.git/commitdiff/85989eac957fb3a862c8ba29bd2a5818315551e5



More information about the pld-cvs-commit mailing list