python-poetry / python-poetry/poetry
Support save prefix configuration
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
Right now, installing any dependency will save it to pyproject.toml with a caret ^ symbol, indicating it would allow minor updates but not major ones. That's a nice policy, but maybe users want to default to a stricter policy (~, allowing only patch updates) or a looser one (>=, effectively limiting only on a lower boundary). NPM allows for this with a save-prefix configuration. I think we should do the same.
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 tracing the dependency installation path that writes requirements to pyproject.toml, then identify how the current caret prefix is selected. Compare the requested ~ and >= behaviors with npm's save-prefix configuration. Done means users can configure the default saved prefix and dependency additions consistently honor it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100