Skip to content

Add uv project manifest (pyproject.toml + uv.lock) - #170

Merged
john-rocky merged 1 commit into
john-rocky:mainfrom
dokterbob:feat/uv-deps
Oct 2, 2026
Merged

john-rocky merged 1 commit into
john-rocky:mainfrom
dokterbob:feat/uv-deps

Conversation

@dokterbob

@dokterbob dokterbob commented Jun 17, 2026 •

Copy link
Copy Markdown

Adds a uv project manifest so the conversion toolkit has a reproducible, locked environment.

  • pyproject.toml mirrors the existing conversion/requirements.txt pins (coremltools 9, torch 2.11, transformers 5.5, …) as a virtual project ([tool.uv] package = false) — it manages the env only, it does not build/install the flat conversion/ scripts as a wheel.
  • uv.lock pins the full resolved graph.

This is purely additive: python -m venv && pip install -r conversion/requirements.txt keeps working unchanged; uv sync / uv run … is just an alternative for those who want it. Kept as a separate PR from the pplx-embed feature so it can be accepted/declined independently.

This will dramatically accelerate the installation time and facilitate dependency management. As a matter of fact, I would recommend removing requirements.txt and going full-on for uv.

Mirrors conversion/requirements.txt pins as a uv-managed virtual project
(package=false) so `uv sync` / `uv run` provide a reproducible env for the
conversion toolkit without changing the existing pip workflow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dokterbob
dokterbob marked this pull request as ready for review June 18, 2026 10:50
Copilot AI review requested due to automatic review settings June 18, 2026 10:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@john-rocky
john-rocky merged commit 0e00a02 into john-rocky:main Oct 2, 2026
john-rocky added a commit that referenced this pull request Oct 2, 2026
The manifest added in #170 carried the pplx-embed branch's project name
and description; main does not contain that branch. Pins are unchanged:
the lock differs only in the project name, and `uv lock --check` passes.
@john-rocky

Copy link
Copy Markdown
Owner

Thanks for the uv manifest, Mathijs, and sorry for the long wait. uv lock --check passes, and uv sync --frozen on macOS 27 with Python 3.12 gives an environment where coremltools 9.0, torch and transformers import and a small conversion runs. The project name and description still pointed at the pplx-embed branch, so after merging I renamed the project to coreml-llm-conversion in c85ccb6; the pins are unchanged. conversion/requirements.txt stays for now, so pip install -r and uv sync both work. Thanks again.

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