Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-dev] [PATCH 4/6] profiles: Add flags for python3.11

2 views
Skip to first unread message

Michał Górny

unread,
May 8, 2022, 2:30:03 PM5/8/22
to
Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
profiles/base/package.use.force | 1 +
profiles/base/use.stable.mask | 7 ++++++-
profiles/desc/python_single_target.desc | 1 +
profiles/desc/python_targets.desc | 1 +
4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/profiles/base/package.use.force b/profiles/base/package.use.force
index abd8fbe4ffb3..79717a6a79fa 100644
--- a/profiles/base/package.use.force
+++ b/profiles/base/package.use.force
@@ -219,6 +219,7 @@ app-shells/bash:0 readline
dev-lang/python-exec python_targets_python3_8
dev-lang/python-exec python_targets_python3_9
dev-lang/python-exec python_targets_python3_10
+dev-lang/python-exec python_targets_python3_11
dev-lang/python-exec python_targets_pypy3

# Zac Medico <zme...@gentoo.org> (2010-10-20)
diff --git a/profiles/base/use.stable.mask b/profiles/base/use.stable.mask
index 23119a063249..db3f89d740ed 100644
--- a/profiles/base/use.stable.mask
+++ b/profiles/base/use.stable.mask
@@ -1,9 +1,14 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# This file requires eapi 5 or later. New entries go on top.
# Please use the same syntax as in use.mask

+# Michał Górny <mgo...@gentoo.org> (2022-05-08)
+# Mask until dev-lang/python:3.11 becomes stable.
+python_targets_python3_11
+python_single_target_python3_11
+
# Brian Evans <grkn...@gentoo.org> (2021-11-29)
# Mask 8.1 as it is currently unstable only
php_targets_php8-1
diff --git a/profiles/desc/python_single_target.desc b/profiles/desc/python_single_target.desc
index d670f950de72..6c978694943c 100644
--- a/profiles/desc/python_single_target.desc
+++ b/profiles/desc/python_single_target.desc
@@ -6,4 +6,5 @@
python3_8 - Build for Python 3.8 only
python3_9 - Build for Python 3.9 only
python3_10 - Build for Python 3.10 only
+python3_11 - Build for Python 3.11 only
pypy3 - Build for PyPy3 only
diff --git a/profiles/desc/python_targets.desc b/profiles/desc/python_targets.desc
index ba8b8ea5eff8..ad77fbf5b60f 100644
--- a/profiles/desc/python_targets.desc
+++ b/profiles/desc/python_targets.desc
@@ -6,4 +6,5 @@
python3_8 - Build with Python 3.8
python3_9 - Build with Python 3.9
python3_10 - Build with Python 3.10
+python3_11 - Build with Python 3.11
pypy3 - Build with PyPy3
--
2.35.1

Michał Górny

unread,
May 8, 2022, 2:30:03 PM5/8/22
to
Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
...ython-3.11.0_beta1.ebuild => python-3.11.0_beta1-r1.ebuild} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename dev-lang/python/{python-3.11.0_beta1.ebuild => python-3.11.0_beta1-r1.ebuild} (99%)

diff --git a/dev-lang/python/python-3.11.0_beta1.ebuild b/dev-lang/python/python-3.11.0_beta1-r1.ebuild
similarity index 99%
rename from dev-lang/python/python-3.11.0_beta1.ebuild
rename to dev-lang/python/python-3.11.0_beta1-r1.ebuild
index 856edae9f10c..b26c9312a617 100644
--- a/dev-lang/python/python-3.11.0_beta1.ebuild
+++ b/dev-lang/python/python-3.11.0_beta1-r1.ebuild
@@ -79,8 +79,7 @@ BDEPEND="
RDEPEND+="
!build? ( app-misc/mime-types )
"
-# TODO: enable this after adding eclass support
-if [[ ${PV} != *_alpha* ]] && false; then
+if [[ ${PV} != *_alpha* ]]; then
RDEPEND+="
dev-lang/python-exec[python_targets_python${PYVER/./_}(-)]
"
--
2.35.1

Michał Górny

unread,
May 8, 2022, 2:30:03 PM5/8/22
to
Hi,

Here's a patchset to enable Python 3.11 support in the eclasses.
Along with the usual mechanical changes, I have refactored the tests
to avoid repetition and cover verifying that all the mechanical changes
were done.

--
Best regards,
Michał Górny

Michał Górny (6):
python-utils-r1.eclass: Add support for python3.11
eclass/tests/python-utils-r1.sh: Streamline the tests
eclass/tests/python-utils-r1.eclass: Add tests for adding new impls
profiles: Add flags for python3.11
dev-lang/python-exec: Enable python3.11 support
dev-lang/python: Add python-exec dep to 3.11.0_beta1

dev-lang/python-exec/python-exec-2.4.8.ebuild | 2 +-
...1.ebuild => python-3.11.0_beta1-r1.ebuild} | 3 +-
eclass/python-utils-r1.eclass | 10 +-
eclass/tests/python-utils-r1.sh | 133 +++++++++---------
profiles/base/package.use.force | 1 +
profiles/base/use.stable.mask | 7 +-
profiles/desc/python_single_target.desc | 1 +
profiles/desc/python_targets.desc | 1 +
8 files changed, 80 insertions(+), 78 deletions(-)
rename dev-lang/python/{python-3.11.0_beta1.ebuild => python-3.11.0_beta1-r1.ebuild} (99%)

--
2.35.1

Sam James

unread,
May 8, 2022, 7:20:03 PM5/8/22
to


> On 8 May 2022, at 19:26, Michał Górny <mgo...@gentoo.org> wrote:
>
> Hi,
>
> Here's a patchset to enable Python 3.11 support in the eclasses.
> Along with the usual mechanical changes, I have refactored the tests
> to avoid repetition and cover verifying that all the mechanical changes
> were done.
>

LGTM. As discussed on the PR (https://github.com/gentoo/gentoo/pull/25383), we want
the Python guide to be updated too, but you're already covering that.

> --
> Best regards,
> Michał Górny
>
> Michał Górny (6):
> python-utils-r1.eclass: Add support for python3.11
> eclass/tests/python-utils-r1.sh: Streamline the tests
> eclass/tests/python-utils-r1.eclass: Add tests for adding new impls
> profiles: Add flags for python3.11
> dev-lang/python-exec: Enable python3.11 support
> dev-lang/python: Add python-exec dep to 3.11.0_beta1
>
> dev-lang/python-exec/python-exec-2.4.8.ebuild | 2 +-
> ...1.ebuild => python-3.11.0_beta1-r1.ebuild} | 3 +-
> eclass/python-utils-r1.eclass | 10 +-
> eclass/tests/python-utils-r1.sh | 133 +++++++++---------
> profiles/base/package.use.force | 1 +
> profiles/base/use.stable.mask | 7 +-
> profiles/desc/python_single_target.desc | 1 +
> profiles/desc/python_targets.desc | 1 +
> 8 files changed, 80 insertions(+), 78 deletions(-)
> rename dev-lang/python/{python-3.11.0_beta1.ebuild => python-3.11.0_beta1-r1.ebuild} (99%)
>

Best,
sam

> --
> 2.35.1
>
>

signature.asc
0 new messages