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


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

.egg-info for entry points during dh_auto_test

From Michael Fladischer <michael@fladi.at>
Newsgroups linux.debian.maint.python
Subject .egg-info for entry points during dh_auto_test
Date 2021-10-21 21:30 +0200
Message-ID <DaLVf-606-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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 unitests, it assumes that this 
registration has already happened but during dh_auto_test there is no 
.egg-info directory available. I could use "python3 setup.py develop -x" 
to generate it, but this registers the package in /usr inside the build 
chroot which I think is not the best solution.

Is there an other, less intrusive way to register the entrypoint before 
running the tests?

Thanks,
Michael

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


Thread

.egg-info for entry points during dh_auto_test Michael Fladischer <michael@fladi.at> - 2021-10-21 21:30 +0200
  Re: .egg-info for entry points during dh_auto_test Stefano Rivera <stefanor@debian.org> - 2021-10-22 05:50 +0200
    Re: .egg-info for entry points during dh_auto_test Stuart Prescott <stuart@debian.org> - 2021-10-22 09:20 +0200
    Re: .egg-info for entry points during dh_auto_test Michael Fladischer <michael@fladi.at> - 2021-10-22 16:30 +0200
  Re: .egg-info for entry points during dh_auto_test Thomas Goirand <zigo@debian.org> - 2021-10-22 23:30 +0200
  Re: .egg-info for entry points during dh_auto_test Dmitry Shachnev <mitya57@debian.org> - 2021-10-30 22:10 +0200
    Re: .egg-info for entry points during dh_auto_test Michael Fladischer <michael@fladi.at> - 2021-10-31 14:50 +0100
      Re: .egg-info for entry points during dh_auto_test Dmitry Shachnev <mitya57@debian.org> - 2021-10-31 15:20 +0100

csiph-web