• PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON

    From Nuno Teixeira@eduardo@freebsd.org to muc.lists.freebsd.ports on Mon Sep 1 19:28:08 2025
    From Newsgroup: muc.lists.freebsd.ports

    --0000000000002bc2b4063dc1893b
    Content-Type: text/plain; charset="UTF-8"

    Hello,

    Just found that PYTEST_ARGS isn't respected when pytest is placed in
    USE_PYTHON instead of USES. 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

    Any help is welcome,
    --
    Nuno Teixeira
    FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org

    --0000000000002bc2b4063dc1893b
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div><div>Hello,</div><div><br></div><div>Just found that = PYTEST_ARGS isn&#39;t respected when pytest is placed in USE_PYTHON instead=
    of USES. <a href=3D"http://pytest.mk">pytest.mk</a> could be misleading po= inting its correct place in USES as I remember a big discussion about it lo=
    ng time ago. Anyway, I see no other python port using PYTEST_ARGS for compa= rison, I see that some ports uses pytest on both places and certainly I&#39= ;ve spoted a bug.</div><div><br></div><a href=3D"https://bugs.freebsd.org/b= ugzilla/show_bug.cgi?id=3D289005">https://bugs.freebsd.org/bugzilla/show_bu= g.cgi?id=3D289005</a><br><br></div><div>Any help is welcome,</div><div><br>= </div><div><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D= "ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir= =3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div><div><= font color=3D"#888888">
    FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div></div></div>

    --0000000000002bc2b4063dc1893b--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Charlie Li@vishwin@freebsd.org to muc.lists.freebsd.ports on Wed Sep 3 17:00:10 2025
    From Newsgroup: muc.lists.freebsd.ports

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------eYgz2B0Ta6hHZ00YS0EW2PDj
    Content-Type: multipart/mixed; boundary="------------TMAdORgIOZKwcpFF3XDtJE2i";
    protected-headers="v1"
    From: Charlie Li <vishwin@freebsd.org>
    To: Nuno Teixeira <eduardo@freebsd.org>,
    FreeBSD Mailing List <freebsd-ports@freebsd.org>
    Message-ID: <89cd764f-43b4-40ae-a271-4e7bf6caf1cf@freebsd.org>
    Subject: Re: PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON References: <CAFDf7UJ72LYJOwf_F2em6tKwzjf0_XCTjcVwXQOxw=agJyRWgQ@mail.gmail.com>
    In-Reply-To: <CAFDf7UJ72LYJOwf_F2em6tKwzjf0_XCTjcVwXQOxw=agJyRWgQ@mail.gmail.com>

    --------------TMAdORgIOZKwcpFF3XDtJE2i
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    TnVubyBUZWl4ZWlyYSB3cm90ZToNCj4gSGVsbG8sDQo+IA0KPiBKdXN0IGZvdW5kIHRoYXQg UFlURVNUX0FSR1MgaXNuJ3QgcmVzcGVjdGVkIHdoZW4gcHl0ZXN0IGlzIHBsYWNlZCBpbiAN Cj4gVVNFX1BZVEhPTiBpbnN0ZWFkIG9mIFVTRVMuIHB5dGVzdC5tayA8aHR0cDovL3B5dGVz dC5taz4gY291bGQgYmUgDQo+IG1pc2xlYWRpbmcgcG9pbnRpbmcgaXRzIGNvcnJlY3QgcGxh Y2UgaW4gVVNFUyBhcyBJIHJlbWVtYmVyIGEgYmlnIA0KPiBkaXNjdXNzaW9uIGFib3V0IGl0 IGxvbmcgdGltZSBhZ28uIEFueXdheSwgSSBzZWUgbm8gb3RoZXIgcHl0aG9uIHBvcnQgDQo+ IHVzaW5nIFBZVEVTVF9BUkdTIGZvciBjb21wYXJpc29uLCBJIHNlZSB0aGF0IHNvbWUgcG9y dHMgdXNlcyBweXRlc3Qgb24gDQo+IGJvdGggcGxhY2VzIGFuZCBjZXJ0YWlubHkgSSd2ZSBz cG90ZWQgYSBidWcuDQo+IA0KPiBodHRwczovL2J1Z3MuZnJlZWJzZC5vcmcvYnVnemlsbGEv c2hvd19idWcuY2dpP2lkPTI4OTAwNSA8aHR0cHM6Ly8gDQo+IGJ1Z3MuZnJlZWJzZC5vcmcv YnVnemlsbGEvc2hvd19idWcuY2dpP2lkPTI4OTAwNT4NCj4gDQpVU0VTPXB5dGVzdCBzaG91 bGQgbm90IGJlIHVzZWQgaW4gZ2VuZXJhbDsgVVNFX1BZVEhPTj1weXRlc3QgaXMgdGhlIHdh eS4gDQpUaGVyZSBpcyBjdXJyZW50bHkgbm8gc3VwcG9ydCBmb3IgJHtQWVRFU1RfQVJHU30g aW4gVVNFUz1weXRob24gYXMgDQpweXRlc3QgaGFzIGl0cyBvd24gZW50cnkgcG9pbnQsIHJh dGhlciB0aGFuIHBvaW50aW5nIHRvIGFyYml0cmFyeSANCmZpbGUocykgZm9yIHNhaWQgZW50 cnkgcG9pbnQgbGlrZSB0aGUgcmVmZXJlbmNlZCBwb3J0L2J1Zy4NCg0KLS0gDQpDaGFybGll IExpDQouLi5ub3BlLCBzdGlsbCBkb24ndCBoYXZlIGFuIGV4aXQgbGluZS4NCg==

    --------------TMAdORgIOZKwcpFF3XDtJE2i--

    --------------eYgz2B0Ta6hHZ00YS0EW2PDj
    Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature
    Content-Disposition: attachment; filename="OpenPGP_signature.asc"

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaLisWgUDAAAAAAAKCRDP+1cn7slqBMWc AQCmEJctMOZxJu/CIXN2gizr+DUat0Qdx9Gvy8vy4k9f/QD8D7VhojU0n0XqFlWEqdTNZp89gDUJ R8hLI7JZ3KXRRQg=
    =XFJf
    -----END PGP SIGNATURE-----

    --------------eYgz2B0Ta6hHZ00YS0EW2PDj--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nuno Teixeira@eduardo@freebsd.org to muc.lists.freebsd.ports on Thu Sep 4 20:29:04 2025
    From Newsgroup: muc.lists.freebsd.ports

    --000000000000bf87df063dfebcb9
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    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=3D dos2unix pytest python
    + USES=3D dos2unix python
    - USE_PYTHON=3D autoplist pep517
    + USE_PYTHON=3D autoplist pep517 pytest
    PYTEST_ARGS=3D test.py

    Thanks,

    Charlie Li <vishwin@freebsd.org> escreveu (quarta, 3/09/2025 =C3=A0(s) 22:0= 0):

    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=3D289005 <https:// bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289005>

    USES=3Dpytest should not be used in general; USE_PYTHON=3Dpytest is the w=
    ay.
    There is currently no support for ${PYTEST_ARGS} in USES=3Dpython 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.



    --=20
    Nuno Teixeira
    FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org

    --000000000000bf87df063dfebcb9
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div>Hello Charlie,</div><div><br></div><div>Sorry but I d= idn&#39;t understanded your explanation.<br></div><div>What we got is that =
    if I&#39;ll do the following changes to port:=C2=A0<span id=3D"gmail-summar= y_container"><span id=3D"gmail-short_desc_nonedit_display">comms/py-streamd= eck,=C2=A0</span></span>PYTEST_ARGS isn&#39;t respected:</div><div><br></di= v><div><div>- USES=3D dos2unix pytest python</div><div>+ USES=3D dos2unix=
    python</div><div>- USE_PYTHON=3D autoplist pep517</div><div>+ USE_PYTHON=
    =3D autoplist pep517 pytest</div><div>PYTEST_ARGS=3D test.py</div></div><di=
    <br></div><div>Thanks,</div></div><br><div class=3D"gmail_quote gmail_quo= te_container"><div dir=3D"ltr" class=3D"gmail_attr">Charlie Li &lt;<a href= =3D"mailto:vishwin@freebsd.org">vishwin@freebsd.org</a>&gt; escreveu (quart=
    a, 3/09/2025 =C3=A0(s) 22:00):<br></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad= ding-left:1ex">Nuno Teixeira wrote:<br>
    &gt; Hello,<br>
    &gt; <br>
    &gt; Just found that PYTEST_ARGS isn&#39;t respected when pytest is placed =
    in <br>
    &gt; USE_PYTHON instead of USES. <a href=3D"http://pytest.mk" rel=3D"norefe= rrer" target=3D"_blank">pytest.mk</a> &lt;<a href=3D"http://pytest.mk" rel= =3D"noreferrer" target=3D"_blank">http://pytest.mk</a>&gt; could be <br>
    &gt; misleading pointing its correct place in USES as I remember a big <br> &gt; discussion about it long time ago. Anyway, I see no other python port =

    &gt; using PYTEST_ARGS for comparison, I see that some ports uses pytest on=

    &gt; both places and certainly I&#39;ve spoted a bug.<br>
    &gt; <br>
    &gt; <a href=3D"https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289005"=
    rel=3D"noreferrer" target=3D"_blank">https://bugs.freebsd.org/bugzilla/sho= w_bug.cgi?id=3D289005</a> &lt;https:// <br>
    &gt; <a href=3D"http://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289005" = rel=3D"noreferrer" target=3D"_blank">bugs.freebsd.org/bugzilla/show_bug.cgi= ?id=3D289005</a>&gt;<br>
    &gt; <br>
    USES=3Dpytest should not be used in general; USE_PYTHON=3Dpytest is the way=
    . <br>
    There is currently no support for ${PYTEST_ARGS} in USES=3Dpython as <br> pytest has its own entry point, rather than pointing to arbitrary <br>
    file(s) for said entry point like the referenced port/bug.<br>

    -- <br>
    Charlie Li<br>
    ...nope, still don&#39;t have an exit line.<br>
    </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
    iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>= <div><font color=3D"#888888">
    FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div>

    --000000000000bf87df063dfebcb9--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Charlie Li@vishwin@freebsd.org to muc.lists.freebsd.ports on Thu Sep 4 16:38:05 2025
    From Newsgroup: muc.lists.freebsd.ports

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------wC0QOwMf0eAi8XySsw5WRlQe
    Content-Type: multipart/mixed; boundary="------------jkfvLLNvWhmHxGnd0NYywPTR";
    protected-headers="v1"
    From: Charlie Li <vishwin@freebsd.org>
    To: Nuno Teixeira <eduardo@freebsd.org>
    Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org>
    Message-ID: <074b9e78-4bf1-448a-9100-171bf9bee958@freebsd.org>
    Subject: Re: PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON References: <CAFDf7UJ72LYJOwf_F2em6tKwzjf0_XCTjcVwXQOxw=agJyRWgQ@mail.gmail.com>
    <89cd764f-43b4-40ae-a271-4e7bf6caf1cf@freebsd.org>
    <CAFDf7UKYRbLS_zWrdk8L_Vk_ZGuYkMNXnop7KOQkGcF0z9Z+RQ@mail.gmail.com> In-Reply-To: <CAFDf7UKYRbLS_zWrdk8L_Vk_ZGuYkMNXnop7KOQkGcF0z9Z+RQ@mail.gmail.com>

    --------------jkfvLLNvWhmHxGnd0NYywPTR
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    TnVubyBUZWl4ZWlyYSB3cm90ZToNCj4gSGVsbG8gQ2hhcmxpZSwNCj4gDQo+IFNvcnJ5IGJ1 dCBJIGRpZG4ndCB1bmRlcnN0YW5kZWQgeW91ciBleHBsYW5hdGlvbi4NCj4gV2hhdCB3ZSBn b3QgaXMgdGhhdCBpZiBJJ2xsIGRvIHRoZSBmb2xsb3dpbmcgY2hhbmdlcyB0byBwb3J0OiBj b21tcy9weS0gDQo+IHN0cmVhbWRlY2ssIFBZVEVTVF9BUkdTIGlzbid0IHJlc3BlY3RlZDoN Cj4gDQo+IC0gVVNFUz0gZG9zMnVuaXggcHl0ZXN0IHB5dGhvbg0KPiArIFVTRVM9IGRvczJ1 bml4IHB5dGhvbg0KPiAtIFVTRV9QWVRIT049IGF1dG9wbGlzdCBwZXA1MTcNCj4gKyBVU0Vf UFlUSE9OPSBhdXRvcGxpc3QgcGVwNTE3IHB5dGVzdA0KPiBQWVRFU1RfQVJHUz0gdGVzdC5w eQ0KPiANCiR7UFlURVNUX0FSR1N9IGlzIG5vdCByZXNwZWN0ZWQgd2l0aCBVU0VfUFlUSE9O PXB5dGVzdCBiZWNhdXNlIA0KJHtQWVRFU1RfQVJHU30gaXMgbm90IHVzZWQgYXQgYWxsLiBV U0VfUFlUSE9OPXB5dGVzdCBleGVjdXRlcyBweXRlc3QgDQpkaXJlY3RseSwgd2l0aCB0aGUg b25seSBhcmd1bWVudHMgZGVhbGluZyB3aXRoIGluZGl2aWR1YWwgdGVzdHMgdG8gc2tpcC4N Cg0KVGhpcyBwYXJ0aWN1bGFyIHBvcnQvcGFja2FnZSBkb2VzIG5vdCB1c2Ugb3IgbWVudGlv biBweXRlc3QgYXQgYWxsLCBzbyANCml0IGlzIHdyb25nIHRvIGhhdmUgcHl0ZXN0IHNwZWNp ZmllZC4gVGhlIGNvcnJlY3Qgd2F5IGhlcmUgaXMgdG8gZGVmaW5lIA0KZG8tdGVzdCB0byBl eGVjdXRlIHRlc3QucHkuDQoNCi0tIA0KQ2hhcmxpZSBMaQ0KLi4ubm9wZSwgc3RpbGwgZG9u J3QgaGF2ZSBhbiBleGl0IGxpbmUuDQo=

    --------------jkfvLLNvWhmHxGnd0NYywPTR--

    --------------wC0QOwMf0eAi8XySsw5WRlQe
    Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature
    Content-Disposition: attachment; filename="OpenPGP_signature.asc"

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaLn4rQUDAAAAAAAKCRDP+1cn7slqBHC/ AP9Ugl4WrLO1ar0DkNiAAhPnLLwujnq3jIHGAWMgYOzyBgD8DK3ifHzFtx6+gZjEt4Fc680PyCcP MlJkxnHqVusasAA=
    =fib0
    -----END PGP SIGNATURE-----

    --------------wC0QOwMf0eAi8XySsw5WRlQe--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nuno Teixeira@eduardo@freebsd.org to muc.lists.freebsd.ports on Thu Sep 4 22:18:12 2025
    From Newsgroup: muc.lists.freebsd.ports

    --000000000000f46668063e0042c8
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    It does.

    setup.py:

    #!/usr/bin/env python3

    # Python Stream Deck Library
    # Released under the MIT license
    #
    # dean [at] fourwalledcubicle [dot] com
    # www.fourwalledcubicle.com
    #

    import argparse
    import logging
    import os
    import sys

    sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../src'))

    from StreamDeck.DeviceManager import DeviceManager
    from StreamDeck.ImageHelpers import PILHelper
    from PIL import ImageDraw
    import pytest

    <snip>

    Charlie Li <vishwin@freebsd.org> escreveu (quinta, 4/09/2025 =C3=A0(s) 21:3= 8):

    Nuno Teixeira wrote:
    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=3D dos2unix pytest python
    + USES=3D dos2unix python
    - USE_PYTHON=3D autoplist pep517
    + USE_PYTHON=3D autoplist pep517 pytest
    PYTEST_ARGS=3D test.py

    ${PYTEST_ARGS} is not respected with USE_PYTHON=3Dpytest because ${PYTEST_ARGS} is not used at all. USE_PYTHON=3Dpytest executes pytest directly, with the only arguments dealing with individual tests to skip.

    This particular port/package does not use or mention pytest at all, so
    it is wrong to have pytest specified. The correct way here is to define do-test to execute test.py.

    --
    Charlie Li
    ...nope, still don't have an exit line.



    --=20
    Nuno Teixeira
    FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org

    --000000000000f46668063e0042c8
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div><div>It does.<br><br></div>setup.py:<br><br>#!/usr/bi= n/env python3<br><br># =C2=A0 =C2=A0 =C2=A0 =C2=A0 Python Stream Deck Libra= ry<br># =C2=A0 =C2=A0 =C2=A0Released under the MIT license<br>#<br># =C2=A0=
    dean [at] fourwalledcubicle [dot] com<br># =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a = href=3D"http://www.fourwalledcubicle.com">www.fourwalledcubicle.com</a><br>= #<br><br>import argparse<br>import logging<br>import os<br>import sys<br><b= r>sys.path.insert(0, os.path.join(os.path.dirname(__file__), &#39;../src&#3= 9;))<br><br>from StreamDeck.DeviceManager import DeviceManager<br>from Stre= amDeck.ImageHelpers import PILHelper<br>from PIL import ImageDraw<br>import=
    pytest<br><br></div>&lt;snip&gt;</div><br><div class=3D"gmail_quote gmail_= quote_container"><div dir=3D"ltr" class=3D"gmail_attr">Charlie Li &lt;<a hr= ef=3D"mailto:vishwin@freebsd.org">vishwin@freebsd.org</a>&gt; escreveu (qui= nta, 4/09/2025 =C3=A0(s) 21:38):<br></div><blockquote class=3D"gmail_quote"=
    style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p= adding-left:1ex">Nuno Teixeira wrote:<br>
    &gt; Hello Charlie,<br>
    &gt; <br>
    &gt; Sorry but I didn&#39;t understanded your explanation.<br>
    &gt; What we got is that if I&#39;ll do the following changes to port: comm= s/py- <br>
    &gt; streamdeck, PYTEST_ARGS isn&#39;t respected:<br>
    &gt; <br>
    &gt; - USES=3D dos2unix pytest python<br>
    &gt; + USES=3D dos2unix python<br>
    &gt; - USE_PYTHON=3D autoplist pep517<br>
    &gt; + USE_PYTHON=3D autoplist pep517 pytest<br>
    &gt; PYTEST_ARGS=3D test.py<br>
    &gt; <br>
    ${PYTEST_ARGS} is not respected with USE_PYTHON=3Dpytest because <br> ${PYTEST_ARGS} is not used at all. USE_PYTHON=3Dpytest executes pytest <br> directly, with the only arguments dealing with individual tests to skip.<br=


    This particular port/package does not use or mention pytest at all, so <br>
    it is wrong to have pytest specified. The correct way here is to define <br=

    do-test to execute test.py.<br>

    -- <br>
    Charlie Li<br>
    ...nope, still don&#39;t have an exit line.<br>
    </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
    iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>= <div><font color=3D"#888888">
    FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div>

    --000000000000f46668063e0042c8--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Nuno Teixeira@eduardo@freebsd.org to muc.lists.freebsd.ports on Thu Sep 4 22:21:46 2025
    From Newsgroup: muc.lists.freebsd.ports

    --000000000000b7c7ad063e004f59
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    (...)

    I meant "test.py"

    Nuno Teixeira <eduardo@freebsd.org> escreveu (quinta, 4/09/2025 =C3=A0(s) 2= 2:18):

    It does.

    setup.py:

    #!/usr/bin/env python3

    # Python Stream Deck Library
    # Released under the MIT license
    #
    # dean [at] fourwalledcubicle [dot] com
    # www.fourwalledcubicle.com
    #

    import argparse
    import logging
    import os
    import sys

    sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../src'))

    from StreamDeck.DeviceManager import DeviceManager
    from StreamDeck.ImageHelpers import PILHelper
    from PIL import ImageDraw
    import pytest

    <snip>

    Charlie Li <vishwin@freebsd.org> escreveu (quinta, 4/09/2025 =C3=A0(s) 21=
    :38):

    Nuno Teixeira wrote:
    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=3D dos2unix pytest python
    + USES=3D dos2unix python
    - USE_PYTHON=3D autoplist pep517
    + USE_PYTHON=3D autoplist pep517 pytest
    PYTEST_ARGS=3D test.py

    ${PYTEST_ARGS} is not respected with USE_PYTHON=3Dpytest because
    ${PYTEST_ARGS} is not used at all. USE_PYTHON=3Dpytest executes pytest
    directly, with the only arguments dealing with individual tests to skip.

    This particular port/package does not use or mention pytest at all, so
    it is wrong to have pytest specified. The correct way here is to define
    do-test to execute test.py.

    --
    Charlie Li
    ...nope, still don't have an exit line.



    --
    Nuno Teixeira
    FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org



    --=20
    Nuno Teixeira
    FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org

    --000000000000b7c7ad063e004f59
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div>(...)<br><br></div>I meant &quot;test.py&quot;</div><= br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class= =3D"gmail_attr">Nuno Teixeira &lt;<a href=3D"mailto:eduardo@freebsd.org">ed= uardo@freebsd.org</a>&gt; escreveu (quinta, 4/09/2025 =C3=A0(s) 22:18):<br>= </div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;b= order-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><d= iv><div>It does.<br><br></div>setup.py:<br><br>#!/usr/bin/env python3<br><b= r># =C2=A0 =C2=A0 =C2=A0 =C2=A0 Python Stream Deck Library<br># =C2=A0 =C2=
    =A0 =C2=A0Released under the MIT license<br>#<br># =C2=A0 dean [at] fourwal= ledcubicle [dot] com<br># =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"http://www= .fourwalledcubicle.com" target=3D"_blank">www.fourwalledcubicle.com</a><br>= #<br><br>import argparse<br>import logging<br>import os<br>import sys<br><b= r>sys.path.insert(0, os.path.join(os.path.dirname(__file__), &#39;../src&#3= 9;))<br><br>from StreamDeck.DeviceManager import DeviceManager<br>from Stre= amDeck.ImageHelpers import PILHelper<br>from PIL import ImageDraw<br>import=
    pytest<br><br></div>&lt;snip&gt;</div><br><div class=3D"gmail_quote"><div = dir=3D"ltr" class=3D"gmail_attr">Charlie Li &lt;<a href=3D"mailto:vishwin@f= reebsd.org" target=3D"_blank">vishwin@freebsd.org</a>&gt; escreveu (quinta,=
    4/09/2025 =C3=A0(s) 21:38):<br></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex">Nuno Teixeira wrote:<br>
    &gt; Hello Charlie,<br>
    &gt; <br>
    &gt; Sorry but I didn&#39;t understanded your explanation.<br>
    &gt; What we got is that if I&#39;ll do the following changes to port: comm= s/py- <br>
    &gt; streamdeck, PYTEST_ARGS isn&#39;t respected:<br>
    &gt; <br>
    &gt; - USES=3D dos2unix pytest python<br>
    &gt; + USES=3D dos2unix python<br>
    &gt; - USE_PYTHON=3D autoplist pep517<br>
    &gt; + USE_PYTHON=3D autoplist pep517 pytest<br>
    &gt; PYTEST_ARGS=3D test.py<br>
    &gt; <br>
    ${PYTEST_ARGS} is not respected with USE_PYTHON=3Dpytest because <br> ${PYTEST_ARGS} is not used at all. USE_PYTHON=3Dpytest executes pytest <br> directly, with the only arguments dealing with individual tests to skip.<br=


    This particular port/package does not use or mention pytest at all, so <br>
    it is wrong to have pytest specified. The correct way here is to define <br=

    do-test to execute test.py.<br>

    -- <br>
    Charlie Li<br>
    ...nope, still don&#39;t have an exit line.<br>
    </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
    iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>= <div><font color=3D"#888888">
    FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div>
    </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
    iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>= <div><font color=3D"#888888">
    FreeBSD UNIX:=C2=A0 &lt;eduardo@FreeBSD.org&gt;=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div>

    --000000000000b7c7ad063e004f59--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Charlie Li@vishwin@freebsd.org to muc.lists.freebsd.ports on Thu Sep 4 17:29:40 2025
    From Newsgroup: muc.lists.freebsd.ports

    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------bbkIMgHCtIDiD50jDxpJZjdt
    Content-Type: multipart/mixed; boundary="------------zYZfaeDHYIX17YZytCha8jAO";
    protected-headers="v1"
    From: Charlie Li <vishwin@freebsd.org>
    To: Nuno Teixeira <eduardo@freebsd.org>
    Cc: FreeBSD Mailing List <freebsd-ports@freebsd.org>
    Message-ID: <5bfd7ced-148f-4dd2-ba31-fa492de1305c@freebsd.org>
    Subject: Re: PYTEST_ARGS isn't respected with pytest placed in USE_PYTHON References: <CAFDf7UJ72LYJOwf_F2em6tKwzjf0_XCTjcVwXQOxw=agJyRWgQ@mail.gmail.com>
    <89cd764f-43b4-40ae-a271-4e7bf6caf1cf@freebsd.org>
    <CAFDf7UKYRbLS_zWrdk8L_Vk_ZGuYkMNXnop7KOQkGcF0z9Z+RQ@mail.gmail.com>
    <074b9e78-4bf1-448a-9100-171bf9bee958@freebsd.org>
    <CAFDf7UJq5R2vhB8PWpwRjebK8OqN7mNbqdHCFXTdfG08J=NjaQ@mail.gmail.com>
    <CAFDf7U+kJS8z_MMi_O_MgNGQpHwbfb3Z5vj5vHUfZdTcRffOUQ@mail.gmail.com> In-Reply-To: <CAFDf7U+kJS8z_MMi_O_MgNGQpHwbfb3Z5vj5vHUfZdTcRffOUQ@mail.gmail.com>

    --------------zYZfaeDHYIX17YZytCha8jAO
    Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64

    TnVubyBUZWl4ZWlyYSB3cm90ZToNCj4gKC4uLikNCj4gDQo+IEkgbWVhbnQgInRlc3QucHki DQo+IA0KPiBOdW5vIFRlaXhlaXJhIDxlZHVhcmRvQGZyZWVic2Qub3JnIDxtYWlsdG86ZWR1 YXJkb0BmcmVlYnNkLm9yZz4+IA0KPiBlc2NyZXZldSAocXVpbnRhLCA0LzA5LzIwMjUgw6Ao cykgMjI6MTgpOg0KPiANCj4gICAgIEl0IGRvZXMuDQo+IA0KPiAgICAgc2V0dXAucHk6DQo+ IA0KPiAgICAgIyEvdXNyL2Jpbi9lbnYgcHl0aG9uMw0KPiANCj4gICAgICMgwqAgwqAgwqAg wqAgUHl0aG9uIFN0cmVhbSBEZWNrIExpYnJhcnkNCj4gICAgICMgwqAgwqAgwqBSZWxlYXNl ZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2UNCj4gICAgICMNCj4gICAgICMgwqAgZGVhbiBbYXRd IGZvdXJ3YWxsZWRjdWJpY2xlIFtkb3RdIGNvbQ0KPiAgICAgIyB3d3cuZm91cndhbGxlZGN1 YmljbGUuY29tIDxodHRwOi8vd3d3LmZvdXJ3YWxsZWRjdWJpY2xlLmNvbT4NCj4gICAgICMN Cj4gDQo+ICAgICBpbXBvcnQgYXJncGFyc2UNCj4gICAgIGltcG9ydCBsb2dnaW5nDQo+ICAg ICBpbXBvcnQgb3MNCj4gICAgIGltcG9ydCBzeXMNCj4gDQo+ICAgICBzeXMucGF0aC5pbnNl cnQoMCwgb3MucGF0aC5qb2luKG9zLnBhdGguZGlybmFtZShfX2ZpbGVfXyksICcuLi9zcmMn KSkNCj4gDQo+ICAgICBmcm9tIFN0cmVhbURlY2suRGV2aWNlTWFuYWdlciBpbXBvcnQgRGV2 aWNlTWFuYWdlcg0KPiAgICAgZnJvbSBTdHJlYW1EZWNrLkltYWdlSGVscGVycyBpbXBvcnQg UElMSGVscGVyDQo+ICAgICBmcm9tIFBJTCBpbXBvcnQgSW1hZ2VEcmF3DQo+ICAgICBpbXBv cnQgcHl0ZXN0DQo+IA0KPiAgICAgPHNuaXA+DQo+IA0KVGhlIHVwc3RyZWFtIGNvcHkgZG9l cyBub3QgaW1wb3J0IHB5dGVzdC4gVGhlIHBhdGNoIGluY2x1ZGVkIGluIHRoZSBwb3J0IA0K ZG9lcyBub3QgbG9vayBjb3JyZWN0LCBhcyB0aGUgZmlsZSBpcyBtZWFudCB0byBiZSBleGVj dXRlZCBkaXJlY3RseSwgDQp3aXRob3V0IHB5dGVzdCwgZ2l2ZW4gdGhhdCBfX21haW5fXyBl eGlzdHMuDQoNCi0tIA0KQ2hhcmxpZSBMaQ0KLi4ubm9wZSwgc3RpbGwgZG9uJ3QgaGF2ZSBh biBleGl0IGxpbmUuDQo=

    --------------zYZfaeDHYIX17YZytCha8jAO--

    --------------bbkIMgHCtIDiD50jDxpJZjdt
    Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature
    Content-Disposition: attachment; filename="OpenPGP_signature.asc"

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaLoExQUDAAAAAAAKCRDP+1cn7slqBNqK AQC4b9QYol3v5a6/jQHlET4TvrymlL6sedaxc8HfgIsn9gEA5vIA1/YtN+7k6cHQRyiGgjHu76d/ CUGMzfD2RAdDYAA=
    =JPUL
    -----END PGP SIGNATURE-----

    --------------bbkIMgHCtIDiD50jDxpJZjdt--


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2