Re: RFS: q2-sample-classifier
On 02.12.20 17:22, Étienne Mollier wrote:
> Hi Steffen,
>
> Steffen Möller, on 2020-12-02 14:51:35 +0100:
>> https://salsa.debian.org/med-team/q2-sample-classifier.git/
>>
>> Well ... lintian clean, cowbuilder needs to wait for qiime,
>> please kindly cross-check to make that I have not messed anything up too
>> badly.
> As is, the build time test suite was choking on py.test, so I
> begun working on a small patch against the Makefile to rename
> this py.test-3 and build depend on "python3-pytest <!nocheck>".
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: debian/changelog
modified: debian/control
modified: debian/copyright
new file: debian/patches/py2to3test.patch
new file: debian/patches/series
modified: debian/rules
sorry, I seem to only have pushed what routine-update had done for us.
<facepalm />
> However when adding a few more test dependencies[1], I hit that
> wall, where registration of the q2 modules seems to be expected:
>
> dh_auto_test
> make -j6 test
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py.test-3
> ============================= test session starts ==============================
> platform linux -- Python 3.9.1rc1, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 0 items / 6 errors
>
> ==================================== ERRORS ====================================
> _________ ERROR collecting q2_sample_classifier/tests/test_actions.py __________
> ImportError while importing test module '/<<PKGBUILDDIR>>/q2_sample_classifier/tests/test_actions.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> q2_sample_classifier/tests/test_actions.py:13: in <module>
> from qiime2.plugins import sample_classifier
> E ImportError: cannot import name 'sample_classifier' from 'qiime2.plugins' (/usr/lib/python3/dist-packages/qiime2/plugins.py)
>
> [1] namely build time test dependencies are : python3-distutils,
> q2-types and qiime.
>
> Maybe the debian/rules will need an:
>
> override_dh_auto_test:
> # FIXME: test delayed to autopkgtest
>
> and the package will need an autopkgtest which executes
> py.test-3 on the installed module distribution, a bit similar to
> what qiime and q2-types are doing at the moment?
>
> I didn't have anything to push, I'm not sure how you would wish
> to move forward on this one.
Yes.
Thank you for pointing me to my git hickup.
Steffen
Reply to: