public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-libcst] rawhide: Simplify and update build conditionals
@ 2026-07-08  9:12 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-08  9:12 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-libcst
Branch : rawhide
Commit : 4577a6e4097ed75c7f664040fe14b1bac9304ff8
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-07-07T10:41:15+01:00
Stats  : +8/-23 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-libcst/c/4577a6e4097ed75c7f664040fe14b1bac9304ff8?branch=rawhide

Log:
Simplify and update build conditionals

---
diff --git a/python-libcst.spec b/python-libcst.spec
index b3b542b..cb49592 100644
--- a/python-libcst.spec
+++ b/python-libcst.spec
@@ -1,19 +1,9 @@
-%bcond_with bootstrap
-
-%if 0%{?rhel}
-%bcond_with tests
-%else
-%if %{with bootstrap}
 # need updated libcst to update hypothesmith
 # and older hypothesmith does not work with newer hypothesis
-%bcond_with tests
-%else
-%bcond_without tests
-%endif
-%endif
-
+%bcond bootstrap 0
+%bcond tests %{without bootstrap}
 # Use --with all_tests to run all tests
-%bcond_with all_tests
+%bcond all_tests 0
 
 Name:           python-libcst
 Version:        1.8.0
@@ -117,20 +107,15 @@ cd ..
 %check
 %pyproject_check_import -e 'libcst.tests.*'
 %if %{with tests}
+%if %{without all_tests}
+ignore="${ignore-} --ignore=libcst/codegen/tests/test_codegen_clean.py"
+ignore="${ignore-} --ignore=libcst/metadata/tests/test_type_inference_provider.py"
+%endif
 # libcst.native is not available in build directory
 # test the pure Python codepath for now
 # (TODO: test *both* paths)
 export LIBCST_PARSER_TYPE=pure
-%pyproject_check_import -e 'libcst.tests.*'
-%if %{with all_tests}
-%pytest -v
-%else
-%pytest -v \
-  --ignore=libcst/codegen/tests/test_codegen_clean.py \
-  --ignore=libcst/metadata/tests/test_type_inference_provider.py
-# end all_tests
-%endif
-# end tests
+%pytest ${ignore-} -v
 %endif
 
 

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

only message in thread, other threads:[~2026-07-08  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-08  9:12 [rpms/python-libcst] rawhide: Simplify and update build conditionals 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