[packages/python3-hatch-nodejs-version] - updated to 0.4.0

qboosh qboosh at pld-linux.org
Mon Nov 17 05:43:23 CET 2025


commit 1114ac5439c5a12e1e63f93112b61b4c19069e5e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 17 05:43:20 2025 +0100

    - updated to 0.4.0

 python3-hatch-nodejs-version.spec | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)
---
diff --git a/python3-hatch-nodejs-version.spec b/python3-hatch-nodejs-version.spec
index bcb4225..15dec48 100644
--- a/python3-hatch-nodejs-version.spec
+++ b/python3-hatch-nodejs-version.spec
@@ -1,32 +1,48 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
 Summary:	Hatch plugin for versioning from a package.json file
+Summary(pl.UTF-8):	Wtyczka Hatcha do wersjonowania z pliku package.json
 Name:		python3-hatch-nodejs-version
-Version:	0.3.2
+Version:	0.4.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/hatch-nodejs-version/
 Source0:	https://files.pythonhosted.org/packages/source/h/hatch_nodejs_version/hatch_nodejs_version-%{version}.tar.gz
-# Source0-md5:	05f979219e2e46d3f6232f0872d9c21f
+# Source0-md5:	e03e39d064a7832419bde48fb8589d63
 URL:		https://github.com/agoose77/hatch-nodejs-version
 BuildRequires:	python3 >= 1:3.7
 BuildRequires:	python3-build
-BuildRequires:	python3-hatchling
+BuildRequires:	python3-hatchling >= 0.21.0
 BuildRequires:	python3-installer
-BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-modules >= 1:3.9
+%if %{with tests}
+BuildRequires:	python3-pytest >= 7.0
+%endif
 BuildRequires:	rpmbuild(macros) >= 2.044
-Requires:	python3-modules >= 1:3.7
+Requires:	python3-modules >= 1:3.9
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Hatch plugin for versioning from a package.json file.
 
+%description -l pl.UTF-8
+Wtyczka Hatcha do wersjonowania z pliku package.json.
+
 %prep
 %setup -q -n hatch_nodejs_version-%{version}
 
 %build
 %py3_build_pyproject
 
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hatch-nodejs-version.git/commitdiff/1114ac5439c5a12e1e63f93112b61b4c19069e5e




More information about the pld-cvs-commit mailing list