Accepting request 328796 from home:TheBlackCat:branches:devel:languages:python

Disable tests to avoid dependency loop

OBS-URL: https://build.opensuse.org/request/show/328796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=9
This commit is contained in:
Todd R 2015-09-03 12:32:11 +00:00 committed by Git OBS Bridge
parent af6bcf74ff
commit b4ea8dfb81
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 3 12:28:13 UTC 2015 - toddrme2178@gmail.com
- Disable tests to avoid dependency loop
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 15 11:55:03 UTC 2015 - benoit.monin@gmx.fr Fri May 15 11:55:03 UTC 2015 - benoit.monin@gmx.fr

View File

@ -29,12 +29,12 @@ BuildRequires: python-setuptools
# Documentation requirements: # Documentation requirements:
BuildRequires: python-Sphinx BuildRequires: python-Sphinx
BuildRequires: python-repoze.sphinx.autointerface BuildRequires: python-repoze.sphinx.autointerface
# Test result in a dependency loop
# Test requirements: # Test requirements:
BuildRequires: python-six # BuildRequires: python-six
BuildRequires: python-zope.interface # BuildRequires: python-zope.interface
BuildRequires: python-zope.testrunner # BuildRequires: python-zope.testrunner
Requires: python-zope.interface Requires: python-zope.interface
Requires: python-zope.testrunner
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@ -64,11 +64,12 @@ PYTHONPATH=$(pwd)/build/lib python setup.py build_sphinx && rm build/sphinx/html
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Test result in a dependency loop
#NOTE(saschpe): Tests are self-referential, i.e. move to sperarate spec file #NOTE(saschpe): Tests are self-referential, i.e. move to sperarate spec file
#NOTE(frispete): run tests against source in order to avoid the need for an #NOTE(frispete): run tests against source in order to avoid the need for an
# external test package # external test package
%check # %check
PYTHONPATH=$(pwd)/src python setup.py -q test # PYTHONPATH=$(pwd)/src python setup.py -q test
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)