[packages/python3-hatch_vcs] Initial

arekm arekm at pld-linux.org
Fri Feb 7 18:57:44 CET 2025


commit ff301d1e6d0f34d65f494f685c70f3f49630bd6d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Feb 7 18:35:10 2025 +0100

    Initial

 python3-hatch_vcs.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/python3-hatch_vcs.spec b/python3-hatch_vcs.spec
new file mode 100644
index 0000000..d949787
--- /dev/null
+++ b/python3-hatch_vcs.spec
@@ -0,0 +1,55 @@
+# Conditional build:
+%bcond_with	tests	# unit tests
+
+%define		module	 hatch_vcs
+Summary:	Hatch plugin for versioning with your preferred VCS
+Name:		python3-%{module}
+Version:	0.4.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	d801fe7c3e5955307748f2790bbb3488
+URL:		https://pypi.org/project/hatch-vcs/
+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
+This provides a plugin for Hatch that uses your preferred version
+control system (like Git) to determine project versions.
+
+%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 HISTORY.md README.md
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hatch_vcs.git/commitdiff/ff301d1e6d0f34d65f494f685c70f3f49630bd6d



More information about the pld-cvs-commit mailing list