-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
uv packaging #3134
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
uv packaging #3134
Conversation
466db8f to
7b65fa0
Compare
|
Could not wait to try this version! On Windows 11, x86_64, python==3.11 $ uv sync
Resolved 227 packages in 2ms
Updated https://github.com/arashsm79/DeepLabCut (7b65fa0adfa24f6f038493e5b3d1f0999227ddf4)
Built deeplabcut @ git+https://github.com/arashsm79/DeepLabCut@7b65fa0adfa24f6f038493e5b3d1f0999227ddf4
Prepared 5 package in 1m 24s
Uninstalled 1 package in 753ms
Installed 5 packages in 194ms
+ black==25.9.0
- deeplabcut==3.0.0rc13
+ deeplabcut==3.0.0rc13 (from git+https://github.com/arashsm79/DeepLabCut@7b65fa0adfa24f6f038493e5b3d1f0999227ddf4)
+ mypy-extensions==1.1.0
+ pathspec==0.12.1
+ pytokens==0.2.0On Gentoo Linux, x86_64, python==3.11 Resolved 227 packages in 2.14s
Updated https://github.com/arashsm79/DeepLabCut (7b65fa0adfa24f6f038493e5b3d1f0999227ddf4)
Built deeplabcut @ git+https://github.com/arashsm79/DeepLabCut@7b65fa0adfa24f6f038493e5b3d1f0999227ddf4
Prepared 5 packages in 14.75s
Uninstalled 1 package in 17ms
░░░░░░░░░░░░░░░░░░░░ [0/5] Installing wheels...
Installed 5 packages in 11ms
+ black==25.9.0
- deeplabcut==3.0.0rc13
+ deeplabcut==3.0.0rc13 (from git+https://github.com/arashsm79/DeepLabCut@7b65fa0adfa24f6f038493e5b3d1f0999227ddf4)
+ mypy-extensions==1.1.0
+ pathspec==0.12.1
+ pytokens==0.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to move to uv, might mitigate a lot of installation issues in the future!!
The readme still requires updating, right? Same goes for some logs/warnings within the code (e.g. "If you need GUI support ... pip install 'deeplabcut[gui]'")
|
Works great @arashsm79, thanks a lot ! |
|
separating CI update into another PR |
|
closing in favor of replacement PR #3184 (because of access rights for modification) |
Summary
This PR performs an overhaul on how DLC is packaged.
uv is an extremely fast Python package and project manager that has seen incredible adoption from the Python community.
Here, the first steps are taken to package DLC with uv for different platforms and Python version.
The CI has also been updated accordingly to use uv.
How to use this PR
uv syncwith the extra dependencies you may want (you can take a look at theci.ymlfile in this PR for example usage of uv.Like:
uv sync --extra gui --python 3.11uv run deeplabcut