Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder1.feed.usenet.farm!feed.usenet.farm!aioe.org!bofh.it!news.nic.it!robomod From: Michael Fladischer Newsgroups: linux.debian.maint.python Subject: .egg-info for entry points during dh_auto_test Date: Thu, 21 Oct 2021 21:30:01 +0200 Message-ID: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Oct 21 19:22:02 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 1553 seconds by postgrey-1.36 at bendel; Thu, 21 Oct 2021 19:21:49 UTC MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Thunderbird/94.0 Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailing-List: archive/latest/19443 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/33f3616e-50d7-93d4-4b21-ae818a6dec6f@fladi.at Approved: robomod@news.nic.it Lines: 18 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 21 Oct 2021 20:55:51 +0200 X-Original-Message-ID: <33f3616e-50d7-93d4-4b21-ae818a6dec6f@fladi.at> Xref: csiph.com linux.debian.maint.python:13647 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