* [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Use CYTHON_FORCE_REGEN=1
@ 2023-05-27 8:41 Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 2/4] distutils-r1.eclass: Include dev-python/cython version in log Michał Górny
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Michał Górny @ 2023-05-27 8:41 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index ec1dd08b197c..6835444d3c5f 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1828,6 +1828,10 @@ distutils-r1_run_phase() {
if [[ ${DISTUTILS_EXT} ]]; then
local -x CPPFLAGS="${CPPFLAGS} $(usex debug '-UNDEBUG' '-DNDEBUG')"
+ # always generate .c files from .pyx files to ensure we get latest
+ # bug fixes from Cython (this works only when setup.py is using
+ # cythonize() but it's better than nothing)
+ local -x CYTHON_FORCE_REGEN=1
fi
# How to build Python modules in different worlds...
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-dev] [PATCH 2/4] distutils-r1.eclass: Include dev-python/cython version in log
2023-05-27 8:41 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Use CYTHON_FORCE_REGEN=1 Michał Górny
@ 2023-05-27 8:41 ` Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 4/4] python-utils-r1.eclass: " Michał Górny
2 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2023-05-27 8:41 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 6835444d3c5f..bea3cea56c99 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -925,6 +925,11 @@ _distutils-r1_print_package_versions() {
dev-python/gpep517
dev-python/installer
)
+ if [[ ${DISTUTILS_EXT} ]]; then
+ packages+=(
+ dev-python/cython
+ )
+ fi
case ${DISTUTILS_USE_PEP517} in
flit)
packages+=(
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions
2023-05-27 8:41 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Use CYTHON_FORCE_REGEN=1 Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 2/4] distutils-r1.eclass: Include dev-python/cython version in log Michał Górny
@ 2023-05-27 8:41 ` Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 4/4] python-utils-r1.eclass: " Michał Górny
2 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2023-05-27 8:41 UTC (permalink / raw
To: gentoo-dev; +Cc: Arthur Zamarin, Michał Górny
From: Arthur Zamarin <arthurzam@gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index bea3cea56c99..0ccd59fb6c78 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -220,7 +220,7 @@ _distutils_set_globals() {
;;
hatchling)
bdep+='
- >=dev-python/hatchling-1.12.2[${PYTHON_USEDEP}]
+ >=dev-python/hatchling-1.17.0[${PYTHON_USEDEP}]
'
;;
jupyter)
@@ -230,7 +230,7 @@ _distutils_set_globals() {
;;
maturin)
bdep+='
- >=dev-util/maturin-0.14.10[${PYTHON_USEDEP}]
+ >=dev-util/maturin-0.14.17[${PYTHON_USEDEP}]
'
;;
no)
@@ -239,7 +239,7 @@ _distutils_set_globals() {
;;
meson-python)
bdep+='
- >=dev-python/meson-python-0.12.0[${PYTHON_USEDEP}]
+ >=dev-python/meson-python-0.12.1[${PYTHON_USEDEP}]
'
;;
pbr)
@@ -249,23 +249,23 @@ _distutils_set_globals() {
;;
pdm)
bdep+='
- >=dev-python/pdm-pep517-1.0.6[${PYTHON_USEDEP}]
+ >=dev-python/pdm-pep517-1.1.4[${PYTHON_USEDEP}]
'
;;
poetry)
bdep+='
- >=dev-python/poetry-core-1.4.0[${PYTHON_USEDEP}]
+ >=dev-python/poetry-core-1.5.2[${PYTHON_USEDEP}]
'
;;
setuptools)
bdep+='
- >=dev-python/setuptools-67.2.0[${PYTHON_USEDEP}]
- >=dev-python/wheel-0.38.4[${PYTHON_USEDEP}]
+ >=dev-python/setuptools-67.7.2[${PYTHON_USEDEP}]
+ >=dev-python/wheel-0.40.0[${PYTHON_USEDEP}]
'
;;
sip)
bdep+='
- >=dev-python/sip-6.7.5-r1[${PYTHON_USEDEP}]
+ >=dev-python/sip-6.7.8[${PYTHON_USEDEP}]
'
;;
standalone)
@@ -600,7 +600,7 @@ distutils_enable_tests() {
test_pkg=">=dev-python/nose-1.3.7_p20221026"
;;
pytest)
- test_pkg=">=dev-python/pytest-7.2.1"
+ test_pkg=">=dev-python/pytest-7.3.1"
;;
setup.py)
;;
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-dev] [PATCH 4/4] python-utils-r1.eclass: Bump min dep versions
2023-05-27 8:41 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Use CYTHON_FORCE_REGEN=1 Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 2/4] distutils-r1.eclass: Include dev-python/cython version in log Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions Michał Górny
@ 2023-05-27 8:41 ` Michał Górny
2 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2023-05-27 8:41 UTC (permalink / raw
To: gentoo-dev; +Cc: Arthur Zamarin, Michał Górny
From: Arthur Zamarin <arthurzam@gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/python-utils-r1.eclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 40792714cc56..52e9e061d6bd 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -441,13 +441,13 @@ _python_export() {
local d
case ${impl} in
python3.10)
- PYTHON_PKG_DEP=">=dev-lang/python-3.10.9-r1:3.10";;
+ PYTHON_PKG_DEP=">=dev-lang/python-3.10.11:3.10";;
python3.11)
- PYTHON_PKG_DEP=">=dev-lang/python-3.11.1-r1:3.11";;
+ PYTHON_PKG_DEP=">=dev-lang/python-3.11.3:3.11";;
python3.12)
PYTHON_PKG_DEP=">=dev-lang/python-3.12.0_beta1:3.12";;
pypy3)
- PYTHON_PKG_DEP='>=dev-python/pypy3-7.3.11-r1:0=';;
+ PYTHON_PKG_DEP='>=dev-python/pypy3-7.3.11_p1:0=';;
*)
die "Invalid implementation: ${impl}"
esac
--
2.40.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Remove obsolete DUS=pyproject.toml support
@ 2022-10-02 16:18 Michał Górny
2022-10-02 16:18 ` [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions Michał Górny
0 siblings, 1 reply; 5+ messages in thread
From: Michał Górny @ 2022-10-02 16:18 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
Remove the obsolete code branches for DISTUTILS_USE_SETUPTOOLS
pyproject.toml variant. dev-python/pyproject2setuppy is last rited now
and there are no consumers of that mode left in ::gentoo.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 19 ++++++-------------
1 file changed, 6 insertions(+), 13 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 60f81473c0a6..d011e5f97ad9 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -150,9 +150,6 @@ esac
#
# - rdepend -- add it to BDEPEND+RDEPEND (e.g. when using pkg_resources)
#
-# - pyproject.toml -- use pyproject2setuptools to install a project
-# using pyproject.toml (flit, poetry...)
-#
# - manual -- do not add the dependency and suppress the checks
# (assumes you will take care of doing it correctly)
#
@@ -293,7 +290,7 @@ _distutils_set_globals() {
rdep+=" ${setuptools_dep}"
;;
pyproject.toml)
- bdep+=' >=dev-python/pyproject2setuppy-22[${PYTHON_USEDEP}]'
+ die "DISTUTILS_USE_SETUPTOOLS=pyproject.toml is no longer supported, use DISTUTILS_USE_PEP517"
;;
*)
die "Invalid DISTUTILS_USE_SETUPTOOLS=${DISTUTILS_USE_SETUPTOOLS}"
@@ -668,9 +665,7 @@ esetup.py() {
fi
local setup_py=( setup.py )
- if [[ ${DISTUTILS_USE_SETUPTOOLS} == pyproject.toml ]]; then
- setup_py=( -m pyproject2setuppy )
- elif [[ ! -f setup.py ]]; then
+ if [[ ! -f setup.py ]]; then
if [[ ! -f setup.cfg ]]; then
die "${FUNCNAME}: setup.py nor setup.cfg not found"
fi
@@ -883,12 +878,10 @@ _distutils-r1_handle_pyproject_toml() {
[[ ${DISTUTILS_USE_SETUPTOOLS} == manual ]] && return
if [[ ! -f setup.py && -f pyproject.toml ]]; then
- if [[ ${DISTUTILS_USE_SETUPTOOLS} != pyproject.toml ]]; then
- eerror "No setup.py found but pyproject.toml is present. Please migrate"
- eerror "the package to use DISTUTILS_USE_PEP517. See:"
- eerror " https://projects.gentoo.org/python/guide/distutils.html"
- die "No setup.py found and PEP517 mode not enabled"
- fi
+ eerror "No setup.py found but pyproject.toml is present. Please migrate"
+ eerror "the package to use DISTUTILS_USE_PEP517. See:"
+ eerror " https://projects.gentoo.org/python/guide/distutils.html"
+ die "No setup.py found and PEP517 mode not enabled"
fi
}
--
2.37.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions
2022-10-02 16:18 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Remove obsolete DUS=pyproject.toml support Michał Górny
@ 2022-10-02 16:18 ` Michał Górny
0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2022-10-02 16:18 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 8fd652ff1e13..d667b31191e2 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -202,7 +202,7 @@ _distutils_set_globals() {
fi
bdep='
- >=dev-python/gpep517-8[${PYTHON_USEDEP}]
+ >=dev-python/gpep517-9[${PYTHON_USEDEP}]
'
case ${DISTUTILS_USE_PEP517} in
flit)
@@ -212,22 +212,22 @@ _distutils_set_globals() {
;;
flit_scm)
bdep+='
- dev-python/flit_scm[${PYTHON_USEDEP}]
+ >=dev-python/flit_scm-1.7.0[${PYTHON_USEDEP}]
'
;;
hatchling)
bdep+='
- >=dev-python/hatchling-1.3.1[${PYTHON_USEDEP}]
+ >=dev-python/hatchling-1.8.1[${PYTHON_USEDEP}]
'
;;
jupyter)
bdep+='
- >=dev-python/jupyter_packaging-0.12.0-r1[${PYTHON_USEDEP}]
+ >=dev-python/jupyter_packaging-0.12.3[${PYTHON_USEDEP}]
'
;;
maturin)
bdep+='
- >=dev-util/maturin-0.12.20[${PYTHON_USEDEP}]
+ >=dev-util/maturin-0.13.3[${PYTHON_USEDEP}]
'
;;
no)
@@ -236,17 +236,17 @@ _distutils_set_globals() {
;;
meson-python)
bdep+='
- dev-python/meson-python[${PYTHON_USEDEP}]
+ >=dev-python/meson-python-0.9.0[${PYTHON_USEDEP}]
'
;;
pbr)
bdep+='
- >=dev-python/pbr-5.9.0[${PYTHON_USEDEP}]
+ >=dev-python/pbr-5.10.0[${PYTHON_USEDEP}]
'
;;
pdm)
bdep+='
- >=dev-python/pdm-pep517-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/pdm-pep517-1.0.4[${PYTHON_USEDEP}]
'
;;
poetry)
@@ -256,7 +256,7 @@ _distutils_set_globals() {
;;
setuptools)
bdep+='
- >=dev-python/setuptools-62.6.0[${PYTHON_USEDEP}]
+ >=dev-python/setuptools-65.3.0[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
'
;;
@@ -277,7 +277,7 @@ _distutils_set_globals() {
eqawarn "is enabled."
fi
else
- local setuptools_dep='>=dev-python/setuptools-42.0.2[${PYTHON_USEDEP}]'
+ local setuptools_dep='>=dev-python/setuptools-65.3.0[${PYTHON_USEDEP}]'
case ${DISTUTILS_USE_SETUPTOOLS:-bdepend} in
no|manual)
--
2.37.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-05-27 8:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-27 8:41 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Use CYTHON_FORCE_REGEN=1 Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 2/4] distutils-r1.eclass: Include dev-python/cython version in log Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions Michał Górny
2023-05-27 8:41 ` [gentoo-dev] [PATCH 4/4] python-utils-r1.eclass: " Michał Górny
-- strict thread matches above, loose matches on Subject: below --
2022-10-02 16:18 [gentoo-dev] [PATCH 1/4] distutils-r1.eclass: Remove obsolete DUS=pyproject.toml support Michał Górny
2022-10-02 16:18 ` [gentoo-dev] [PATCH 3/4] distutils-r1.eclass: Bump min dep versions Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox