python-trio / python-trio/trio
Switch packaging to PDM/Hatch/Poetry
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.3k
- Forks
- 431
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 6
Description
There's some discussion in #2681, and some more in Gitter, but let's make a dedicated issue for this.
Alternatives:
- Status quo
- dependabot is a hassle
- sort of impossible to properly define different package version requirements on different versions
- regenerating
*-requirements.txtlocally, as is currently required to pass CI whenever changing something in*-requirements.in, requires having a matching python version and possibly other requirements on your environment.
- Poetry
- Does not comply with PEP 621: https://github.com/python-poetry/roadmap/issues/3
- there's an open PR for switching to Poetry: #2595
- Supports lockfiles, quoting @njsmith on gitter:
lockfiles for a library are very valuable for keeping CI functioning
you don't ship them, but if you don't have them in CI and don't have very rapid development, then every time you do try to merge a PR you discover that actually CI has been broken for a while and no-one noticed so now you have to untangle that before you can finish your original thought
- Hatch
-
Does not support lockfiles, but there are different ways to get around the above problem
quoting @apollo13Fair enough. But with a nightly run you would also notice if a dependency update is breaking stuff and you could react faster by limiting the dependency till you fixed it
quoting @agronholm
what I do in my projects instead is cache the dependencies
so they only get updated if I update my pyproject.toml or manually delete the caches
=> no constant dependabot churn
-
- PDM
- supports lockfiles
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the discussion in #2681, the Gitter discussion, and the existing Poetry pull request #2595. Compare the listed status quo, Poetry, Hatch, and PDM alternatives; work is done only once the project agrees on a packaging approach and the migration scope is defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100