public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-libcst] rawhide: Update to 1.9.0 (close RHBZ#2520271)
@ 2026-09-28  8:13 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-28  8:13 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-libcst
Branch : rawhide
Commit : 613c70a344501db0c08db998ee440b648eeea49b
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-25T13:51:58+01:00
Stats  : +7/-57 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-libcst/c/613c70a344501db0c08db998ee440b648eeea49b?branch=rawhide

Log:
Update to 1.9.0 (close RHBZ#2520271)

---
diff --git a/libcst-1.8.6-pyo3-0.28.patch b/libcst-1.8.6-pyo3-0.28.patch
deleted file mode 100644
index ebc1a6c..0000000
--- a/libcst-1.8.6-pyo3-0.28.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-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
deleted file mode 100644
index 3cb45bc..0000000
--- a/libcst-fix-metadata.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-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: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" }
- 
- [dev-dependencies]
--criterion = { version = "0.6.0", features = ["html_reports"] }
- difference = "2.0.0"
--rayon = "1.11.0"
- itertools = "0.14.0"
- 
- [[bench]]

diff --git a/python-libcst.spec b/python-libcst.spec
index e951b77..7ee865e 100644
--- a/python-libcst.spec
+++ b/python-libcst.spec
@@ -6,7 +6,7 @@
 %bcond all_tests 0
 
 Name:           python-libcst
-Version:        1.8.6
+Version:        1.9.0
 Release:        %autorelease
 Summary:        A concrete syntax tree with AST-like properties
 
@@ -32,15 +32,9 @@ License:        MIT AND PSF-2.0 AND Apache-2.0
 # LICENSE.dependencies contains a full license breakdown
 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
+BuildRequires:  tomcli
 
 %if %{with tests}
 # test dependencies are intermingled with dev dependencies
@@ -77,6 +71,10 @@ Obsoletes:      python-libcst-doc < 1.1.0-1
 # remove version locks
 find . -name Cargo.lock -print -delete
 
+# drop unused, benchmark-only dev-dependencies
+tomcli set native/libcst/Cargo.toml del dev-dependencies.criterion
+tomcli set native/libcst/Cargo.toml del dev-dependencies.rayon
+
 %cargo_prep
 
 %generate_buildrequires

diff --git a/sources b/sources
index 01e7b41..5da1695 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libcst-1.8.6.tar.gz) = fe6c2b1cb1a9ef2b02e8f73fae3b91fc42af7e2ae78f9c0120dd5417635026aa26ee2cf1413f3ecc1fbbd9655381e2c49a878ec7475c205ab93a89ae7f317100
+SHA512 (libcst-1.9.0.tar.gz) = 1399106b974fef350273beb415a6bfabfd07eac9419a64e68257fabeb350da6903fcfeed2f9e06db3befa59c14cf53e7c450a7e39e5fd991c381cc89fbf41feb

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-28  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28  8:13 [rpms/python-libcst] rawhide: Update to 1.9.0 (close RHBZ#2520271) Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox