Skip to content

Conversation

@edgarrmondragon
Copy link
Contributor

@edgarrmondragon edgarrmondragon commented Jan 26, 2026

Changes

Registers the --group=... option of uv pip compile. The help output describes this option as:

Install the specified dependency group from a `pyproject.toml`

so it's useful when want to export only certain dependency groups, e.g. docs.

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository:

@edgarrmondragon edgarrmondragon marked this pull request as ready for review January 26, 2026 02:11
@edgarrmondragon edgarrmondragon force-pushed the uv-pip-compile-group branch 2 times, most recently from 3761a13 to 5d762ac Compare January 26, 2026 20:18
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please expand PR description

@edgarrmondragon
Copy link
Contributor Author

please expand PR description

@viceice Done! Let me know if you need more detail.

Copy link
Collaborator

@RahulGautamSingh RahulGautamSingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how it helps users of Renovate?

@edgarrmondragon
Copy link
Contributor Author

I don't understand how it helps users of Renovate?

@RahulGautamSingh it's kind of a continuation of #39167 and it's meant to get rid of this error I saw in the logs after adding the .txt file:

DEBUG: pip-compile: extracted command from header
{
  "fileName": "requirements/docs.requirements.txt",
  "argv": [
    "uv",
    "pip",
    "compile",
    "pyproject.toml",
    "--group=docs",
    "--python-version=3.14",
    "--output-file=requirements/docs.requirements.txt"
  ],
  "commandType": "uv"
}

WARN: pip-compile error
{
  "matchedFile": "requirements/docs.requirements.txt",
  "errorMessage": "Option --group=docs not supported (yet)"
}

Though I'm no longer seeing that error in more recent jobs 🤔

@RahulGautamSingh
Copy link
Collaborator

Please, capture the bug in a minimal reproduction first.

@RahulGautamSingh RahulGautamSingh added the auto:reproduction A minimal reproduction is necessary to proceed label Jan 27, 2026
@github-actions
Copy link
Contributor

Hi there,

Please help this Discussion progress by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible.

Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues.

Please follow these steps:

  1. Read our guide on creating a minimal reproduction.
  2. Go to our minimal reproduction template repository.
  3. Select the Use this template button to create a new repository based on the template.
  4. Work on the reproduction in your own repository. Ensure it's actually minimal (no unnecesary dependencies or config), or it will be rejected by maintainers.
  5. Install the Renovate app to verify that what you say happens (or doesn't happen) reproduces.
  6. Fill out the information in your repository's README.md. What you describe there should reflect what you see in this repo, with the hosted app, and not what you saw in your original repo/environment.
  7. Add the link to your reproduction to the first post of your Discussion. If you are not the original author, you can post a new comment with the link.
  8. Add a Discussion comment mentioning that the reproduction repo is now available and linked.

If you need help with running Renovate on your minimal reproduction repository, please refer to our Running Renovate guide.
Good luck,

The Renovate team

@edgarrmondragon
Copy link
Contributor Author

Please, capture the bug in a minimal reproduction first.

Here you go: https://github.com/edgarrmondragon/--renovate-repro-uv-pip-compile-group

The error I see is

DEBUG: pip-compile: extracted command from header
{
  "fileName": "docs/requirements.txt",
  "argv": [
    "uv",
    "pip",
    "compile",
    "pyproject.toml",
    "--group=docs",
    "--python-version=3.14",
    "--output-file=docs/requirements.txt"
  ],
  "commandType": "uv"
}

WARN: pip-compile error
{
  "matchedFile": "docs/requirements.txt",
  "errorMessage": "Option --group=docs not supported (yet)"
}

and pip-compile is not registered:

Screenshot 2026-01-27 at 6 44 06 p m

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

Labels

auto:reproduction A minimal reproduction is necessary to proceed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants