Skip to content

Conversation

mbudnek
Copy link
Contributor

@mbudnek mbudnek commented Aug 12, 2025

Changes

pip-compile (and uv pip compile) support compiling dependencies from pyproject.toml, but that functionality wasn't enabled in the pip-compile manager. This uses the pep621 manager's extractPackageFile the same way we do with the pip_setup and pip_requirements managers to enable the pip-compile maanger to handle pyproject.toml files.

Context

My org has started moving more of our package configuration into pyproject.toml files. We still use setuptools for package builds though, and setuptools doesn't have a native lock file like other PEP-621 managers. We use pip-compile to generate requirements.txt files that act as lock files for our CI tests and for application deployments.

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

`pip-compile` (and `uv pip compile`) support compiling dependencies from
pyproject.toml, but that functionality wasn't enabled in the pip-compile
manager.  This uses the pep621 manager's `extractPackageFile` the same
way we do with the pip_setup and pip_requirements managers to enable the
pip-compile maanger to handle pyproject.toml files.
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 provide a sample repo with lockfile

@mbudnek
Copy link
Contributor Author

mbudnek commented Aug 14, 2025

@viceice The lock file is a normal pip requirements file just like it always is with pip-compile. Here's an example repo I set up to test: https://github.com/mbudnek/renovate-pip-compile-pyproject-example

@mbudnek mbudnek requested a review from viceice August 14, 2025 16:11
@mbudnek
Copy link
Contributor Author

mbudnek commented Aug 25, 2025

@viceice Just a bump. Sorry to bother you. Is there anything else needed for this PR?

@viceice viceice added this pull request to the merge queue Aug 25, 2025
Merged via the queue into renovatebot:main with commit 5ec2a13 Aug 25, 2025
38 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 41.83.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants