[packages/python-filelock] - updated to 3.0.12; run unit tests

qboosh qboosh at pld-linux.org
Wed Mar 4 21:15:11 CET 2020


commit d2f5553e3745d51fe8423cd819e35600bd5a9d5e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 4 21:15:59 2020 +0100

    - updated to 3.0.12; run unit tests

 python-filelock.spec | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)
---
diff --git a/python-filelock.spec b/python-filelock.spec
index 5d2c9e3..44eed33 100644
--- a/python-filelock.spec
+++ b/python-filelock.spec
@@ -2,29 +2,30 @@
 # Conditional build:
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
+%bcond_without	tests	# unit tests (250+ processes created, max processes ulimit must allow it)
 
 Summary:	A platform independent file lock
 Summary(pl.UTF-8):	Niezależne od platformy blokady plikowe
 Name:		python-filelock
-Version:	3.0.10
-Release:	2
-License:	MIT
+Version:	3.0.12
+Release:	1
+License:	Public Domain
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/filelock/
 Source0:	https://files.pythonhosted.org/packages/source/f/filelock/filelock-%{version}.tar.gz
-# Source0-md5:	df0006d2b1ec96473bfc0927de123aa6
+# Source0-md5:	c1fe6d9a7433a7ca6ce4f36e273317d1
 URL:		https://pypi.org/project/filelock/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires:	python-modules >= 1:2.5
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
+BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
 %endif
-Requires:	python-modules >= 1:2.5
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -42,7 +43,7 @@ komunikacji międzyprocesowej.
 Summary:	A platform independent file lock
 Summary(pl.UTF-8):	Niezależne od platformy blokady plikowe
 Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
+Requires:	python3-modules >= 1:3.4
 
 %description -n python3-filelock
 This package contains a single module, which implements a platform
@@ -60,10 +61,18 @@ komunikacji międzyprocesowej.
 %build
 %if %{with python2}
 %py_build
+
+%if %{with tests}
+%{__python} test.py
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
+
+%if %{with tests}
+%{__python3} test.py
+%endif
 %endif
 
 %install
@@ -85,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.rst README.rst
+%doc LICENSE README.md
 %{py_sitescriptdir}/filelock.py[co]
 %{py_sitescriptdir}/filelock-%{version}-py*.egg-info
 %endif
@@ -93,7 +102,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-filelock
 %defattr(644,root,root,755)
-%doc LICENSE.rst README.rst
+%doc LICENSE README.md
 %{py3_sitescriptdir}/filelock.py
 %{py3_sitescriptdir}/__pycache__/filelock.cpython-*.py[co]
 %{py3_sitescriptdir}/filelock-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-filelock.git/commitdiff/d2f5553e3745d51fe8423cd819e35600bd5a9d5e



More information about the pld-cvs-commit mailing list