]> git.pld-linux.org Git - packages/python-iso8601.git/commitdiff
- updated to 0.1.12 auto/th/python-iso8601-0.1.12-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 1 Apr 2018 18:16:46 +0000 (20:16 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 1 Apr 2018 18:16:46 +0000 (20:16 +0200)
python-iso8601.spec

index 3d4dae07aa4e9cf918123a9b0fd6b8180a3116aa..0540e26d4d444373887fce3355572fbcddd1740a 100644 (file)
@@ -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
This page took 0.080584 seconds and 4 git commands to generate.