chore: use dependency-groups for dev (#2287)

# What does this PR do?

The previous `[project.optional-dependencies]` was misrepresenting what
the packages were. They were NOT optional dependencies to the project
but development dependencies. Unlike optional dependencies, development
dependencies are local-only and will not be included in the project
requirements when published to PyPI or other indexes. As such,
development dependencies are not included in the [project] table.
Additionally, the dev group is synced by default.

Source:

https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-05-27 23:00:17 +02:00 committed by GitHub
parent 484abe3116
commit 4f3f28f718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 96 additions and 79 deletions

View file

@ -1,5 +1,5 @@
# This file was autogenerated by uv via the following command:
# uv export --frozen --no-hashes --no-emit-project --output-file=requirements.txt
# uv export --frozen --no-hashes --no-emit-project --no-default-groups --output-file=requirements.txt
annotated-types==0.7.0
# via pydantic
anyio==4.8.0