[packages/python-configargparse] - updated to 1.5.3 (the last version before python2 support removal before 1.5.5)

qboosh qboosh at pld-linux.org
Sat May 31 14:30:33 CEST 2025


commit 8d2e6afe0c40c84f1d855221f2025874a5ecbf47
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat May 31 13:45:22 2025 +0200

    - updated to 1.5.3 (the last version before python2 support removal before 1.5.5)

 python-configargparse.spec | 35 ++++++++++++++++++++++++++++-------
 1 file changed, 28 insertions(+), 7 deletions(-)
---
diff --git a/python-configargparse.spec b/python-configargparse.spec
index 99ade12..571f3ce 100644
--- a/python-configargparse.spec
+++ b/python-configargparse.spec
@@ -1,17 +1,30 @@
+#
+# Conditional build:
+%bcond_without	tests	 # unit tests
+
 %define		module ConfigArgParse
 Summary:	A Python module with support for argparse, config files, and env variables
 Summary(pl.UTF-8):	Moduł Pythona wspomagający korzystanie z argparse, plików konfiguracyjnych i zmiennych środowiskowych
 Name:		python-configargparse
-Version:	0.13.0
-Release:	9
+# keep <1.5.4 here for python2 support
+Version:	1.5.3
+Release:	1
 License:	MIT
-Source0:	https://pypi.python.org/packages/source/C/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5:	6d3427dce78a17fb48222538f579bdb8
+#Source0Download: https://pypi.org/simple/configargparse/
+Source0:	https://files.pythonhosted.org/packages/source/C/ConfigArgParse/%{module}-%{version}.tar.gz
+# Source0-md5:	33bef8918c8946e6a9e4dcaa74eb7ab8
 Group:		Libraries/Python
 URL:		https://github.com/bw2/ConfigArgParse
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.713
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-PyYAML
+BuildRequires:	python-mock
+BuildRequires:	python-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,9 +53,17 @@ bardzo ograniczoną obsługę plików konfiguracyjnych i zmiennych
 %build
 %py_build
 
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python} -m pytest tests
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %py_install
+
 %py_postclean
 
 %clean
@@ -52,4 +73,4 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README.rst LICENSE
 %{py_sitescriptdir}/configargparse.py[co]
-%{py_sitescriptdir}/%{module}*.egg-info
+%{py_sitescriptdir}/ConfigArgParse-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-configargparse.git/commitdiff/8d2e6afe0c40c84f1d855221f2025874a5ecbf47



More information about the pld-cvs-commit mailing list