Overview

Request 510285 accepted

Please also create link to -doc


Dirk Mueller's avatar

why splitting into a separate -doc spec file? for most other python packages we just use a regular subpackage.


Luigi Baldoni's avatar
author source maintainer

Running tests for uninstalled zope modules requires abhorrent hacks. This seemed like the cleanest solution to me.

The alternatives are as follows: 1 (which doesn't look that much solid to me):

%check %if 0%{?suse_version} <= 1320 %python_expand PYTHONPATH=$(pwd)/build/lib zope-testrunner-%{$python_version} --test-path=src -v %else %{_python_use_flavor python2} PYTHONPATH=$(pwd)/build/lib zope-testrunner-%{python2_version} --test-path=src -v %{_python_use_flavor python3} PYTHONPATH=%{buildroot}%{python3_sitelib} zope-testrunner-%{python3_version} --test-path=src -v %endif

2 (cleaner, but kinda pointless):

%check %{python_expand # this is going to be fun

create virtualenv

$python %{_bindir}/virtualenv --system-site-packages TESTROOT-%{$python_bin_suffix} . TESTROOT-%{$python_bin_suffix}/bin/activate

install package in virtualenv

TESTROOT-%{$python_bin_suffix}/bin/pip install .

run tests with virtualenv'd python

$python -m zope.testrunner --test-path=src -v

finish

deactivate }

Furthermore, doc building breaks too in some cases.

Request History
Luigi Baldoni's avatar

alois created request

Please also create link to -doc


Todd R's avatar

TheBlackCat accepted request

Thanks

openSUSE Build Service is sponsored by