-
Notifications
You must be signed in to change notification settings - Fork 547
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
Enable pre-release install for uv in pyproject.toml #1466
Conversation
@@ -31,7 +31,7 @@ envs: | |||
|
|||
setup: | | |||
set -e | |||
pip install uv && uv pip install oumi[gpu] | |||
pip install uv && uv pip install --prerelease=allow oumi[gpu] |
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.
there are a lot of repetitive and verbose changes here. Can this be improved in the future ?
For example, we could make Launcher recognize some special command/macro oumi_pip_install <targets>
and
replace oumi_pip_install ...
with pip install uv && uv pip install --prerelease=allow ...
so we can avoid such sweeping changes in hundred configs.
This can also make it easier to do changes like this: #1420
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.
That definitely sounds like a doable feature ask. If we scope it out a bit, we can add this as a public issue.
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.
This is no longer needed as I took an alternative approach Oussama suggested
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.
+1 to Nikolai's comment. Consistently sending out PRs updating ~100 files isn't sustainable for reviewing. We should look into a solution to prevent changes like this if possible.
A PR updating 100 files is unavoidable, as I'll have to do it with Nikolai's suggested change as well. I'm using find-replace to make this change, and am manually review all lines changed before sending it out for review. I understand the concern with this from a reviewing perspective, but IMO creating more convenience wrappers has its own downsides; pip is pretty well known, but if we create oumi_pip, users will now have to search through our code/docs to figure out what it does. If you really want to avoid any massive code changes, I don't see another way besides doing a pip package release in Omegaconf. |
--prerelease=allow
for all uv pip installs
Update: Took an alternative approach Oussama suggested to fix this in the pyproject.toml |
Description
Unlike pip, uv disallows prelease packages by default, which we need for
omegaconf==2.4.0dev3
foroumi>=0.1.5
. This PR fixes that in our pyproject.toml.Related issues
Fixes #1462
Before submitting