Skip to content

Add test deps for pip development - #7360

Merged
jsignell merged 2 commits into
dask:mainfrom
jsignell:dev-docs
Mar 11, 2021
Merged

jsignell merged 2 commits into
dask:mainfrom
jsignell:dev-docs

Conversation

@jsignell

Copy link
Copy Markdown
Member

If you install with pip following https://docs.dask.org/en/latest/develop.html you'll be missing the testing dependencies. I'm wondering if this is best handled by adding more docs, or by having a pip install -e ".[test]"

ref #7358 (comment)

This is the docs version, but I am wondering if people would be opposed to adding another pip extra option called [test] that would not be included in [complete]

@dask/maintenance

@jacobtomlinson

Copy link
Copy Markdown
Member

am wondering if people would be opposed to adding another pip extra option called [test] that would not be included in [complete]

Sounds reasonable to me.

Many of the Dask subprojects have a requirements-test.txt file and instructions in the contributing docs to install that when developing.

Is the idea to replace that with pip install .[test]?

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for improving things here @jsignell. I have a slight preference for either the requirements-test.txt or [test] extras option as those are less likely to go out of date than documentation.

Since we already handle all our optional deps through setup.py extras instead of a requirements.txt file, adding a new [test] extra seems like the smoothest option. I think multiple extras can also be specified so something like

python -m pip install -e ".[complete,test]"

should work

@jacobtomlinson

Copy link
Copy Markdown
Member

Both of @jrbourbeau's sugegstions would be possible. In many Dask projects we read the requirements from a requirements.txt file within setup.py.

We could add a requirements-test.txt file and then read that in the setup.py as a test extras requires.

@jsignell

Copy link
Copy Markdown
Member Author

Ok I think I'll do the smallest change and just inline the test reqs in setup.py.

@jsignell jsignell changed the title [DOCS] Add test deps for pip development Add test deps for pip development Mar 10, 2021
@jsignell
jsignell requested a review from jrbourbeau March 10, 2021 20:58
@jsignell
jsignell merged commit fa831e2 into dask:main Mar 11, 2021
@jsignell
jsignell deleted the dev-docs branch March 11, 2021 13:58
douglasdavis pushed a commit to douglasdavis/dask that referenced this pull request Mar 14, 2021
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