public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Question about python compatibility in dev-python/pathlib2
@ 2022-12-02  9:04 Martin Kletzander
  2022-12-02 10:35 ` Andrew Ammerlaan
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Kletzander @ 2022-12-02  9:04 UTC (permalink / raw
  To: gentoo-dev

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Question about python compatibility in dev-python/pathlib2
  2022-12-02  9:04 [gentoo-dev] Question about python compatibility in dev-python/pathlib2 Martin Kletzander
@ 2022-12-02 10:35 ` Andrew Ammerlaan
  2022-12-02 15:53   ` Martin Kletzander
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Ammerlaan @ 2022-12-02 10:35 UTC (permalink / raw
  To: gentoo-dev, Martin Kletzander

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

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
>

[-- Attachment #2: Type: text/html, Size: 1488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] Question about python compatibility in dev-python/pathlib2
  2022-12-02 10:35 ` Andrew Ammerlaan
@ 2022-12-02 15:53   ` Martin Kletzander
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Kletzander @ 2022-12-02 15:53 UTC (permalink / raw
  To: Andrew Ammerlaan; +Cc: gentoo-dev

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
>>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-02 15:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-02  9:04 [gentoo-dev] Question about python compatibility in dev-python/pathlib2 Martin Kletzander
2022-12-02 10:35 ` Andrew Ammerlaan
2022-12-02 15:53   ` Martin Kletzander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox