[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pybuild: where to put --test-pytest?



Piotr Ożarowski <piotr@debian.org> writes:
> [Nikolaus Rath, 2014-03-12]
>> I'm working on a package that uses pytest. Conventiently, pybuild seems
>> to have a --test-pytest option -- but I'm completely at a loss where to
>> put it.
>> 
>> Currently my rules file looks like this:
>
> you can add this line in debian/rules:
>
>  export PYBUILD_TEST_PYTEST=1

Thanks, this seems to work (documenting this in the pybuild manpage
would be nice).

However, now I have a different problem:

It seems that pybuild tries to find the tests in some temporary
directory:

$ debuild -us -uc
[....]
make[1]: Leaving directory `ROOT/python-dugong-2.1'
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:170: cd ROOT/python-dugong-2.1/.pybuild/pythonX.Y_3.4/build; python3.4 -m pytest 
============================= test session starts ==============================
platform linux -- Python 3.4.0 -- pytest-2.5.1
collected 0 items
[...]

This is presumably because the tests are in ROOT/test, not in
ROOT/python-dugong-2.1/.pybuild/pythonX.Y_3.4/build. The latter seems to
contain only the dugong module itself.

Who/what is responsible for copying the tests in this directory? 


Thanks,
-Nikolaus

-- 
Encrypted emails preferred.
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

             »Time flies like an arrow, fruit flies like a Banana.«


Reply to: