[Debian-med-packaging] Bug#938009: pytest help needed
Andreas Tille
andreas at an3as.eu
Wed Dec 4 18:25:00 GMT 2019
Hi,
I try to prepare the latest git commit from upstream of python-pbcore[1].
Unfortunately the build time test fails with:
...
dh_auto_test
I: pybuild base:217: python3.8 setup.py test
running pytest
running egg_info
writing pbcore.egg-info/PKG-INFO
writing dependency_links to pbcore.egg-info/dependency_links.txt
writing entry points to pbcore.egg-info/entry_points.txt
writing requirements to pbcore.egg-info/requires.txt
writing top-level names to pbcore.egg-info/top_level.txt
reading manifest file 'pbcore.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'test_requires'
warnings.warn(msg)
warning: no files found matching '*.txt'
writing manifest file 'pbcore.egg-info/SOURCES.txt'
running build_ext
ERROR: usage: setup.py [options] [file_or_dir] [file_or_dir] [...]
setup.py: error: unrecognized arguments: -n --dist=loadscope --cov=./pbcore --cov-report=xml:coverage.xml
inifile: /build/python-pbcore-1.7.1+git20191121.7947eb7+dfsg/pytest.ini
rootdir: /build/python-pbcore-1.7.1+git20191121.7947eb7+dfsg
E: pybuild pybuild:341: test: plugin custom failed with: exit code=4: python3.8 setup.py test
dh_auto_test: pybuild --test --test-pytest -i python{version} -p "3.8 3.7" returned exit code 13
...
Those arguments are mentioned in pytest.ini which reads:
[pytest]
markers =
pbtestdata: requires the 'PacBioTestData' package to be installed
internal_data: requires access to internal data on '/pbi/dept/secondary/siv/testdata'
constools: requires 'pbindex', 'samtools' and 'pbmerge' in PATH
addopts =
-v -n auto --dist=loadscope --durations=20 --junitxml=nosetests.xml --cov=./pbcore --cov-report=xml:coverage.xml
Any hints what options I should use instead?
Kind regards
Andreas.
[1] https://salsa.debian.org/med-team/python-pbcore
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list