Skip to content
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

MAINT: add distributed as a dependency #466

Merged
merged 9 commits into from
Feb 21, 2019

Conversation

stsievert
Copy link
Member

Fixes #464

@stsievert stsievert changed the title MAINT: loud warning if ImportError with IncrementalSearchCV WIP: MAINT: loud warning if ImportError with IncrementalSearchCV Feb 19, 2019
@stsievert
Copy link
Member Author

This is a work in progress while I figure out the testing.

@TomAugspurger
Copy link
Member

These are generally hard to test in CI, due to module caching.

I'd recommend a simple change at the top of the file with a

try:
    import distributed
except ImportError:
    raise ImportError(nice message here)

and just a manual test locally in an environment without distributed.

@jrbourbeau
Copy link
Member

Do we want to add distributed as a dependency? Ref discussion going on in #463

@TomAugspurger
Copy link
Member

TomAugspurger commented Feb 19, 2019 via email

@jrbourbeau
Copy link
Member

Sounds good

@TomAugspurger
Copy link
Member

Ahh sorry @stsievert I may have led you astray... I see now why you started with your dummy class, since we need to provide something to model_selection/__init__.py to import, so that it would raise when the class is instantiated.

So, given the headaches of working around that, lets just add a dependency on distributed. Did you want to work on that change here?

@stsievert
Copy link
Member Author

stsievert commented Feb 20, 2019

So, given the headaches of working around that, lets just add a dependency on distributed. Did you want to work on that change here?

This solution is a lot easier.

I made that change here, which is a one-line change to setup.py. Is that all that's required?

Ahh sorry @stsievert I may have led you astray... I see now why you started with your dummy class

No worries – I didn't waste too much time on this. This solution is a lot cleaner, and resolves the conflict between requiring an optional dependency.

@TomAugspurger
Copy link
Member

Yeah, the change to setup.py should be all we need now.

I'll take a look at the failing CI in a bit.

@stsievert stsievert changed the title WIP: MAINT: loud warning if ImportError with IncrementalSearchCV MAINT: add distributed as a dependency Feb 20, 2019
@stsievert
Copy link
Member Author

Should a minimum version of distributed be required?

@TomAugspurger
Copy link
Member

I was just looking to see what a good version would be. It seems like distributed 1.25.0 coincides with Dask 1.0, so let's go with that.

@stsievert
Copy link
Member Author

Sounds good. I've added distributed>=1.25.0. I'll leave leave #461 to make Dask 1.0 required

@TomAugspurger
Copy link
Member

CI should be fixed now, if you could merge master and push.

@stsievert
Copy link
Member Author

Master merged and CI passing.

@TomAugspurger TomAugspurger merged commit 0b7bc8a into dask:master Feb 21, 2019
@TomAugspurger
Copy link
Member

Thanks.

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.

3 participants