Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #13651
| Path | csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod |
|---|---|
| From | Thomas Goirand <zigo@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: .egg-info for entry points during dh_auto_test |
| Date | Fri, 22 Oct 2021 23:30:01 +0200 |
| Message-ID | <DbagV-3UL-1@gated-at.bofh.it> (permalink) |
| References | <DaLVf-606-7@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Fri Oct 22 21:23:59 2021 |
| Old-Return-Path | <zigo@debian.org> |
| X-Amavis-Spam-Status | No, score=-7.001 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, NICE_REPLY_A=-0.001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -3.5 |
| Organization | Debian |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Language | en-US |
| Content-Transfer-Encoding | 7bit |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/19447 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/4a6c11fd-d27c-109f-bc57-37994d750382@debian.org |
| Approved | robomod@news.nic.it |
| Lines | 44 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Fri, 22 Oct 2021 23:23:20 +0200 |
| X-Original-Message-ID | <4a6c11fd-d27c-109f-bc57-37994d750382@debian.org> |
| X-Original-References | <33f3616e-50d7-93d4-4b21-ae818a6dec6f@fladi.at> |
| Xref | csiph.com linux.debian.maint.python:13651 |
Show key headers only | View raw
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 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
>
Hi Michael,
I do this in many of my packages (or a variation of this) to solve that
problem:
override_dh_install:
python3 setup.py install --install-layout=deb \
--root=$(CURDIR)/debian/tmp
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
dh_auto_test
endif
dh_install
override_dh_auto_test:
echo "Do nothing..."
I hope this helps,
Cheers,
Thomas Goirand (zigo)
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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