8 Nov
2019
8 Nov
'19
12:49
pgajdos píše v Pá 08. 11. 2019 v 12:46 +0100:
On Fri, Nov 08, 2019 at 11:16:18AM +0000, Tomas Chvatal wrote:
In there they call: coverage run example_project/manage.py test -- settings=hyperkitty.tests.settings_test {posargs:hyperkitty}
So for our needs it would be:
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python example_project/manage.py test -- settings=hyperkitty.tests.settings_test
Yes, based on tox.ini, invoking example_project/manage.py was my idea too, even if a bit different. Running literally what you are suggesting I get:
Figured out a way, but it is still failing now on DB initialization&stuff: https://build.opensuse.org/package/rdiff/devel:languages:python:mailman/python-HyperKitty?linkrev=base&rev=7 Cheers Tom