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: Unbundle crate libraries libcst_derive, libcst
Date: Thu, 19 Nov 2026 00:08:05 GMT [thread overview]
Message-ID: <179504688539.1.13009096692322993698.rpms-python-libcst-d112b30289cd@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-19 0:08 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=179504688539.1.13009096692322993698.rpms-python-libcst-d112b30289cd@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