Skip to content

chore: Use dependency-groups in pyproject.toml - #747

Open
rumpelsepp wants to merge 1 commit into
masterfrom
pip
Open

chore: Use dependency-groups in pyproject.toml#747
rumpelsepp wants to merge 1 commit into
masterfrom
pip

Conversation

@rumpelsepp

Copy link
Copy Markdown
Member

My tests repeatedly failed due to the definition of development
dev-dependencies as optional-dependencies. In the meanwhile, pip merged
the support for dependency-groups in February, 2025.

pypa/pip@e930fee

pip 25.1 is the first version containing this feature.
Debian Trixie ships a recent enough pip via apt:

https://packages.debian.org/de/trixie/python3-pip

Ubuntu 25.10 ships a recent enough pip.

https://packages.ubuntu.com/questing/python3-pip

However, pip can just install itself for the current user using pipx:

$ pipx install pip

pipx is available in the Debian and Ubuntu package sources.

https://packages.debian.org/sid/pipx
https://packages.ubuntu.com/plucky/pipx

Nevertheless, using uv for development is better in any case, since it
provides dependency pinning out-of-the-box.

@rumpelsepp
rumpelsepp requested a review from peckto as a code owner August 19, 2025 09:19
@rumpelsepp rumpelsepp added the enhancement New feature or request label Oct 17, 2025
@rumpelsepp rumpelsepp modified the milestones: gallia 2.1, gallia later Oct 17, 2025
@rumpelsepp rumpelsepp linked an issue Oct 17, 2025 that may be closed by this pull request
My tests repeatedly failed due to the definition of development
dev-dependencies as optional-dependencies. In the meanwhile, pip merged
the support for dependency-groups in February, 2025.

pypa/pip@e930fee

pip 25.1 is the first version containing this feature.
Debian Trixie ships a recent enough pip via apt:

https://packages.debian.org/de/trixie/python3-pip

Ubuntu 25.10 ships a recent enough pip.

https://packages.ubuntu.com/questing/python3-pip

However, pip can just install itself for the current user using `pipx`:

```
$ pipx install pip
```

`pipx` is available in the Debian and Ubuntu package sources.

https://packages.debian.org/sid/pipx
https://packages.ubuntu.com/plucky/pipx

Nevertheless, using `uv` for development is better in any case, since it
provides dependency pinning out-of-the-box.
@rumpelsepp

Copy link
Copy Markdown
Member Author

@ferdinandjarisch Is your lab already at debian trixie? If yes, we can merge this; however I think the internal plugins might need a small installer adjustment. (somewhere in the uv pip install call)

@ferdinandjarisch

Copy link
Copy Markdown
Contributor

I do not think that every machine is already on trixie, tbh.

On my machine it appears to work fine with a few adaptions, but is there a need to press for that change?

@rumpelsepp

rumpelsepp commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

but is there a need to press for that change?

No need, just asking. I am summer cleaning open pull requests and issues.

I will ask again in perhaps one year. 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revert 7394434 once pip is ready

2 participants