Skip to content

fix(deps): switch from pip-compile to uv pip compile#538

Merged
lawrence-u10d merged 3 commits intomainfrom
fix/switch-to-uv-pip-compile
Jan 21, 2026
Merged

fix(deps): switch from pip-compile to uv pip compile#538
lawrence-u10d merged 3 commits intomainfrom
fix/switch-to-uv-pip-compile

Conversation

@lawrence-u10d
Copy link
Contributor

@lawrence-u10d lawrence-u10d commented Jan 21, 2026

Summary

Switches dependency compilation from pip-compile to uv pip compile to fix Renovate compatibility issues with the --no-strip-extras flag.

Problem

Renovate's pip-compile manager has a bug where it only supports --no-strip-extras for uv pip compile, not for regular pip-compile. This blocks Renovate from creating security vulnerability PRs for Python dependencies.

Solution

Switch from pip-compile to uv pip compile which:

  • ✅ Supports --no-strip-extras flag in Renovate
  • ✅ 10-100x faster compilation times
  • ✅ Drop-in replacement with same command structure
  • ✅ Aligns with unstructured and unstructured-inference repos

Changes

Makefile

  • Targets Python 3.12 (via --python-version 3.12)
  • Adds --no-emit-package pip and --no-emit-package setuptools flags
  • Replaces all pip-compile commands with uv pip compile

Requirements Files

Expected differences from pip-compile to uv pip compile:

Cosmetic changes:

  • Header format updated to reflect uv compilation
  • Path references include ./ prefix (e.g., -r ./requirements/base.in)
  • Footer wording changed from "unsafe" to "excluded from the output"

constraints.txt expansion:

  • uv includes transitive dependencies of constrained packages
  • Added cryptography, cffi, charset-normalizer, pycparser (all dependencies of pinned pdfminer-six==20260107)
  • This improves reproducibility by locking the entire dependency tree for constrained packages

No version changes to any packages - all dependencies remain at the same versions as before.

Testing

make pip-compile

References


Note

Switches dependency compilation to uv pip compile and updates generated requirement files accordingly.

  • Replace pip-compile with uv pip compile in Makefile, targeting Python 3.12 and adding --no-emit-package pip/setuptools; update compile-all-base loop
  • Regenerate requirements/base.txt, test.txt, and constraints.txt with uv headers/footers and ./ path prefixes
  • Expand constraints.txt to include transitive deps of constrained packages (e.g., cryptography, cffi, charset-normalizer, pycparser)
  • No dependency version changes

Written by Cursor Bugbot for commit ba94b9a. This will update automatically on new commits. Configure here.

@lawrence-u10d lawrence-u10d added the dependencies Pull requests that update a dependency file label Jan 21, 2026
cursor[bot]

This comment was marked as outdated.

@lawrence-u10d lawrence-u10d force-pushed the fix/switch-to-uv-pip-compile branch from 4bc7549 to 4c4fe3a Compare January 21, 2026 02:50
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Switches dependency compilation from pip-compile to uv pip compile to fix
Renovate compatibility issues with the --no-strip-extras flag.

Benefits:
- Renovate supports --no-strip-extras for uv pip compile
- 10-100x faster compilation times
- Aligns with unstructured and unstructured-inference
- Drop-in replacement with same command structure

Ref: Renovate pip-compile manager only supports --no-strip-extras for uv,
not for regular pip-compile
@lawrence-u10d lawrence-u10d force-pushed the fix/switch-to-uv-pip-compile branch from 4c4fe3a to c3ad7e7 Compare January 21, 2026 04:22
lawrence-u10d and others added 2 commits January 20, 2026 22:30
Updates Makefile to compile requirements for Python 3.12 instead of 3.10.
Recompiles all requirement files with correct Python version target.

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
@lawrence-u10d lawrence-u10d merged commit 8d6e863 into main Jan 21, 2026
13 checks passed
@lawrence-u10d lawrence-u10d deleted the fix/switch-to-uv-pip-compile branch January 21, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants