Add extras_require to setup.py for optional dependencies#257
Conversation
kitchoi
left a comment
There was a problem hiding this comment.
(Should I add instructions saying to run pip install apptools[h5] for examples? I thought that might be overkill, but was unsure)
Not an overkill, I actually think it is good to provide straightforward installation instructions that end users can copy and paste, instead of having to parse the package links and come up with the command themselves.
e.g. https://github.com/enthought/pyface#installation
(I am guessing this wasn't done in the past because pip wasn't as feature rich then?)
|
And this probably deserves a news fragment :) |
See #261 |
kitchoi
left a comment
There was a problem hiding this comment.
I've added one in the latest commit, I just used the build name before 261 was merged.
Oops. I am sorry. I failed refresh the tab 🤦
| @@ -0,0 +1 @@ | |||
| Add extras_require to setup.py for optional dependencies No newline at end of file | |||
There was a problem hiding this comment.
You will need (#257) at the end.
* add optional dependencies for specific cub packages to extras_require * add details to README about optional dependencies * list io imports as standard library imports * add prefrences/configobj to extras_rrequire as well (leave configobj in install_requires too) * add specific install instructions * formatting * remove unneeded back ticks * move install instructions into a separate section * add news fragment * add PR number to news fragment
* Make sure optional dependencies are optional for tests (#260) * make sure optional dependencies are optional for tests * add a news fragment * apply suggestion from code review * Add extras_require to setup.py for optional dependencies (#257) * add optional dependencies for specific cub packages to extras_require * add details to README about optional dependencies * list io imports as standard library imports * add prefrences/configobj to extras_rrequire as well (leave configobj in install_requires too) * add specific install instructions * formatting * remove unneeded back ticks * move install instructions into a separate section * add news fragment * add PR number to news fragment * Remove image license files (#262) * remove image license files * move internal image license file to root directory * add image_LICENSE_CP.txt and include it in manifest * Apply suggestions from code review Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> * Add a new category for build system related changes (#261) * update changelog Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> Co-authored-by: Kit Choi <kitchoi@users.noreply.github.com>
* Make sure optional dependencies are optional for tests (#260) * make sure optional dependencies are optional for tests * add a news fragment * apply suggestion from code review * Add extras_require to setup.py for optional dependencies (#257) * add optional dependencies for specific cub packages to extras_require * add details to README about optional dependencies * list io imports as standard library imports * add prefrences/configobj to extras_rrequire as well (leave configobj in install_requires too) * add specific install instructions * formatting * remove unneeded back ticks * move install instructions into a separate section * add news fragment * add PR number to news fragment * Remove image license files (#262) * remove image license files * move internal image license file to root directory * add image_LICENSE_CP.txt and include it in manifest * Apply suggestions from code review Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> * Add a new category for build system related changes (#261) * update changelog Co-authored-by: Poruri Sai Rahul <rporuri@enthought.com> Co-authored-by: Kit Choi <kitchoi@users.noreply.github.com>
fixes #176
This PR adds to the
extras_requiresection insetup.pyto include additional optional dependencies. It also mentions these in the readme so they are more apparent (Should I add instructions saying to runpip install apptools[h5]for examples? I thought that might be overkill, but was unsure).Note in this PR when looking for any optional dependencies I saw
ioimports listed as third party imports, so I moved those to be with standard library importsChecklist