Skip to content

Commit 8661dd8

Browse files
committed
Fix regression in when handling.
1 parent 10c249b commit 8661dd8

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGES.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Release Notes
22

3+
## 0.23.1
4+
5+
Fix regression in `when` handling for 1st defined `[[tool.dev-cmd.python]]`.
6+
37
## 0.23.0
48

59
This release re-works `--python` venv setup customization with breaking TOML schema changes. Please
610
review https://github.com/jsirois/dev-cmd/blob/main/README.md#custom-pythons to learn about the new
7-
features and TOML structure changes under the `[tool.dev-cmd] python` key.
11+
features and TOML structure changes under the `[toolAlso provid.dev-cmd] python` key.
812

913
## 0.22.0
1014

dev_cmd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Copyright 2024 John Sirois.
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

4-
__version__ = "0.23.0"
4+
__version__ = "0.23.1"

dev_cmd/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ def _parse_pythons(
732732
for index, python_data in enumerate(
733733
_assert_list_dict_str_keys(python_config_data, path="[tool.dev-cmd] `python`")
734734
):
735+
when = _parse_when(python_data, table_path=f"[tool.dev-cmd] `python[{index}]`")
735736
if index == 0:
736737
defaults = _parse_python(0, python_data, pyproject_data)
737-
when = _parse_when(python_data, table_path=f"[tool.dev-cmd] `python[{index}]`")
738738
if when and not when.evaluate(marker_environment):
739739
continue
740740
if activated_index is not None:

0 commit comments

Comments
 (0)