Skip to content

Use uv and uv run pip for Dockerfile generation#2747

Merged
tempusfrangit merged 1 commit intomainfrom
feat/uv-build
Feb 19, 2026
Merged

Use uv and uv run pip for Dockerfile generation#2747
tempusfrangit merged 1 commit intomainfrom
feat/uv-build

Conversation

@tempusfrangit
Copy link
Member

@tempusfrangit tempusfrangit commented Feb 19, 2026

  • Replace pyenv/pip with uv for Python installation (uv python install)
  • Use UV_SYSTEM_PYTHON=true so uv operates on the system Python
  • For user requirements (pip install -r), use 'uv run pip' which invokes Python's own pip/OpenSSL stack, working around rustls's lack of P-521 ECDSA support needed for Cloudflare Warp MITM certificates
  • Append CA cert directly to bundle file in addition to update-ca-certificates for robustness across base images
  • Update all tests to match new Dockerfile output

closes: #2744
closes: #2167
closes: #2476

- Replace pyenv/pip with uv for Python installation (uv python install)
- Use UV_SYSTEM_PYTHON=true so uv operates on the system Python
- For user requirements (pip install -r), use 'uv run pip' which invokes
  Python's own pip/OpenSSL stack, working around rustls's lack of P-521
  ECDSA support needed for Cloudflare Warp MITM certificates
- Append CA cert directly to bundle file in addition to update-ca-certificates
  for robustness across base images
- Update all tests to match new Dockerfile output
@tempusfrangit tempusfrangit requested a review from a team as a code owner February 19, 2026 01:00
@tempusfrangit tempusfrangit added this to the 0.17.0 Release milestone Feb 19, 2026
Copy link
Contributor

@markphelps markphelps left a comment

Choose a reason for hiding this comment

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

nit picks but lgtm

return "", nil
}

func (g *StandardGenerator) installUV() string {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, this could just be a regular function since it doesnt need g. or could just be a constant. super nit tho

Copy link
Member Author

Choose a reason for hiding this comment

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

good point! happy to convert for cleanliness.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll spin up a new change to do some cleanup after deep in some refactors.

@bfirsh
Copy link
Member

bfirsh commented Feb 19, 2026

OMG yes. I haven't reviewed this but this makes me very happy. Thank you Morgan!!

Closes #2167 and #2476

@tempusfrangit
Copy link
Member Author

closes #2744

@tempusfrangit tempusfrangit merged commit 5763ec0 into main Feb 19, 2026
31 checks passed
@tempusfrangit tempusfrangit deleted the feat/uv-build branch February 19, 2026 17:52
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.

replace pyenv with uv for container builds Use uv instead of pip/pyenv

3 participants

Comments