Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Mitchell Dorrell
On Sat, Oct 12, 2024, 06:23 Michał Górny wrote: > On Sat, 2024-10-12 at 12:13 +0200, Ulrich Mueller wrote: > > > > > > > On Sat, 12 Oct 2024, Michał Górny wrote: > > > > > > IMHO this would abuse the package name for information that > absolutely > > > > doesn't belong there. It belongs in PV or

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 07:23 -0400, Mitchell Dorrell wrote: > On Sat, Oct 12, 2024, 06:23 Michał Górny wrote: > > > On Sat, 2024-10-12 at 12:13 +0200, Ulrich Mueller wrote: > > > > > > > > On Sat, 12 Oct 2024, Michał Górny wrote: > > > > > > > > IMHO this would abuse the package name for informat

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread orbea
On Sat, 12 Oct 2024 10:12:56 +0200 Michał Górny wrote: > Hello, > > Historically, all versions of CPython were slotted in a single > package, i.e.: > > dev-lang/python:3.N > > This approach has been causing a major annoyance for users -- due to > Portage "greedy" upgrade behavior, any time a

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Anna (cybertailor) Vyalkova
On 2024-10-12 11:13, Michał Górny wrote: On Sat, 2024-10-12 at 10:50 +0200, Luca Barbato wrote: On 12/10/24 10:12, Michał Górny wrote: > Comments? > I'm afraid it would lead to way too many packages and I'm not sure the overall experience would be an improvement. 5 are too many? Absolutely n

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Andreas Sturmlechner
On Samstag, 12. Oktober 2024 15:52:45 MESZ orbea wrote: > Its already a serious chore keeping the python ebuilds in sync > with ::gentoo and if you start to double the versions that will only be > more ridiculous. Life choices. signature.asc Description: This is a digitally signed message part.

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Mitchell Dorrell
On Sat, Oct 12, 2024, 14:03 Michał Górny wrote: > On Sat, 2024-10-12 at 10:12 +0200, Michał Górny wrote: > > This naturally means that only the specific version requested (e.g. via > > targets) would be installed, and no cross-slot autoupgrades would > > happen. Ideally, I'd like to start doing

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 15:00 +0200, Luca Barbato wrote: > On 12/10/24 11:13, Michał Górny wrote: > > On Sat, 2024-10-12 at 10:50 +0200, Luca Barbato wrote: > > > On 12/10/24 10:12, Michał Górny wrote: > > > > Comments? > > > > > > > I'm afraid it would lead to way too many packages and I'm not sure

[gentoo-dev] [PATCH 5/5] dev-lang/python: Use sigstore in 3.13.0 (example)

2024-10-12 Thread Michał Górny
Signed-off-by: Michał Górny --- dev-lang/python/Manifest | 2 +- dev-lang/python/python-3.13.0.ebuild | 8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dev-lang/python/Manifest b/dev-lang/python/Manifest index daddb0dad1f4..7663f0072d2a 100644 --- a/dev-lang

[gentoo-dev] [PATCH 4/5] verify-sig.eclass: Add support for verifying sigstore signatures

2024-10-12 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/verify-sig.eclass | 54 1 file changed, 49 insertions(+), 5 deletions(-) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index 9886e3352db7..f97c4a276865 100644 --- a/eclass/verify-sig.eclass +++ b/e

[gentoo-dev] [PATCH 1/5] sec-keys/sigstore-trusted-root: New package, v0_p20241010

2024-10-12 Thread Michał Górny
New package installing trusted_root.json for dev-python/sigstore, to verify signatures. Includes a test phase to verify if our root is up-to-date. Signed-off-by: Michał Górny --- sec-keys/sigstore-trusted-root/Manifest | 2 + sec-keys/sigstore-trusted-root/metadata.xml | 8 +++ .../si

[gentoo-dev] [PATCH 0/5] verify-sig.eclass: sigstore support

2024-10-12 Thread Michał Górny
Hi, dev-python/sigstore is yet another NIH signature verification tool. Python is planning to use it exclusively starting with Python 3.14. It uses some fancy PKI-like infrastructure backend by OAuth against some popular providers (read: now Google and Microsoft will hold keys used to sign Python

[gentoo-dev] [PATCH 2/5] verify-sig.eclass: Refactor code to use extra_args for all types

2024-10-12 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/verify-sig.eclass | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index b74ed78290aa..d601c7838a00 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -13

[gentoo-dev] [PATCH 3/5] verify-sig.eclass: Error out on invalid method+function combos

2024-10-12 Thread Michał Górny
Signed-off-by: Michał Górny --- eclass/verify-sig.eclass | 9 + 1 file changed, 9 insertions(+) diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index d601c7838a00..9886e3352db7 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -173,6 +173,9 @@ verif

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 17:30 +0500, Anna (cybertailor) Vyalkova wrote: > On 2024-10-12 11:13, Michał Górny wrote: > > On Sat, 2024-10-12 at 10:50 +0200, Luca Barbato wrote: > > > On 12/10/24 10:12, Michał Górny wrote: > > > > Comments? > > > > > > > I'm afraid it would lead to way too many packages

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Sam James
Michał Górny writes: > On Sat, 2024-10-12 at 10:50 +0200, Luca Barbato wrote: >> On 12/10/24 10:12, Michał Górny wrote: >> > Comments? >> > >> I'm afraid it would lead to way too many packages and I'm not sure the >> overall experience would be an improvement. > > 5 are too many? > >> With your

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Sam James
Mitchell Dorrell writes: > How will the upgrade path look, from e.g. 3.16 to 3.17? What will the typical > Gentoo user experience be? What will the > experience be for a Python developer with a local overlay containing custom > Python packages? It should be transparent because PYTHON_COMPAT wi

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Luca Barbato
On 12/10/24 15:03, Michał Górny wrote: emerge =python-3.14 would install both a non-freethreading and a freethreading version and it would satisfy 3_14 and 3_14t at the same. But that's not how PMs work? It would install only the "newer" version, which would probably mean freethreading, whic

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Nowa Ammerlaan
On 12/10/2024 10:12, Michał Górny wrote: This approach has been causing a major annoyance for users -- due to Portage "greedy" upgrade behavior, any time a new Python version was keyworded, Portage insisted on installing it, even though user's selected targets did not request the specific version

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 10:12 +0200, Michał Górny wrote: > This naturally means that only the specific version requested (e.g. via > targets) would be installed, and no cross-slot autoupgrades would > happen. Ideally, I'd like to start doing that with Python 3.14 whose > first alpha is expected next

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Luca Barbato
On 12/10/24 11:13, Michał Górny wrote: On Sat, 2024-10-12 at 10:50 +0200, Luca Barbato wrote: On 12/10/24 10:12, Michał Górny wrote: Comments? I'm afraid it would lead to way too many packages and I'm not sure the overall experience would be an improvement. 5 are too many? potentially it

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Mitchell Dorrell
How will the upgrade path look, from e.g. 3.16 to 3.17? What will the typical Gentoo user experience be? What will the experience be for a Python developer with a local overlay containing custom Python packages? I didn't like this idea at first, but I'm warming up to it. On Sat, Oct 12, 2024, 06:

[gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
Hello, Historically, all versions of CPython were slotted in a single package, i.e.: dev-lang/python:3.N This approach has been causing a major annoyance for users -- due to Portage "greedy" upgrade behavior, any time a new Python version was keyworded, Portage insisted on installing it, even

[gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Luca Barbato
On 12/10/24 10:12, Michał Górny wrote: Comments? I'm afraid it would lead to way too many packages and I'm not sure the overall experience would be an improvement. With your proposed solution, if an user wants to have any version of python what should ask to emerge? An alternative for free

Re: [gentoo-dev] Re: [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 10:50 +0200, Luca Barbato wrote: > On 12/10/24 10:12, Michał Górny wrote: > > Comments? > > > I'm afraid it would lead to way too many packages and I'm not sure the > overall experience would be an improvement. 5 are too many? > With your proposed solution, if an user want

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Eray Aslan
On Sat, Oct 12, 2024 at 10:12:56AM +0200, Michał Górny wrote: > Historically, all versions of CPython were slotted in a single package, > i.e.: > > dev-lang/python:3.N > > This approach has been causing a major annoyance for users -- due to > Portage "greedy" upgrade behavior, any time a new Py

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Ulrich Mueller
> On Sat, 12 Oct 2024, Michał Górny wrote: > However, I think the cleanest way forward would be to stop slotting > CPython like this, and instead have a separate package for each version, > just like the vast majority of distributions do, i.e.: > dev-lang/python3_N That other distributions

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 11:49 +0200, Eray Aslan wrote: > On Sat, Oct 12, 2024 at 10:12:56AM +0200, Michał Górny wrote: > > > As a side notice, the existing versions would probably remain as-is > > until removal, since there's really no gain in splitting them, given > > we'd have to retain compatibil

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Ulrich Mueller
> On Sat, 12 Oct 2024, Ulrich Mueller wrote: > IMHO this would abuse the package name for information that absolutely > doesn't belong there. It belongs in PV or SLOT. > To me it seems that you try to work around a problem (greedy upgrade > behaviour) that should really be solved in the packa

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 11:59 +0200, Ulrich Mueller wrote: > > > > > > On Sat, 12 Oct 2024, Michał Górny wrote: > > > However, I think the cleanest way forward would be to stop slotting > > CPython like this, and instead have a separate package for each version, > > just like the vast majority of di

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 12:03 +0200, Ulrich Mueller wrote: > > > > > > On Sat, 12 Oct 2024, Ulrich Mueller wrote: > > > IMHO this would abuse the package name for information that absolutely > > doesn't belong there. It belongs in PV or SLOT. > > > To me it seems that you try to work around a probl

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Ulrich Mueller
> On Sat, 12 Oct 2024, Michał Górny wrote: >> IMHO this would abuse the package name for information that absolutely >> doesn't belong there. It belongs in PV or SLOT. >> >> To me it seems that you try to work around a problem (greedy upgrade >> behaviour) that should really be solved in the

Re: [gentoo-dev] [RFC] Splitting dev-lang/python into per-slot packages, starting with 3.14

2024-10-12 Thread Michał Górny
On Sat, 2024-10-12 at 12:13 +0200, Ulrich Mueller wrote: > > > > > > On Sat, 12 Oct 2024, Michał Górny wrote: > > > > IMHO this would abuse the package name for information that absolutely > > > doesn't belong there. It belongs in PV or SLOT. > > > > > > To me it seems that you try to work around