On Wed, 4 Dec 2019, Andreas Tille wrote:


I try to prepare the latest git commit from upstream of python-pbcore[1].
Unfortunately the build time test fails with:

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'
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 
 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:

markers =
   pbtestdata: requires the 'PacBioTestData' package to be installed
   internal_data: requires access to internal data on 
   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?

I think you also need pytest plugins xdist and cov (Debian packages python3-pytest-xdist and python3-pytest-cov).


Reply via email to