public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-libcst] epel10: Update PyO3 to 0.29 (fixes RUSTSEC-2026-0176, RUSTSEC-2026-0177)
Date: Thu, 09 Jul 2026 05:42:06 GMT [thread overview]
Message-ID: <178357572689.1.5996037127614352474.rpms-python-libcst-db088fe57b95@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-libcst
Branch : epel10
Commit : db088fe57b9585779fd5612c2a1cf6975c6a62fa
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-07T11:45:05+01:00
Stats : +41/-1 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-libcst/c/db088fe57b9585779fd5612c2a1cf6975c6a62fa?branch=epel10
Log:
Update PyO3 to 0.29 (fixes RUSTSEC-2026-0176, RUSTSEC-2026-0177)
---
diff --git a/libcst-1.8.6-pyo3-0.28.patch b/libcst-1.8.6-pyo3-0.28.patch
new file mode 100644
index 0000000..ebc1a6c
--- /dev/null
+++ b/libcst-1.8.6-pyo3-0.28.patch
@@ -0,0 +1,26 @@
+diff --git a/native/libcst_derive/src/into_py.rs b/native/libcst_derive/src/into_py.rs
+index f5470aa17..bdd8b02d3 100644
+--- a/native/libcst_derive/src/into_py.rs
++++ b/native/libcst_derive/src/into_py.rs
+@@ -69,8 +69,8 @@ fn impl_into_py_enum(ast: &DeriveInput, e: &DataEnum) -> TokenStream {
+ let gen = quote! {
+ use pyo3::types::IntoPyDict as _;
+ #[automatically_derived]
+- impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::PyObject> for #ident #generics {
+- fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::PyObject> {
++ impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::Py<pyo3::PyAny>> for #ident #generics {
++ fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::Py<pyo3::PyAny>> {
+ match self {
+ #(#toks)*
+ }
+@@ -87,8 +87,8 @@ fn impl_into_py_struct(ast: &DeriveInput, e: &DataStruct) -> TokenStream {
+ let gen = quote! {
+ use pyo3::types::IntoPyDict as _;
+ #[automatically_derived]
+- impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::PyObject> for #ident #generics {
+- fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::PyObject> {
++ impl#generics crate::nodes::traits::py::TryIntoPy<pyo3::Py<pyo3::PyAny>> for #ident #generics {
++ fn try_into_py(self, py: pyo3::Python) -> pyo3::PyResult<pyo3::Py<pyo3::PyAny>> {
+ use pyo3::types::PyAnyMethods;
+ let libcst = pyo3::types::PyModule::import(py, "libcst")?;
+ let kwargs = #kwargs_toks ;
diff --git a/libcst-fix-metadata.diff b/libcst-fix-metadata.diff
index 5e85e61..3cb45bc 100644
--- a/libcst-fix-metadata.diff
+++ b/libcst-fix-metadata.diff
@@ -1,6 +1,15 @@
diff -Naur libcst-1.8.6-original/native/libcst/Cargo.toml libcst-1.8.6/native/libcst/Cargo.toml
--- libcst-1.8.6-original/native/libcst/Cargo.toml 2025-11-03 22:30:33.000000000 +0000
-+++ libcst-1.8.6/native/libcst/Cargo.toml 2026-07-07 11:32:33.767523717 +0100
++++ libcst-1.8.6/native/libcst/Cargo.toml 2026-07-07 11:42:02.016593437 +0100
+@@ -36,7 +36,7 @@
+
+ [dependencies]
+ paste = "1.0.15"
+-pyo3 = { version = "0.26", optional = true }
++pyo3 = { version = "0.29", optional = true }
+ thiserror = "2.0.12"
+ peg = "0.8.5"
+ annotate-snippets = "0.11.5"
@@ -45,9 +45,7 @@
libcst_derive = { path = "../libcst_derive", version = "1.8.6" }
diff --git a/python-libcst.spec b/python-libcst.spec
index 767f056..ed60154 100644
--- a/python-libcst.spec
+++ b/python-libcst.spec
@@ -15,7 +15,12 @@ License: MIT AND (MIT AND PSF-2.0) AND Apache-2.0
URL: https://github.com/Instagram/LibCST
Source: %{pypi_source libcst}
# * drop unused, benchmark-only criterion and rayon dev-dependencies
+# * update PyO3 to 0.29 (requires an accompanying source-code patch):
+# https://github.com/Instagram/LibCST/pull/1454#issuecomment-4902787314
Patch: libcst-fix-metadata.diff
+# Source-code patch from https://github.com/Instagram/LibCST/pull/1454 for
+# updating PyO3 from 0.26 to 0.28
+Patch: libcst-1.8.6-pyo3-0.28.patch
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: python3-devel
reply other threads:[~2026-07-09 5:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178357572689.1.5996037127614352474.rpms-python-libcst-db088fe57b95@fedoraproject.org \
--to=code@musicinmybrain.net \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox