Add uv python pin --rm to remove .python-version pins (#13860)

I realized it is non-trivial to delete the global Python version pin,
and that we were missing this simple functionality
This commit is contained in:
Zanie Blue
2025-06-05 12:05:42 -05:00
committed by GitHub
parent 789a246cf3
commit 062b6ab743
6 changed files with 85 additions and 0 deletions
+1
View File
@@ -2904,6 +2904,7 @@ uv python pin [OPTIONS] [REQUEST]
</dd><dt id="uv-python-pin--resolved"><a href="#uv-python-pin--resolved"><code>--resolved</code></a></dt><dd><p>Write the resolved Python interpreter path instead of the request.</p>
<p>Ensures that the exact same interpreter is used.</p>
<p>This option is usually not safe to use when committing the <code>.python-version</code> file to version control.</p>
</dd><dt id="uv-python-pin--rm"><a href="#uv-python-pin--rm"><code>--rm</code></a></dt><dd><p>Remove the Python version pin</p>
</dd><dt id="uv-python-pin--verbose"><a href="#uv-python-pin--verbose"><code>--verbose</code></a>, <code>-v</code></dt><dd><p>Use verbose output.</p>
<p>You can configure fine-grained logging using the <code>RUST_LOG</code> environment variable. (<a href="https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives">https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives</a>)</p>
</dd></dl>