public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-libcst] rawhide: Unbundle crate libraries libcst_derive, libcst
@ 2026-11-19  0:08 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-19  0:08 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-libcst
Branch : rawhide
Commit : d112b30289cd37eb108dd5f8beb522f389df060f
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-25T16:56:26+01:00
Stats  : +14/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-libcst/c/d112b30289cd37eb108dd5f8beb522f389df060f?branch=rawhide

Log:
Unbundle crate libraries libcst_derive, libcst

---
diff --git a/python-libcst.spec b/python-libcst.spec
index 7ee865e..86603b1 100644
--- a/python-libcst.spec
+++ b/python-libcst.spec
@@ -35,6 +35,9 @@ Source:         %{pypi_source libcst}
 
 BuildRequires:  cargo-rpm-macros
 BuildRequires:  tomcli
+# Forcibly unbundled, so we must depend on these manually.
+BuildRequires:  crate(libcst_derive/default) = %{version}
+BuildRequires:  crate(libcst/default) = %{version}
 
 %if %{with tests}
 # test dependencies are intermingled with dev dependencies
@@ -71,12 +74,16 @@ 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
+# Unbundle crate libraries
+for crate in libcst_derive libcst
+do
+  rm --recursive --verbose "native/${crate}"
+  ln --symbolic "%{cargo_registry}/${crate}-%{version}" "native/${crate}"
+done
 
 %cargo_prep
 
+
 %generate_buildrequires
 for p in libcst_derive libcst; do
   cd native/$p
@@ -137,7 +144,10 @@ LIBCST_PARSER_TYPE=pure %pytest --import-mode=append ${ignore-} -v "${mod}"
 %dnl Python C API. It’s not obvious what’s going wrong here.
 %ifnarch %{power64}
 cd native
-%cargo_test
+# This test in native/libcst_derive doesn’t work (forms the paths to
+# native/libcst_derive/tests/pass/*.rs improperly) when run this way.
+s="${s-} --skip cstnode::trybuild"
+%cargo_test -- -- --exact ${s-}
 %endif
 %endif
 

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

only message in thread, other threads:[~2026-11-19  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  0:08 [rpms/python-libcst] rawhide: Unbundle crate libraries libcst_derive, libcst 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