Skip to content

Make pyyaml required - #6250

Merged
TomAugspurger merged 3 commits into
dask:masterfrom
jcrist:yaml-required
May 28, 2020
Merged

TomAugspurger merged 3 commits into
dask:masterfrom
jcrist:yaml-required

Conversation

@jcrist

@jcrist jcrist commented May 27, 2020

Copy link
Copy Markdown
Member

Having two code paths - one that loaded from config, and one that loaded from the code - made testing and QA trickier, for minor perceivable benefit. We now standardize on loading from config in all cases, and make pyyaml a required dependency.

Fixes #6221.

jcrist added 3 commits May 27, 2020 10:08
Having two code paths - one that loaded from config, and one that loaded
from the code - made testing and QA trickier, for minor perceivable
benefit. We now standardize on loading from config in all cases, and
make `pyyaml` a required dependency.
@jcrist jcrist changed the title Yaml required Make pyyaml required May 27, 2020
@jcrist

jcrist commented May 27, 2020

Copy link
Copy Markdown
Member Author

cc @mrocklin, @TomAugspurger, @jrbourbeau for a 👍 / 👎.

@TomAugspurger

Copy link
Copy Markdown
Member

+1, at least for in any of the collections APIs.

+0.5 for dask-core itself.

@jcrist

jcrist commented May 27, 2020 •

Copy link
Copy Markdown
Member Author

To clarify, the collection apis already required yaml (our minimal test environments accidentally left it out, which is why those tests were failing) - I was mistaken in the original issue.

edit - nvm, yaml is not a dep for the collections api, only dask[complete], I was mistaken about being mistaken

@TomAugspurger

TomAugspurger commented May 27, 2020 via email

Copy link
Copy Markdown
Member

@jcrist

jcrist commented May 27, 2020

Copy link
Copy Markdown
Member Author

Planning on merging tomorrow if no further discussion.

@mrocklin

Copy link
Copy Markdown
Member

I'll abstain. I guess I'm mildly in favor, if only to test the waters, but I kind of like the idea of you three deciding this without me :)

@jrbourbeau

Copy link
Copy Markdown
Member

I'm also +0.5 for adding pyyaml as a dask-core dependency. Thanks for taking initiative on this @jcrist. I'll push a 2.17.1 bugfix release once this has been merged

@TomAugspurger

Copy link
Copy Markdown
Member

I think we're all on board with this. Thanks Jim!

@TomAugspurger
TomAugspurger merged commit ee8a2a2 into dask:master May 28, 2020
@jcrist
jcrist deleted the yaml-required branch May 28, 2020 14:26
@jrbourbeau

Copy link
Copy Markdown
Member

I'll go ahead with a bugfix release now

Comment thread setup.py
Comment on lines -29 to -31
extras_require["complete"] = sorted(
{"PyYaml"} | {v for req in extras_require.values() for v in req}
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Was there a reason to remove the "complete" extra? What would be the preferred way to obtain a similar behavior now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry, that was a mistake. See #6257.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that you may not need complete, and may be better served by composing a few smaller extras together. For example: dask[array,dataframe,distributed].

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth looking into. I'll do a few local tests. Thanks for the speedy help!

@jcrist jcrist mentioned this pull request May 28, 2020
2 tasks
galipremsagar pushed a commit to galipremsagar/dask that referenced this pull request May 29, 2020
* Make pyyaml a required dependency

Having two code paths - one that loaded from config, and one that loaded
from the code - made testing and QA trickier, for minor perceivable
benefit. We now standardize on loading from config in all cases, and
make `pyyaml` a required dependency.
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.

Make yaml a required dependency

6 participants