-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: clean environment.yml, comment that req-dev is generated #30392
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
Changes from all commits
171ae7e
2ca88b0
e342fe1
979a598
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 |
---|---|---|
|
@@ -87,9 +87,14 @@ def main(conda_fname, pip_fname, compare=False): | |
elif isinstance(dep, dict) and len(dep) == 1 and "pip" in dep: | ||
pip_deps += dep["pip"] | ||
else: | ||
raise ValueError("Unexpected dependency {}".format(dep)) | ||
raise ValueError(f"Unexpected dependency {dep}") | ||
|
||
pip_content = "\n".join(pip_deps) | ||
fname = os.path.split(conda_fname)[1] | ||
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. Is there a reason for the split here? 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. otherwise we get a full path including username |
||
header = ( | ||
f"# This file is auto-generated from {fname}, do not modify.\n" | ||
"# See that file for comments about the need/usage of each depdendency.\n\n" | ||
) | ||
pip_content = header + "\n".join(pip_deps) | ||
Comment on lines
+93
to
+97
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. Small personal preference, but I think this would be simpler if when defining pip_deps above, instead of pip_content = [
f"# This file is auto-generated from {fname}, do not modify.",
"# See that file for comments about the need/usage of each depdendency.",
] If you do that, all this can be deleted here (you'll have to define
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. ATM the 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. Not important, but 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 would actually write this as a triple quoted string.
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. triple quoted strings that arent at the module-level mess with code-folding, so i prefer to avoid them 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. k that's what i would have done, but ok as is. |
||
|
||
if compare: | ||
with open(pip_fname) as pip_fd: | ||
|
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.
IIUC
conda install dask
does the right thing without needing to specify everything else, butpip install dask
does not. could we unify all this asdask[dataframe]
? also i guess put it in the "downstream tests" block?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.
@TomAugspurger might have ideas
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.
dask[dataframe]
works for installing from PyPI, but there isn't adask[dataframe]
ordask-dataframe
conda package.