Skip to contentSkip to conversation

python3-scikit-build: upgrade 0.16.7 -> 0.17.6

PATCH Superseded alperak 2 participants 3 messages Feb 3, 2024 – Feb 4, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

alperak

author
#0 lore raw

PATCH 1/1 python3-scikit-build: upgrade 0.16.7 -> 0.17.6

Moved to hatchling as a build backend and requires hatch-fancy-pypi-readme, hatch-vcs. Also, added tomli as a RDEPENDS.

As stated in the upstream, the license updated to MIT only.

Changelog: https://github.com/scikit-build/scikit-build/releases

---
 .../python/python3-scikit-build_0.16.7.bb     | 21 -----------------
 .../python/python3-scikit-build_0.17.6.bb     | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 21 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb
meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -21
deleted file mode 100644
index c033c56ba..000000000
@@ -1,21 +0,0 @@
-SUMMARY = "Improved build system generator for Python C/C++/Fortran/Cython extensions"
-LICENSE = "MIT & BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=7c96d2b08b3cec6d3c67fb864d1fd8cc"
-
-DEPENDS = "python3-setuptools-scm-native"
-
-PYPI_PACKAGE = "scikit-build"
-
-inherit pypi python_setuptools_build_meta
-SRC_URI[sha256sum] = "a9b9cc7479b71e6c8d434596dfade025253aae23adb22a9a2d85850fd51cecfd"
-
-RDEPENDS:${PN} = " \
-	python3-distro \
-	python3-packaging \
-	python3-setuptools \
-	python3-typing-extensions \
-	python3-wheel \
-	cmake \
-"
-
-BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +23 -0
new file mode 100644
index 000000000..8f6e40fa0
@@ -0,0 +1,23 @@
+SUMMARY = "Improved build system generator for Python C/C++/Fortran/Cython extensions"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7c96d2b08b3cec6d3c67fb864d1fd8cc"
+
+DEPENDS = "${PYTHON_PN}-hatch-vcs-native ${PYTHON_PN}-hatch-fancy-pypi-readme-native"
+
+PYPI_PACKAGE = "scikit_build"
+
+inherit pypi python_hatchling
+
+SRC_URI[sha256sum] = "b51a51a36b37c42650994b5047912f59b22e3210b23e321f287611f9ef6e5c9d"
+
+RDEPENDS:${PN} = " \
+	${PYTHON_PN}-distro \
+	${PYTHON_PN}-packaging \
+	${PYTHON_PN}-setuptools \
+	${PYTHON_PN}-tomli \
+	${PYTHON_PN}-typing-extensions \
+	${PYTHON_PN}-wheel \
+	cmake \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1
#1 lore raw
Quoted 2 lines · Alper Ak

Moved to hatchling as a build backend and requires hatch-fancy-pypi-readme, hatch-vcs. Also, added tomli as a RDEPENDS.

We do not actually need tomli, since Python 3.11+ has built in tomllib. This gates it to Python 3.10 and lower:
https://github.com/scikit-build/scikit-build/blob/main/pyproject.toml#L34

(The host Python version should not matter, we use our own python3-native, which is currently 3.12.1)

Quoted 96 lines

As stated in the upstream, the license updated to MIT only.

Changelog: https://github.com/scikit-build/scikit-build/releases

---
 .../python/python3-scikit-build_0.16.7.bb     | 21 -----------------
 .../python/python3-scikit-build_0.17.6.bb     | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 21 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/
python3-scikit-build_0.16.7.bb
 create mode 100644 meta-python/recipes-devtools/python/

python3-scikit-build_0.17.6.bb

(quoted diff) +0 -0

python3-scikit-build_0.16.7.bb b/meta-python/recipes-devtools/python/ python3-scikit-build_0.16.7.bb
deleted file mode 100644
index c033c56ba..000000000

meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -1
@@ -1,21 +0,0 @@
-SUMMARY = "Improved build system generator for Python

C/C++/Fortran/Cython extensions"

meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -9
-LICENSE = "MIT & BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=7c96d2b08b3cec6d3c67fb864d1fd8cc"
-
-DEPENDS = "python3-setuptools-scm-native"
-
-PYPI_PACKAGE = "scikit-build"
-
-inherit pypi python_setuptools_build_meta
-SRC_URI[sha256sum] =

"a9b9cc7479b71e6c8d434596dfade025253aae23adb22a9a2d85850fd51cecfd"

meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -11
-
-RDEPENDS:${PN} = " \
-       python3-distro \
-       python3-packaging \
-       python3-setuptools \
-       python3-typing-extensions \
-       python3-wheel \
-       cmake \
-"
-
-BBCLASSEXTEND = "native nativesdk"
(quoted diff) +0 -0

python3-scikit-build_0.17.6.bb b/meta-python/recipes-devtools/python/ python3-scikit-build_0.17.6.bb
new file mode 100644
index 000000000..8f6e40fa0

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +1 -0
@@ -0,0 +1,23 @@
+SUMMARY = "Improved build system generator for Python

C/C++/Fortran/Cython extensions"

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +4 -0
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7c96d2b08b3cec6d3c67fb864d1fd8cc"
+
+DEPENDS = "${PYTHON_PN}-hatch-vcs-native

${PYTHON_PN}-hatch-fancy-pypi-readme-native"

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +6 -0
+
+PYPI_PACKAGE = "scikit_build"
+
+inherit pypi python_hatchling
+
+SRC_URI[sha256sum] =

"b51a51a36b37c42650994b5047912f59b22e3210b23e321f287611f9ef6e5c9d"

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +12 -1
+
+RDEPENDS:${PN} = " \
+       ${PYTHON_PN}-distro \
+       ${PYTHON_PN}-packaging \
+       ${PYTHON_PN}-setuptools \
+       ${PYTHON_PN}-tomli \
+       ${PYTHON_PN}-typing-extensions \
+       ${PYTHON_PN}-wheel \
+       cmake \
+"
+
+BBCLASSEXTEND = "native nativesdk"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108556):
https://lists.openembedded.org/g/openembedded-devel/message/108556
Mute This Topic: https://lists.openembedded.org/mt/104145984/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw

Thanks for the feedback, sent patch v2.

Tim Orling <[email protected]>, 4 Şub 2024 Paz, 05:55 tarihinde şunu yazdı:

Quoted 111 lines · Alper Ak
Quoted 3 lines

Moved to hatchling as a build backend and requires hatch-fancy-pypi-readme, hatch-vcs. Also, added tomli as a RDEPENDS.

We do not actually need tomli, since Python 3.11+ has built in tomllib. This gates it to Python 3.10 and lower:
https://github.com/scikit-build/scikit-build/blob/main/pyproject.toml#L34

(The host Python version should not matter, we use our own python3-native, which is currently 3.12.1)

Quoted 96 lines

As stated in the upstream, the license updated to MIT only.

Changelog: https://github.com/scikit-build/scikit-build/releases

---
 .../python/python3-scikit-build_0.16.7.bb     | 21 -----------------
 .../python/python3-scikit-build_0.17.6.bb     | 23 +++++++++++++++++++
 2 files changed, 23 insertions(+), 21 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/
python3-scikit-build_0.16.7.bb
 create mode 100644 meta-python/recipes-devtools/python/

python3-scikit-build_0.17.6.bb

(quoted diff) +0 -0

python3-scikit-build_0.16.7.bb b/meta-python/recipes-devtools/python/ python3-scikit-build_0.16.7.bb
deleted file mode 100644
index c033c56ba..000000000

meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -1
@@ -1,21 +0,0 @@
-SUMMARY = "Improved build system generator for Python

C/C++/Fortran/Cython extensions"

meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -9
-LICENSE = "MIT & BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=7c96d2b08b3cec6d3c67fb864d1fd8cc"
-
-DEPENDS = "python3-setuptools-scm-native"
-
-PYPI_PACKAGE = "scikit-build"
-
-inherit pypi python_setuptools_build_meta
-SRC_URI[sha256sum] =

"a9b9cc7479b71e6c8d434596dfade025253aae23adb22a9a2d85850fd51cecfd"

meta-python/recipes-devtools/python/python3-scikit-build_0.16.7.bb deleted +0 -11
-
-RDEPENDS:${PN} = " \
-       python3-distro \
-       python3-packaging \
-       python3-setuptools \
-       python3-typing-extensions \
-       python3-wheel \
-       cmake \
-"
-
-BBCLASSEXTEND = "native nativesdk"
(quoted diff) +0 -0

python3-scikit-build_0.17.6.bb b/meta-python/recipes-devtools/python/ python3-scikit-build_0.17.6.bb
new file mode 100644
index 000000000..8f6e40fa0

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +1 -0
@@ -0,0 +1,23 @@
+SUMMARY = "Improved build system generator for Python

C/C++/Fortran/Cython extensions"

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +4 -0
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7c96d2b08b3cec6d3c67fb864d1fd8cc"
+
+DEPENDS = "${PYTHON_PN}-hatch-vcs-native

${PYTHON_PN}-hatch-fancy-pypi-readme-native"

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +6 -0
+
+PYPI_PACKAGE = "scikit_build"
+
+inherit pypi python_hatchling
+
+SRC_URI[sha256sum] =

"b51a51a36b37c42650994b5047912f59b22e3210b23e321f287611f9ef6e5c9d"

meta-python/recipes-devtools/python/python3-scikit-build_0.17.6.bb new file +12 -1
+
+RDEPENDS:${PN} = " \
+       ${PYTHON_PN}-distro \
+       ${PYTHON_PN}-packaging \
+       ${PYTHON_PN}-setuptools \
+       ${PYTHON_PN}-tomli \
+       ${PYTHON_PN}-typing-extensions \
+       ${PYTHON_PN}-wheel \
+       cmake \
+"
+
+BBCLASSEXTEND = "native nativesdk"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108556):
https://lists.openembedded.org/g/openembedded-devel/message/108556
Mute This Topic: https://lists.openembedded.org/mt/104145984/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-