On 21.3.2017 19:51, Luigi Baldoni wrote:
Luigi Baldoni wrote
I was running %python_expand %python_exec %{_bindir}/nosetests-%{$python_version}. Both this and %python_exec -m nose end with a "Unknown option s in python_expand()", while %python_expand nosetests-%{$python_bin_suffix} end with "Unknown option s in python_expand()", "Unknown option m in python_exec()" and "Unknown option m in python_expand()".
All three of the above fail a test in the form of a "UnicodeDecodeError", which wasn't originally a problem in the plain python 2.x package.
Addendum: according to the module developers, the right way to run the tests is executing either test/alltests.py or test3/alltests.py. I've tried various incarnations of %python_exec -c but I couldn't come up with a way to use the correct interpreter with the correct script.
Am I missing something or do I really need a more complex script?
Well, you have different steps for different interpreters. You'll need to do it the old way: python2 test/alltests.py python3 test3/alltests.py you could probably rename "test" to "test2" and then do something like %{python_expand NUMBER=`echo %{$python_version} | cut -c 1` $python test$NUMBER/alltests.py } But that seems pointless... if they have a separate test suite for python 2 and 3, i don't have high hopes for their suite running on pypy or something else anyway. regards m.
Regards
-- View this message in context: http://opensuse.14.x6.nabble.com/python-singlespec-how-to-convert-your-packa... Sent from the opensuse-packaging mailing list archive at Nabble.com.
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org