We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26ceb55 commit 68e60a4Copy full SHA for 68e60a4
conf.py
@@ -172,13 +172,7 @@
172
with open("include/release-cycle.json", encoding="UTF-8") as _f:
173
_cycle = json.load(_f)
174
175
-_main_entries = [v for v, d in _cycle.items() if d.get("branch") == "main"]
176
-if len(_main_entries) != 1:
177
- raise RuntimeError(
178
- "release-cycle.json must contain exactly one entry with 'branch': 'main'"
179
- )
180
-
181
-_main_version = _main_entries[0]
+main_version = next(version for version, data in _cycle.items() if data.get("branch") == "main")
182
183
# prolog and epilogs
184
rst_prolog = f"""
0 commit comments