Enable back tests

epel9
Parag A Nemade 8 years ago
parent ae89f2fac9
commit 8f1bdf0dd0
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

@ -65,9 +65,8 @@ These approaches are used for getting info:
%setup -q -n py-%{srcname}-%{version}
rm -rf *.egg-info
#sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py
sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py
#find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
%build
%py2_build
@ -79,10 +78,8 @@ cp -p %{buildroot}/%{_bindir}/cpuinfo %{buildroot}/%{_bindir}/cpuinfo-3
%py2_install
%check
# tests are failing hence disable them, reported upstream
# https://github.com/workhorsy/py-cpuinfo/issues/53
#%{__python2} setup.py test
#%{__python3} setup.py test
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{srcname}
%doc README.rst ChangeLog

Loading…
Cancel
Save