Skip to content

Commit 31a0a14

Browse files
committed
build: pin Python in .python-version for both uv and mise
mise reads .python-version once idiomatic_version_file_enable_tools includes python, so the version lives in one file instead of mise.toml plus whatever uv picks. mise still pins uv and buf exactly. [tool.uv] required-version rejects uv older than 0.10 when uv is installed without mise. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent f3d79f0 commit 31a0a14

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎.python-version‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14.5

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ NVIDIA/OpenShell stay on PyPI.
1616
## Development
1717

1818
Tools are managed by [mise](https://mise.jdx.dev/) and dependencies by
19-
[uv](https://docs.astral.sh/uv/).
19+
[uv](https://docs.astral.sh/uv/). The Python version is pinned in
20+
`.python-version`, which both read.
2021

2122
```shell
2223
mise run ci # checks, tests, build, and install smoke test

‎mise.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
min_version = { soft = "2026.9.9" }
1010

11+
# Python is pinned once, in .python-version, which both uv and mise read.
12+
[settings]
13+
idiomatic_version_file_enable_tools = ["python"]
14+
1115
[tools]
12-
python = "3.14.5"
1316
buf = "1.72.0"
1417
uv = "0.10.12"
1518

‎pyproject.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ dev = [
5858
"types-protobuf>=6.32,<7",
5959
]
6060

61+
# mise pins uv exactly (mise.toml); this rejects older versions when uv is
62+
# installed some other way.
63+
[tool.uv]
64+
required-version = ">=0.10"
65+
6166
[tool.setuptools]
6267
package-dir = { "" = "src" }
6368
include-package-data = false

0 commit comments

Comments
 (0)