Skip to contentSkip to conversation

python3-versioneer: add recipe

PATCH New Trevor Gamblin 1 participant 2 messages Jul 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-versioneer: add recipe

This module is required by newer versions of pandas, so add it as a recipe.

---
 .../packagegroups/packagegroup-meta-python.bb  |  1 +
 .../python/python3-versioneer_0.29.bb          | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-versioneer_0.29.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index b23d24c6d4..9500f80e03 100644
@@ -446,6 +446,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-unidiff \
     python3-uritemplate \
     python3-vcversioner \
+    python3-versioneer \
     python3-versiontools \
     python3-visitor \
     python3-waitress \
meta-python/recipes-devtools/python/python3-versioneer_0.29.bb new file +18 -0
new file mode 100644
index 0000000000..bdfbfd1be1
@@ -0,0 +1,18 @@
+SUMMARY = "Easy VCS-based management of project version strings"
+HOMEPAGE = "https://github.com/python-versioneer/python-versioneer"
+SECTION = "devel/python"
+
+LICENSE = "Unlicense"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=f4c62131f879a8445e16a7f265aea635"
+
+SRC_URI[sha256sum] = "5ab283b9857211d61b53318b7c792cf68e798e765ee17c27ade9f6c924235731"
+
+inherit pypi python_setuptools_build_meta
+
+RDEPENDS:${PN} += "\
+    python3-json \
+    python3-netclient \
+    python3-tomllib \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/2 python-pandas: upgrade 1.5.3 -> 2.0.3

pandas now requires versioneer, so add that to the DEPENDS list.

Changelog: https://github.com/pandas-dev/pandas/releases

---
 .../{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb}  | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-pandas_1.5.3.bb => python3-pandas_2.0.3.bb} (77%)
meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb renamed from meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb +5 -3
similarity index 77%
rename from meta-python/recipes-devtools/python/python3-pandas_1.5.3.bb
rename to meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb
index 129c3147cf..87a173c8a2 100644
@@ -4,14 +4,16 @@ high-performance, easy-to-use data structures and data analysis tools for \
 the Python programming language."
 HOMEPAGE = "http://pandas.pydata.org/"
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c1cc9ab35a8b2aabf933cd6d245b5db3"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=cb819092901ddb13a7d0a4f5e05f098a"
 
-SRC_URI[sha256sum] = "74a3fd7e5a7ec052f183273dc7b0acd3a863edf7520f5d3a1765c04ffdb3b0b1"
+SRC_URI[sha256sum] = "c02f372a88e0d17f36d3093a644c73cfc1788e876a7c4bcb4020a77512e2043c"
 
 inherit pypi setuptools3
 
 DEPENDS += " \
-    ${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \
+    ${PYTHON_PN}-cython-native \
+    ${PYTHON_PN}-numpy-native \
+    ${PYTHON_PN}-versioneer-native \
 "
 
 PACKAGESPLITFUNCS =+ "fix_cythonized_sources"
Signature · 1 line
2.41.0