Re: PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON

Nuno Teixeira <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <CAFDf7UKYRbLS_zWrdk8L_Vk_ZGuYkMNXnop7KOQkGcF0z9Z+RQ@mail.gmail.com>
Hello Charlie,

Sorry but I didn't understanded your explanation.
What we got is that if I'll do the following changes to port:
comms/py-streamdeck, PYTEST_ARGS isn't respected:

- USES= dos2unix pytest python
+ USES= dos2unix python
- USE_PYTHON= autoplist pep517
+ USE_PYTHON= autoplist pep517 pytest
PYTEST_ARGS= test.py

Thanks,

Charlie Li <[email protected]> escreveu (quarta, 3/09/2025 à(s) 22:00):

> Nuno Teixeira wrote:
> > Hello,
> >
> > Just found that PYTEST_ARGS isn't respected when pytest is placed in
> > USE_PYTHON instead of USES. pytest.mk <http://pytest.mk> could be
> > misleading pointing its correct place in USES as I remember a big
> > discussion about it long time ago. Anyway, I see no other python port
> > using PYTEST_ARGS for comparison, I see that some ports uses pytest on
> > both places and certainly I've spoted a bug.
> >
> > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289005 <https://
> > bugs.freebsd.org/bugzilla/show_bug.cgi?id=289005>
> >
> USES=pytest should not be used in general; USE_PYTHON=pytest is the way.
> There is currently no support for ${PYTEST_ARGS} in USES=python as
> pytest has its own entry point, rather than pointing to arbitrary
> file(s) for said entry point like the referenced port/bug.
>
> --
> Charlie Li
> ...nope, still don't have an exit line.
>


-- 
Nuno Teixeira
FreeBSD UNIX:  <[email protected]>   Web:  https://FreeBSD.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.