Skip to content

MNT Places all minimum dependencies in one central location - #17573

Merged
rth merged 18 commits into
scikit-learn:masterfrom
thomasjpfan:min_dependencies_rb
Jun 27, 2020
Merged

rth merged 18 commits into
scikit-learn:masterfrom
thomasjpfan:min_dependencies_rb

Conversation

@thomasjpfan

Copy link
Copy Markdown
Member

The dependencies are placed in sklearn._build_utils.dependencies and setup.py uses this to set its install_requires and extra_requires.

The CI queries this central location to get the minimal version for the packages.

@thomasjpfan

Copy link
Copy Markdown
Member Author

At some point, it would be nice to generate the a table in install.rst similar to how pandas install docs looks like

@thomasjpfan

Copy link
Copy Markdown
Member Author

Added build_tools/generate_dependency_table.py to auto generate the dependency table that is included in the install docs.

@adrinjalali adrinjalali 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.

Beautiful!

Comment thread doc/dependency.rst Outdated
@@ -0,0 +1,23 @@
=================== =================== ====================================

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.

should this then not be git tracked and generated during doc build?

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.

I am fine with keeping this under version control for now. As you wish.

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.

Updated doc/conf.py to generate the file when building the docs. (One less thing to think about for a release manager)

@ogrisel ogrisel 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.

Nice. We could go one step further and generate the pyproject.toml file as well. But maybe for another PR.

May I suggest to rename sklearn/_build_utils/dependencies.py to sklearn/_build_utils/min_dependencies.py?

Comment thread build_tools/azure/posix.yml Resolved
Comment thread build_tools/circle/build_doc.sh Resolved

@adrinjalali adrinjalali 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.

LGTM, shall we merge @ogrisel ?

@adrinjalali

Copy link
Copy Markdown
Member

ping: merge conflicts

@rth rth 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.

Nice, thank you!

glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Jul 17, 2020
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
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.

5 participants