[packages/python-iso8601] - updated to 0.1.12

qboosh qboosh at pld-linux.org
Sun Apr 1 20:16:48 CEST 2018


commit 09f7179f1e0bfb3029a09ac0394a5a09ffb0f193
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 1 20:16:46 2018 +0200

    - updated to 0.1.12

 python-iso8601.spec | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
---
diff --git a/python-iso8601.spec b/python-iso8601.spec
index 3d4dae0..0540e26 100644
--- a/python-iso8601.spec
+++ b/python-iso8601.spec
@@ -8,21 +8,25 @@
 Summary:	Simple module to parse ISO 8601 dates
 Summary(pl.UTF-8):	Prosty moduł do analizy dat ISO 8601
 Name:		python-%{module}
-Version:	0.1.11
-Release:	2
+Version:	0.1.12
+Release:	1
 License:	MIT
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.python.org/simple/iso8601/
-Source0:	https://pypi.python.org/packages/source/i/iso8601/%{module}-%{version}.tar.gz
-# Source0-md5:	b06d11cd14a64096f907086044f0fe38
+Source0:	https://files.pythonhosted.org/packages/source/i/iso8601/%{module}-%{version}.tar.gz
+# Source0-md5:	4de940f691c5ea759fb254384c8ddcf6
 URL:		https://bitbucket.org/micktwomey/pyiso8601
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires:	python-devel >= 1:2.6
+%{?with_tests:BuildRequires:	python-pytest}
+BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
 BuildRequires:	python3-devel >= 1:3.2
+%{?with_tests:BuildRequires:	python3-pytest}
+BuildRequires:	python3-setuptools
 %endif
 Requires:	python-modules >= 1:2.6
 BuildArch:	noarch
@@ -57,11 +61,19 @@ datetime.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -mpytest iso8601/test_iso8601.py
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python} -mpytest iso8601/test_iso8601.py
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-iso8601.git/commitdiff/09f7179f1e0bfb3029a09ac0394a5a09ffb0f193



More information about the pld-cvs-commit mailing list