• [gentoo-dev] Question about python compatibility in dev-python/pathlib2

    From Martin Kletzander@21:1/5 to All on Fri Dec 2 10:10:01 2022
    Hi all,

    I noticed that a package from an overlay fails to install due to it
    requiring pathlib2 with python_targets with 3.10 and/or 3.11. So I
    checked pathlib2's setup.py [0] that it supports newer python versions
    and wanted to update the ebuild, but noticed

    My question is whether I should:

    1) do some more research/work to bump the versions or

    2) update the upstream in case this is something deprecated order

    3) whether the updated ebuild with newer python versions should live in
    the overlay instead.

    Thanks for any (non-null) pointers,
    Martin

    [0] https://github.com/jazzband/pathlib2/blob/develop/setup.py#L39

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Ammerlaan@21:1/5 to Martin Kletzander on Fri Dec 2 11:40:01 2022
    ------UMM0CNK00FFTO588RYWQIBYFTLD5WM
    Content-Type: text/plain;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    Hi,

    Pathlib2 is a backport, as such it doesn't really make sense to add 3.10 and 3.11 to compat. The package from the overlay probably should adjust its dependencies to only depend on pathlib2 when instaling for 3.9 or 3.8. This can be accomplished with the
    python_gen_cond_dep function (see docmenttion of python-r1.eclass).

    Best regards,
    Andrew


    On December 2, 2022 10:04:02 AM GMT+01:00, Martin Kletzander <nert.pinx@gmail.com> wrote:
    Hi all,

    I noticed that a package from an overlay fails to install due to it
    requiring pathlib2 with python_targets with 3.10 and/or 3.11. So I
    checked pathlib2's setup.py [0] that it supports newer python versions
    and wanted to update the ebuild, but noticed

    My question is whether I should:

    1) do some more research/work to bump the versions or

    2) update the upstream in case this is something deprecated order

    3) whether the updated ebuild with newer python versions should live in
    the overlay instead.

    Thanks for any (non-null) pointers,
    Martin

    [0] https://github.com/jazzband/pathlib2/blob/develop/setup.py#L39


    ------UMM0CNK00FFTO588RYWQIBYFTLD5WM
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <html><head></head><body>Hi,<br><br>Pathlib2 is a backport, as such it doesn't really make sense to add 3.10 and 3.11 to compat. The package from the overlay probably should adjust its dependencies to only depend on pathlib2 when instaling for 3.9 or 3.8.
    This can be accomplished with the python_gen_cond_dep function (see docmenttion of python-r1.eclass).<br><br>Best regards,<br>Andrew<br><br><br><div class="gmail_quote">On December 2, 2022 10:04:02 AM GMT+01:00, Martin Kletzander &lt;nert.pinx@gmail.com&
    gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
    <pre dir="auto" class="k9mail">Hi all,<br><br>I noticed that a package from an overlay fails to install due to it<br>requiring pathlib2 with python_targets with 3.10 and/or 3.11. So I<br>checked pathlib2's setup.py [0] that it supports newer python
    versions<br>and wanted to update the ebuild, but noticed<br><br>My question is whether I should:<br><br>1) do some more research/work to bump the versions or<br><br>2) update the upstream in case this is something deprecated order<br><br>3) whether the
    updated ebuild with newer python versions should live in<br> the overlay instead.<br><br>Thanks for any (non-null) pointers,<br>Martin<br><br>[0] <a href="https://github.com/jazzband/pathlib2/blob/develop/setup.py#L39">https://github.com/jazzband/
    pathlib2/blob/develop/setup.py#L39</a><br><br></pre></blockquote></div></body></html>
    ------UMM0CNK00FFTO588RYWQIBYFTLD5WM--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Kletzander@21:1/5 to Andrew Ammerlaan on Fri Dec 2 17:00:01 2022
    Thanks, I now understand what pathlib2 does, but more importantly found
    out it is not really needed in that case making the fix even easier =)

    On Fri, Dec 02, 2022 at 11:35:06AM +0100, Andrew Ammerlaan wrote:
    Hi,

    Pathlib2 is a backport, as such it doesn't really make sense to add 3.10 and 3.11 to compat. The package from the overlay probably should adjust its dependencies to only depend on pathlib2 when instaling for 3.9 or 3.8. This can be accomplished with the
    python_gen_cond_dep function (see docmenttion of python-r1.eclass).

    Best regards,
    Andrew


    On December 2, 2022 10:04:02 AM GMT+01:00, Martin Kletzander <nert.pinx@gmail.com> wrote:
    Hi all,

    I noticed that a package from an overlay fails to install due to it >>requiring pathlib2 with python_targets with 3.10 and/or 3.11. So I
    checked pathlib2's setup.py [0] that it supports newer python versions
    and wanted to update the ebuild, but noticed

    My question is whether I should:

    1) do some more research/work to bump the versions or

    2) update the upstream in case this is something deprecated order

    3) whether the updated ebuild with newer python versions should live in
    the overlay instead.

    Thanks for any (non-null) pointers,
    Martin

    [0] https://github.com/jazzband/pathlib2/blob/develop/setup.py#L39


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)