Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from conda to uv #157

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Switch from conda to uv #157

wants to merge 5 commits into from

Conversation

jpt-sn
Copy link
Collaborator

@jpt-sn jpt-sn commented Dec 31, 2024

uv manages our dev and 2 optional dependencies.

Simply run:

  • uv sync --all-extras (create a .venv and install all requirements from pyproject.toml)
  • uv run -m ... (like python -m ...)

This will make easy to update dependencies:

  • uv pip list --outdated (visualize outdated dependencies)
  • uv sync --upgrade (upgrade all dependencies)
  • uv sync --all-extras --upgrade-package accelerate==1.2.0 (update a specific library to a specific version)
  • uv tree

The pyproject.toml was updated using these commands (and then manually relaxing versioning):

  • uv add -r requirements.txt
  • uv add -r requirements.dev.txt --dev
  • uv add -r requirements.converters.txt --optional converters
  • uv add -r requirements.finetune.txt --optional finetune

TODO:

  • update makefile
  • update ci
  • update cd: uv build, uv publish

@jpt-sn jpt-sn requested a review from ollmer December 31, 2024 22:47
pyproject.toml Show resolved Hide resolved
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.

2 participants