-
Notifications
You must be signed in to change notification settings - Fork 1
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
Use scipp from pypi index instead of github url for nightlies #234
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import sys | ||
from argparse import ArgumentParser | ||
from pathlib import Path | ||
|
||
|
@@ -58,11 +57,15 @@ def as_nightly(repo: str) -> str: | |
else: | ||
org = "scipp" | ||
if repo == "scipp": | ||
version = f"cp{sys.version_info.major}{sys.version_info.minor}" | ||
base = "https://github.com/scipp/scipp/releases/download/nightly/scipp-nightly" | ||
suffix = "manylinux_2_17_x86_64.manylinux2014_x86_64.whl" | ||
prefix = "scipp @ " | ||
return prefix + "-".join([base, version, version, suffix]) | ||
# With the standard pip resolver index-url takes precedence over | ||
# extra-index-url but with uv it's reversed, so if we move to tox-uv | ||
# this needs to be reversed. | ||
return ( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it looks fine. So I guess we also need to start uploading nightly wheels in the index for the other packages? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have to but we can to keep things consistent :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for now, let's just start with scipp? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, we start with scipp. But yes, this is not for this PR. |
||
"scipp\n" | ||
"--index-url=https://pypi.anaconda.org/scipp-nightly-wheels/simple/\n" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we want to add a comment just to say that the order of the indexes is important here? |
||
"--extra-index-url=https://pypi.org/simple\n" | ||
"--pre" | ||
) | ||
return f"{repo} @ git+https://github.com/{org}/{repo}@main" | ||
|
||
|
||
|
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.
🙄