OpenAPITools / OpenAPITools/openapi-generator

[REQ][Python] Add support for uv package manager

Open
#22,205 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.