Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12105

pytest help needed

Path csiph.com!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject pytest help needed
Date Wed, 04 Dec 2019 19:30:01 +0100
Message-ID <z9Hzr-6Ih-9@gated-at.bofh.it> (permalink)
X-Original-To Debian Python <debian-python@lists.debian.org>, 938009@bugs.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Dec 4 18:25:14 2019
Old-Return-Path <andreas@an3as.eu>
X-Amavis-Spam-Status No, score=-4.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, MEDS2=2, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/17701
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20191204182500.GE5043@an3as.eu
Approved robomod@news.nic.it
Lines 54
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 4 Dec 2019 19:25:00 +0100
X-Original-Message-ID <20191204182500.GE5043@an3as.eu>
Xref csiph.com linux.debian.maint.python:12105 linux.debian.bugs.dist:986071

Cross-posted to 2 groups.

Show key headers only | View raw


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

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

pytest help needed Andreas Tille <andreas@an3as.eu> - 2019-12-04 19:30 +0100
  Re: pytest help needed Andrey Rahmatullin <wrar@debian.org> - 2019-12-04 19:30 +0100
  Re: pytest help needed Scott Talbert <swt@techie.net> - 2019-12-04 19:40 +0100

csiph-web