]> git.pld-linux.org Git - packages/python-testscenarios.git/blobdiff - python-testscenarios.spec
- tests are passing with fixed testtools packaging (when testtools.tests.helpers...
[packages/python-testscenarios.git] / python-testscenarios.spec
index decdd6533442ed8fe09f02dd0ea4163b2aa6b226..5284b7342117db10026750e95136c85a3786d552 100644 (file)
@@ -1,4 +1,3 @@
-# TODO: why tests fail with python 2.7?
 #
 # Conditional build:
 %bcond_without tests   # make check
@@ -9,11 +8,11 @@ Summary:      Testscenarios - pyunit extension for dependency injection
 Summary(pl.UTF-8):     Testscenarios - rozszerzenie pyunit do wstrzykiwania zależności
 Name:          python-testscenarios
 Version:       0.5.0
-Release:       1
+Release:       3
 License:       Apache v2.0 or BSD
 Group:         Libraries/Python
-#Source0Download: https://pypi.python.org/simple/testscenarios/
-Source0:       https://pypi.python.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
+#Source0Download: https://pypi.org/simple/testscenarios/
+Source0:       https://files.pythonhosted.org/packages/source/t/testscenarios/testscenarios-%{version}.tar.gz
 # Source0-md5: 859073d9e7b049aee2e6704c51f6001a
 URL:           https://launchpad.net/testscenarios
 BuildRequires: rpm-pythonprov
@@ -81,14 +80,19 @@ pozwala na łatwiejsze testowanie w różnych sytuacjach).
 %if %{with python2}
 %py_build
 
-# tests fail with python 2.x - too old unittest?
-#%{?with_tests:%{__make} check PYTHON=%{__python}}
+%if %{with tests}
+%{__make} check \
+       PYTHON=%{__python}
+%endif
 %endif
 
 %if %{with python3}
 %py3_build
 
-%{?with_tests:%{__make} check PYTHON=%{__python3}}
+%if %{with tests}
+%{__make} check \
+       PYTHON=%{__python3}
+%endif
 %endif
 
 %install
This page took 0.121885 seconds and 4 git commands to generate.