]> git.pld-linux.org Git - packages/python-eventlet.git/commitdiff
- adjusted enum34 dependency removal for older setuptools auto/th/python-eventlet-0.23.0-2
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 31 Jul 2018 03:56:13 +0000 (05:56 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 31 Jul 2018 03:56:13 +0000 (05:56 +0200)
- fixed tests command, but some of them fail, so disable by default
- release 2

python-eventlet.spec

index 20181508b4b62e9e6bb273772b4cd06177315f18..109c91b879884f0b1742d712eda91fa653fb5ed0 100644 (file)
@@ -1,7 +1,8 @@
+# TODO: fix tests
 #
 # Conditional build:
 %bcond_without doc             # Sphinx documentation
-%bcond_without tests           # unit tests
+%bcond_with    tests           # unit tests (some failures as of 0.23.0)
 %bcond_without python2         # CPython 2.x module
 %bcond_without python3         # CPython 3.x module
 
@@ -9,7 +10,7 @@ Summary:       Highly concurrent networking library for Python 2
 Summary(pl.UTF-8):     Biblioteka sieciowa o dużym stopniu zrównoleglenia dla Pythona 2
 Name:          python-eventlet
 Version:       0.23.0
-Release:       1
+Release:       2
 License:       MIT
 Group:         Development/Languages/Python
 #Source0Download: https://pypi.org/simple/eventlet/
@@ -114,18 +115,25 @@ Dokumentacja API modułu eventlet.
 %if %{with python2}
 %py_build
 
-%{?with_tests:PYTHONPATH=$(pwd) %{__python} -m unittest tests}
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+nosetests-%{py_ver} tests
+%edif
 %endif
 
 %if %{with python3}
 %py3_build
 
-%{?with_tests:PYTHONPATH=$(pwd) %{__python3} -m unittest tests}
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+nosetests-%{py3_ver} tests
+%edif
 %endif
 
 %if %{with doc}
+PYTHONPATH=$(pwd) \
 %{__make} -C doc -j1 html
-%endifg
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -140,7 +148,10 @@ rm -rf $RPM_BUILD_ROOT
 %py3_install
 
 %if "%{py3_ver}" >= "3.4"
-%{__sed} -i -e '/^\[:python_version *< *"3\.4"]/,$ d' $RPM_BUILD_ROOT%{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info/requires.txt
+# don't require enum34 on python >= 3.4 (different forms depending on setuptools version)
+%{__sed} -i -e '/^\[:python_version *< *"3\.4"]/,$ d' \
+       -e '/^enum34;python_version<"3\.4"/d' $RPM_BUILD_ROOT%{py3_sitescriptdir}/eventlet-%{version}-py*.egg-info/requires.txt
+%endif
 %endif
 
 %clean
This page took 0.115485 seconds and 4 git commands to generate.