• Python module packaging request to help me maintain apt-listchanges

    From Jonathan Kamens@21:1/5 to All on Mon Oct 23 12:40:01 2023
    This is a multi-part message in MIME format.
    Hello all,

    I'm writing to ask for your assistance in getting pytest-subprocess
    packaged into Debian:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360

    The use case here is that I've taken over maintenance of apt-listchanges
    and added among other things a unit-test suite, and I want to make the unit-tests cover as much of the code as possible, and to do that I need
    to be able to mock out subprocess calls which apt-listchanges does quite
    a lot of in its work.

    I am happy to do most of the work if someone on this list is willing to
    mentor me, since I've never packages a Python module for Debian before
    and don't want to screw something up / spin my wheels learning lessons
    the team already has institutional knowledge of. I imagine that
    packaging a simple package like this one is probably quick and
    straightforward for folks who have done it before, so perhaps it would
    be easier for one of y'all to do it than to guide me through the
    process, but I leave that choice to your discretion. ;-)

    Thank you in advance for any assistance you can provide.

    Regards,

    Jonathan Kamens


    <!DOCTYPE html>
    <html>
    <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p>Hello all,</p>
    <p>I'm writing to ask for your assistance in getting
    pytest-subprocess packaged into Debian:</p>
    <p><a class="moz-txt-link-freetext" href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360</a></p>
    <p>The use case here is that I've taken over maintenance of
    apt-listchanges and added among other things a unit-test suite,
    and I want to make the unit-tests cover as much of the code as
    possible, and to do that I need to be able to mock out subprocess
    calls which apt-listchanges does quite a lot of in its work.</p>
    <p>I am happy to do most of the work if someone on this list is
    willing to mentor me, since I've never packages a Python module
    for Debian before and don't want to screw something up / spin my
    wheels learning lessons the team already has institutional
    knowledge of. I imagine that packaging a simple package like this
    one is probably quick and straightforward for folks who have done
    it before, so perhaps it would be easier for one of y'all to do it
    than to guide me through the process, but I leave that choice to
    your discretion. ;-)</p>
    <p>Thank you in advance for any assistance you can provide.</p>
    <p>Regards,</p>
    <p>Jonathan Kamens</p>
    <p><br>
    </p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ian Norton@21:1/5 to jik@kamens.us on Tue Oct 24 19:50:01 2023
    Pytest-subprocess looks interesting, I'd probably myself have done the
    mocks directly using pytest-mock but it's good to know this exists.

    On Mon, 23 Oct 2023, 12:49 Jonathan Kamens, <jik@kamens.us> wrote:

    Hello all,

    I'm writing to ask for your assistance in getting pytest-subprocess
    packaged into Debian:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360

    The use case here is that I've taken over maintenance of apt-listchanges
    and added among other things a unit-test suite, and I want to make the unit-tests cover as much of the code as possible, and to do that I need to
    be able to mock out subprocess calls which apt-listchanges does quite a lot of in its work.

    I am happy to do most of the work if someone on this list is willing to mentor me, since I've never packages a Python module for Debian before and don't want to screw something up / spin my wheels learning lessons the team already has institutional knowledge of. I imagine that packaging a simple package like this one is probably quick and straightforward for folks who have done it before, so perhaps it would be easier for one of y'all to do
    it than to guide me through the process, but I leave that choice to your discretion. ;-)

    Thank you in advance for any assistance you can provide.

    Regards,

    Jonathan Kamens




    <div dir="auto">Pytest-subprocess looks interesting, I&#39;d probably myself have done the mocks directly using pytest-mock but it&#39;s good to know this exists.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 23 Oct 2023, 12:
    49 Jonathan Kamens, &lt;<a href="mailto:jik@kamens.us">jik@kamens.us</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





    <div>
    <p>Hello all,</p>
    <p>I&#39;m writing to ask for your assistance in getting
    pytest-subprocess packaged into Debian:</p>
    <p><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360" target="_blank" rel="noreferrer">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360</a></p>
    <p>The use case here is that I&#39;ve taken over maintenance of
    apt-listchanges and added among other things a unit-test suite,
    and I want to make the unit-tests cover as much of the code as
    possible, and to do that I need to be able to mock out subprocess
    calls which apt-listchanges does quite a lot of in its work.</p>
    <p>I am happy to do most of the work if someone on this list is
    willing to mentor me, since I&#39;ve never packages a Python module
    for Debian before and don&#39;t want to screw something up / spin my
    wheels learning lessons the team already has institutional
    knowledge of. I imagine that packaging a simple package like this
    one is probably quick and straightforward for folks who have done
    it before, so perhaps it would be easier for one of y&#39;all to do it
    than to guide me through the process, but I leave that choice to
    your discretion. ;-)</p>
    <p>Thank you in advance for any assistance you can provide.</p>
    <p>Regards,</p>
    <p>Jonathan Kamens</p>
    <p><br>
    </p>
    </div>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Timo =?utf-8?Q?R=C3=B6hling?=@21:1/5 to All on Tue Oct 24 20:10:01 2023
    Hi Jonathan,

    * Jonathan Kamens <jik@kamens.us> [2023-10-23 06:00]:
    I'm writing to ask for your assistance in getting pytest-subprocess
    packaged into Debian:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053360

    As one of the uploaders for pytest, I am happy to sponsor you!

    Cheers
    Timo

    --
    ⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
    ⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
    ⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
    ⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯

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

    iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmU4BpgACgkQ+C8H+466 LVmfqgv7BRHDyZmLKklbWdKYIbuY6eCdpYZHyhnU3zS8bvYvlcYEnuV8ZOFoJV4B w13LOl0ZZ7Re5QTOaAXi8BOEQbtjt+1kwhkxThaWvCSjJSUbUPNIGeDOf9/OMIO5 GapOnqKK92uxVnjooW3HlzgR2Mlr1RZ2eMNybJWVcpmCOcr3N/4iufm2XUkwlUs2 D6KinaJXFEJalvpYcUx44PefnqbDaLJ40HRFCgYo3dOt9s2fh3hz2/OTydtqSoLV PPfVBFRmXAVpMjo+Mm6JF9ODLdtf4jdPtY0ghTM+7IKtxCQQ83TxcWTtt/7LQbD+ UgwnrwuiK1QG5uvEqInCzBRcoWdtSVZn/Tp/Nl33PB2