astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
11.72k stars 321 forks source link

Warn when an unsupported Python version is encountered #3250

Closed zanieb closed 2 weeks ago

zanieb commented 2 weeks ago

I rebased https://github.com/astral-sh/uv/pull/2757 then realized that we want to implement this for more than uv venv.

Closes https://github.com/astral-sh/uv/issues/2587 Closes https://github.com/astral-sh/uv/issues/2757

❯ cargo run -q -- pip install -p /Users/mz/bin/python3.7 anyio
warning: uv is only compatible with Python 3.8+, found Python 3.7.17.
Audited 1 package in 84ms

❯ cargo run -q -- venv -p /Users/mz/bin/python3.7
warning: uv is only compatible with Python 3.8+, found Python 3.7.17.
Using Python 3.7.17 interpreter at: /Users/mz/bin/python3.7
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate