Re: .egg-info for entry points during dh_auto_test

2021-10-31 Thread Dmitry Shachnev
On Sun, Oct 31, 2021 at 02:40:41PM +0100, Michael Fladischer wrote: > > If no, also add this line to debian/rules: > > > > export PYBUILD_BEFORE_TEST={interpreter} setup.py egg_info > > That seems like the best/most elegant solution to me. Thanks for sharing! So > d/pybuild.testfiles is taken into

Re: .egg-info for entry points during dh_auto_test

2021-10-31 Thread Michael Fladischer
Hi Dmitry, Am 30.10.2021 um 22:04 schrieb Dmitry Shachnev: I am a bit late, but nobody in this thread mentioned debian/pybuild.testfiles. It is a list of files or directories that pybuild will copy to its build directory before running the tests, and delete after running them. If you have *.eg

Re: .egg-info for entry points during dh_auto_test

2021-10-30 Thread Dmitry Shachnev
Hi Michael! On Thu, Oct 21, 2021 at 08:55:51PM +0200, Michael Fladischer wrote: > Hi, > > I'm working on src:pytest-lazy-fixtures and was trying to get the unittests > to run but it seems that I have run into a problem that I'm not sure on how > to fix it in a clean way. > > pytest-lazy-fixtures i

Re: .egg-info for entry points during dh_auto_test

2021-10-22 Thread Thomas Goirand
On 10/21/21 8:55 PM, Michael Fladischer wrote: > Hi, > > I'm working on src:pytest-lazy-fixtures and was trying to get the > unittests to run but it seems that I have run into a problem that I'm > not sure on how to fix it in a clean way. > > pytest-lazy-fixtures is a pytest plugin and registers

Re: .egg-info for entry points during dh_auto_test

2021-10-22 Thread Michael Fladischer
Hi Stefano, Am 22.10.2021 um 05:44 schrieb Stefano Rivera: pytest also has a mechanism to register plugins through an environment variable, but I couldn't figure out how to get the test suite to work with that. thanks for this hint, that seems like a clean solution for my case: PYTEST_PLUGINS

Re: .egg-info for entry points during dh_auto_test

2021-10-22 Thread Stuart Prescott
Hi Michael I wrestled with something similar some years ago with translate-toolkit, which has a set of tests that run the binaries it ships but these (entry-points) binaries are not generated until after installation. The pybuild/debhelper sequence is to build, test then install; upstream's vie

Re: .egg-info for entry points during dh_auto_test

2021-10-21 Thread Stefano Rivera
Hi Michael (2021.10.21_18:55:51_+) > pytest-lazy-fixtures is a pytest plugin and registers itself through the > Python entrypoints mechanism. In its unitests, it assumes that this > registration has already happened but during dh_auto_test there is no > .egg-info directory available. I could us

.egg-info for entry points during dh_auto_test

2021-10-21 Thread Michael Fladischer
Hi, I'm working on src:pytest-lazy-fixtures and was trying to get the unittests to run but it seems that I have run into a problem that I'm not sure on how to fix it in a clean way. pytest-lazy-fixtures is a pytest plugin and registers itself through the Python entrypoints mechanism. In its