public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-tomlkit] rawhide: Add a bootstrap to avoid circular dependency on pytest
@ 2026-10-19 16:43 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-10-19 16:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-tomlkit
Branch : rawhide
Commit : 94858980c8f68475faaaac57e05b57eb1c8c9dff
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-10-19T11:07:31+02:00
Stats : +10/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-tomlkit/c/94858980c8f68475faaaac57e05b57eb1c8c9dff?branch=rawhide
Log:
Add a bootstrap to avoid circular dependency on pytest
---
diff --git a/python-tomlkit.spec b/python-tomlkit.spec
index 12a6dac..c9b3595 100644
--- a/python-tomlkit.spec
+++ b/python-tomlkit.spec
@@ -11,6 +11,11 @@ You can also create new TOML documents from scratch using the provided helpers.
Part of the implementation has been adapted, improved and fixed from Molten.}
+# Break a circular dependency on tomlkit-hatchling-pygments-pytest
+# during the new Python bootstrap
+%bcond bootstrap 0
+%bcond tests %{without bootstrap}
+
Name: python-%{pypi_name}
Summary: Style preserving TOML library
Version: 0.13.2
@@ -39,9 +44,11 @@ BuildArch: noarch
BuildRequires: python3-devel
+%if %{with tests}
# test dependencies
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(pyyaml)
+%endif
%description %{common_description}
@@ -70,7 +77,10 @@ Summary: %{summary}
%check
+%pyproject_check_import
+%if %{with tests}
%pytest
+%endif
%files -n python3-%{pypi_name} -f %{pyproject_files}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-19 16:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 16:43 [rpms/python-tomlkit] rawhide: Add a bootstrap to avoid circular dependency on pytest Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox