Skip to contentSkip to conversation

python3-setuptools-rust: Add release 0.11.6

PATCH In review Leon Anavi 2 participants 3 messages Apr 2, 2021 – Apr 5, 2021

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 python3-setuptools-rust: Add release 0.11.6

Add setuptools-rust release 0.11.6:

- Respect CARGO_BUILD_TARGET environment variable if set.
- Add setuptools_rust.__version__ and require setuptools >= 46.1.

This recipe is required as a dependency of Python packages relying on Rust, for example newer versions of python3-cryptography from layer meta-python.

---
 .../python/python3-setuptools-rust_0.11.6.bb  | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-setuptools-rust_0.11.6.bb
meta/recipes-devtools/python/python3-setuptools-rust_0.11.6.bb new file +28 -0
new file mode 100644
index 0000000000..58b6f8180f
@@ -0,0 +1,28 @@
+SUMMARY = "Setuptools rust extension plugin"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=011cd92e702dd9e6b1a26157b6fd53f5"
+
+SRC_URI[sha256sum] = "a5b5954909cbc5d66b914ee6763f81fa2610916041c7266105a469f504a7c4ca"
+
+inherit pypi setuptools3
+
+#UPSTREAM_CHECK_REGEX = "setuptools_scm-(?P<pver>.*)\.tar"
+
+DEPENDS += "\
+    ${PYTHON_PN}-wheel-native \
+    ${PYTHON_PN}-setuptools-scm-native \
+"
+
+RDEPENDS_${PN} = "\
+    ${PYTHON_PN}-json \
+    ${PYTHON_PN}-py \
+    ${PYTHON_PN}-setuptools \
+    ${PYTHON_PN}-toml \
+"
+
+RDEPENDS_${PN}_class-native = "\
+    ${PYTHON_PN}-setuptools-native \
+    ${PYTHON_PN}-toml-native \
+"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines · Leon Anavi

Add setuptools-rust release 0.11.6:

- Respect CARGO_BUILD_TARGET environment variable if set.
- Add setuptools_rust.__version__ and require setuptools >= 46.1.

This recipe is required as a dependency of Python packages relying on Rust, for example newer versions of python3-cryptography from layer meta-python.

Quoted 5 lines

---
 .../python/python3-setuptools-rust_0.11.6.bb | 28 +++++++++++++++++++

 1 file changed, 28 insertions(+)

 create mode 100644 meta/recipes-devtools/python/python3-setuptools-rust_0.11.6.bb

If this is targeting OE-Core (hard to tell from the subject line including meta-oe), it has no maintainers entry. I'm also a little surprised there is no rust dependency. Adding rust is something we deferred to the next development cycle.

Cheers,

Richard

author
#2 lore raw

Hi Richard,

Quoted 10 lines · Richard Purdie
Quoted 9 lines · Leon Anavi

Add setuptools-rust release 0.11.6:

- Respect CARGO_BUILD_TARGET environment variable if set.
- Add setuptools_rust.__version__ and require setuptools >= 46.1.

This recipe is required as a dependency of Python packages relying on Rust, for example newer versions of python3-cryptography from layer meta-python.

Quoted 7 lines
Quoted 5 lines
---
  .../python/python3-setuptools-rust_0.11.6.bb  | 28 +++++++++++++++++++
  1 file changed, 28 insertions(+)

 create mode 100644 meta/recipes-devtools/python/python3-setuptools-rust_0.11.6.bb

If this is targeting OE-Core (hard to tell from the subject line including meta-oe), it has no maintainers entry. I'm also a little

Yes, sorry, the patch is targeting OE-Core for consistency with other Python3 recipes likes python3-setuptools and python3-setuptools-scm.

Quoted 2 lines

surprised there is no rust dependency. Adding rust is something we deferred to the next development cycle.

I've I heard that rust is expected in the next development cycle because if this at the moment I definitely want to avoid dependency on meta-rust.

Please let me know if python3-setuptools-rust can be accepted in OE-Core, if I need to modify it or just to wait for the start of the new development cycle when rust will be in OE-Core.

Thanks,
Leon

Quoted 5 lines

Cheers,

Richard

Signature · 3 lines
Leon Anavi
Software Engineer
konsulko.com