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 <vish...@freebsd.org> 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:  <edua...@freebsd.org>   Web:  https://FreeBSD.org

Reply via email to