OpenAPITools / OpenAPITools/openapi-generator
[REQ][Python] Add support for uv package manager
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
By now many Python users use uv to handle their Python dependencies. The use of uv.lock files also allows for exact version pinned reproduction of environments.
openapi-generator-cli currently generates a python project with Poetry as the main tool for project management.
Describe the solution you'd like
Granted that the project is still installable with pip, or even indirectly with uv (by sometimes adjusting some specification in pyproject.toml as in the case #21619 - now solved, it would be perfect to add direct compatibility for uv as well.
Currently the poetry1 option is supported as a generator configuration option: one could use for example a packageManager option to specify another handler like uv.
Thanks for your project
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 locating the Python generator and its existing poetry1 generator configuration option. Review how generated projects currently declare and manage dependencies, then compare that behavior with uv's requirements; done means direct uv compatibility is supported while pip installation remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100