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] rawhide: Update to 1.9.0 (close RHBZ#2520271)
Date: Mon, 28 Sep 2026 08:13:30 GMT [thread overview]
Message-ID: <179058321014.1.10346296735425857614.rpms-python-libcst-613c70a34450@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-28 8:13 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=179058321014.1.10346296735425857614.rpms-python-libcst-613c70a34450@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