build: remove .python-version (#1513)

# What does this PR do?
the current `.python-version` file forces `uv` to
setup the development environment with Python 3.10

this causes an error if a dev system does not have
Python 3.10, even though the project officially
supports newer versions of Python as well

since `uv` can use the `pyproject.toml` to determine
python versions, we can safely remove this file from
the repo and subsequent git tracking

follows up on https://github.com/meta-llama/llama-stack/pull/1172

## Test Plan
N/A

---------

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
This commit is contained in:
Nathan Weinberg 2025-03-12 23:08:24 -04:00 committed by GitHub
parent a505bf45a3
commit d263edbf90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View file

@ -22,3 +22,4 @@ pyrightconfig.json
venv/ venv/
pytest-report.xml pytest-report.xml
.coverage .coverage
.python-version

View file

@ -1 +0,0 @@
3.10

View file

@ -61,6 +61,7 @@ outlined on that page and do not file a public issue.
We use [uv](https://github.com/astral-sh/uv) to manage python dependencies and virtual environments. We use [uv](https://github.com/astral-sh/uv) to manage python dependencies and virtual environments.
You can install `uv` by following this [guide](https://docs.astral.sh/uv/getting-started/installation/). You can install `uv` by following this [guide](https://docs.astral.sh/uv/getting-started/installation/).
You can install the dependencies by running: You can install the dependencies by running:
```bash ```bash
@ -70,6 +71,11 @@ uv pip install -e .
source .venv/bin/activate source .venv/bin/activate
``` ```
> [!NOTE]
> You can pin a specific version of Python to use for `uv` by adding a `.python-version` file in the root project directory.
> Otherwise, `uv` will automatically select a Python version according to the `requires-python` section of the `pyproject.toml`.
> For more info, see the [uv docs around Python versions](https://docs.astral.sh/uv/concepts/python-versions/).
Note that you can create a dotenv file `.env` that includes necessary environment variables: Note that you can create a dotenv file `.env` that includes necessary environment variables:
``` ```
LLAMA_STACK_BASE_URL=http://localhost:8321 LLAMA_STACK_BASE_URL=http://localhost:8321