package/python-orjson: bump to version 3.7.7
PATCH v5 1/1 package/python-orjson: bump to version 3.7.7
Convert package to use python infrastructure instead of cargo infrastructure.
Signed-off-by James Hilliard <[email protected]>
----
Changes v4 -> v5:
- rebase
Changes v3 -> v4:
- update to 3.7.7
--- package/python-orjson/python-orjson.hash | 5 +++-- package/python-orjson/python-orjson.mk | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-)
package/python-orjson/python-orjson.hash +3 -2
@@ -1,4 +1,5 @@ -# Locally calculated -sha256 2b0259ff26455c4f9ad2290b49ba184a35e98eea4839f0d6d5c2b7d91383b3d9 python-orjson-3.6.8.tar.gz +# Locally calculated after vendoring +sha256 ffd677a941c08c9a6cbaf3f49dba12b353833e8028b70e76cd1091b39e096de0 orjson-3.7.7.tar.gz +# Locally computed sha256 checksums sha256 a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2 LICENSE-APACHE sha256 23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3 LICENSE-MIT
package/python-orjson/python-orjson.mk +12 -12
@@ -4,19 +4,19 @@ # ################################################################################ -PYTHON_ORJSON_VERSION = 3.6.8 -PYTHON_ORJSON_SITE = $(call github,ijl,orjson,$(PYTHON_ORJSON_VERSION)) +PYTHON_ORJSON_VERSION = 3.7.7 +PYTHON_ORJSON_SOURCE = orjson-$(PYTHON_ORJSON_VERSION).tar.gz +PYTHON_ORJSON_SITE = https://files.pythonhosted.org/packages/8a/68/47bc5e624431d77445f06a2d3ba32777fda650f05a2f803ea1dc2b07b65a +PYTHON_ORJSON_SETUP_TYPE = pep517 PYTHON_ORJSON_LICENSE = Apache-2.0 or MIT PYTHON_ORJSON_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT -PYTHON_ORJSON_DEPENDENCIES = host-python-cffi -PYTHON_ORJSON_CARGO_ENV = \ +PYTHON_ORJSON_DEPENDENCIES = host-python-cffi host-python-maturin +PYTHON_ORJSON_ENV = \ + $(PKG_CARGO_ENV) \ PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)" +# We need to vendor the Cargo crates at download time +PYTHON_ORJSON_DOWNLOAD_POST_PROCESS = cargo +PYTHON_ORJSON_DOWNLOAD_DEPENDENCIES = host-rustc +PYTHON_ORJSON_DL_ENV = $(PKG_CARGO_ENV) -# orjson uses "maturin" to generate distribution packages - rather than teach -# buildroot how to understand this, we reach in and install directly. -define PYTHON_ORJSON_INSTALL_TARGET_CMDS - $(INSTALL) -m 0755 -D $(@D)/target/$(RUSTC_TARGET_NAME)/release/liborjson.so \ - $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/orjson.so -endef - -$(eval $(cargo-package)) +$(eval $(python-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello James,
Quoted 5 lines · On Sun, 24 Jul 2022 02:29:28 -0600 James Hilliard <[email protected]>…
Convert package to use python infrastructure instead of cargo infrastructure.
Signed-off-by James Hilliard <[email protected]>----
The separator to use is "---" not "----". If you use "---", git am preserves what's after the "----" in the commit, which is not what we want.
Quoted 8 lines
Changes v4 -> v5:
- rebase
Changes v3 -> v4:
- update to 3.7.7--- package/python-orjson/python-orjson.hash | 5 +++-- package/python-orjson/python-orjson.mk | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-)
I've applied the patch after splitting it: first the conversion to python-package, then the version bump.
Thanks for the help on IRC to iron out the issues!
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot