[packages/python3-covdefaults] Initial

arekm arekm at pld-linux.org
Sat Feb 8 18:25:18 CET 2025


commit fd171e094fb2368b96297ae753a933a737b73cda
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 8 17:59:48 2025 +0100

    Initial

 python3-covdefaults.spec | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)
---
diff --git a/python3-covdefaults.spec b/python3-covdefaults.spec
new file mode 100644
index 0000000..d765c83
--- /dev/null
+++ b/python3-covdefaults.spec
@@ -0,0 +1,49 @@
+%define		module	covdefaults
+Summary:	A coverage plugin to provide sensible default settings
+Name:		python3-%{module}
+Version:	2.3.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+Source0:	https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5:	e0b2624b75e3d4de308d690aaad2930f
+URL:		https://pypi.org/project/covdefaults/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A coverage plugin to provide sensible default settings.
+
+%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
+
+%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}.py
+%{py3_sitescriptdir}/__pycache__/%{module}*py*
+%{py3_sitescriptdir}/%{module}-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-covdefaults.git/commitdiff/fd171e094fb2368b96297ae753a933a737b73cda



More information about the pld-cvs-commit mailing list