Respect .python-version files and pyproject.toml in uv python find (#6369)

I was surprised to find we didn't do this — we should find Python
versions as we do everywhere else.
This commit is contained in:
Zanie Blue
2024-08-21 17:08:29 -05:00
committed by GitHub
parent 9a14e028df
commit 7140cdec79
7 changed files with 182 additions and 14 deletions
+4
View File
@@ -3199,6 +3199,10 @@ uv python find [OPTIONS] [REQUEST]
<p>For example, spinners or progress bars.</p>
</dd><dt><code>--no-project</code></dt><dd><p>Avoid discovering a project or workspace.</p>
<p>Otherwise, when no request is provided, the Python requirement of a project in the current directory or parent directories will be used.</p>
</dd><dt><code>--no-python-downloads</code></dt><dd><p>Disable automatic downloads of Python</p>
</dd><dt><code>--offline</code></dt><dd><p>Disable network access.</p>