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] f44: Simplify and update build conditionals
Date: Thu, 09 Jul 2026 05:13:44 GMT [thread overview]
Message-ID: <178357402457.1.7610997765708039849.rpms-python-libcst-4577a6e4097e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-libcst
Branch : f44
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=f44
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
reply other threads:[~2026-07-09 5: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=178357402457.1.7610997765708039849.rpms-python-libcst-4577a6e4097e@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