-
Notifications
You must be signed in to change notification settings - Fork 249
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
Spring cleaning for dependencies, Pt. 2: The Tree-Chopping #1133
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
04ccdb1
Remove dependencies without any Ctrl-F-able imports
lbianchi-lbl 4440b8e
Try removing potentially unneeded version constraints
lbianchi-lbl d209e51
Use list instead of unsupported set for columns in DataFrame constructor
lbianchi-lbl 15954e0
Move sympy to optional dependencies
lbianchi-lbl 382e6d9
Remove backport package that has been obsolete since Python 3.3
lbianchi-lbl e9672a0
Split optional dependencies in categories
lbianchi-lbl b360707
Format with Black
lbianchi-lbl af9aea8
Add pint to required dependencies
lbianchi-lbl 4c4f943
Try Pyomo implementation of topical optional dependencies
lbianchi-lbl 043644e
Split optional dependencies in categories
lbianchi-lbl b7ab623
Format with Black
lbianchi-lbl 81fae89
Add pint to required dependencies
lbianchi-lbl 17fa84e
Try Pyomo implementation of topical optional dependencies
lbianchi-lbl 1176954
Add pytest.importorskip() directives to DMF test modules
lbianchi-lbl bee7f4a
Move colorama import to function scope
lbianchi-lbl 6d4026d
Track updates to Prescient requirement
lbianchi-lbl 311e926
Try handling optional imports at the conftest.py level
lbianchi-lbl 866cf75
Revert "Add pytest.importorskip() directives to DMF test modules"
lbianchi-lbl 7157827
Merge remote-tracking branch 'lbianchi-lbl/issue-705-2' into issue-705-2
fndari 55e360a
Fix accidental tuplification
lbianchi-lbl db29fb0
Remove too generic 'optional' target
lbianchi-lbl fe160b4
Use appropriate version of Pyomo
lbianchi-lbl 1aad67e
Add version constraint for ipython from #1179
lbianchi-lbl c342821
Remove unneeded global variable
lbianchi-lbl 5682ee3
Merge branch 'main' into issue-705-2
lbianchi-lbl f42638f
Update dev requirements to track changes in extras_require targets
lbianchi-lbl e55df40
Improve pytest plugins to skip tests if registered modules are not found
lbianchi-lbl be1c50b
Run Black
lbianchi-lbl 9e909cc
Fix typo
lbianchi-lbl 3501e9f
Update site-packages CI job to track changes to extras_require targets
lbianchi-lbl b9ddc23
Resolve Pylint failures
lbianchi-lbl e44e431
Modify pytest INI options to support plugins in idaes/conftest.py
lbianchi-lbl fad3ad5
Run Black
lbianchi-lbl 3c03566
Fix bug causing error running idaes get-extensions in env without pytest
lbianchi-lbl 753a947
Trigger CI
lbianchi-lbl 3f74a5f
Tweak plugin hooks to support pytest runs outside of source dir
lbianchi-lbl 7555a0f
Add handling for yaml import as pyyaml is now an optional dependency
lbianchi-lbl 00a4e77
Add constraint for urllib3 in dev dependencies
lbianchi-lbl 9a90416
Handle import of requests for test_model_server.py
lbianchi-lbl a3ac23f
Remove examples extras_require target
lbianchi-lbl 5d319c8
Merge and rename target to omlt
lbianchi-lbl 0b5cb05
Reshuffle meta-targets for more differentiation
lbianchi-lbl 4f54cc4
Isolate DMF reference in idaes.core.util.convergence.convergence_base
lbianchi-lbl c75f793
Format with Black
lbianchi-lbl f72a200
Add Pylint directive for import guard
lbianchi-lbl e738689
Revert "Add constraint for urllib3 in dev dependencies"
lbianchi-lbl c982e40
Remove Python version constraint on coolprop
lbianchi-lbl caff30d
Remove catch-all extras_require targets
lbianchi-lbl 1db7264
Merge branch 'main' into issue-705-2
lbianchi-lbl bebd429
Update Sphinx docs for pip installation
lbianchi-lbl b4075db
Merge branch 'main' into issue-705-2
d9e6ccd
Replace outdated extras_require targets in CI workflow
lbianchi-lbl c6463e2
Merge remote-tracking branch 'lbianchi-lbl/issue-705-2' into issue-705-2
lbianchi-lbl 921ff1e
Add how-to guide for installing optional dependencies
lbianchi-lbl f37a2a6
Add ref anchors
lbianchi-lbl a70c11e
Merge branch 'main' into issue-705-2
lbianchi-lbl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
docs/explanations/modeling_extensions/surrogate/api/omlt-keras/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _omlt: | ||
|
||
OMLT: Optimization and Machine Learning Toolkit | ||
=============================================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ How-To-Guides | |
vis/index | ||
workflow/index | ||
data_management_framework/index | ||
opt_dependencies | ||
versioned_idaes_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Installing optional dependencies | ||
================================ | ||
|
||
Depending on the installation method (Conda, pip) and the IDAES version, not all of IDAES's dependencies will be installed by default. | ||
|
||
Installing these *optional dependencies* might require additional steps, described below, in addition to the default installation steps described elsewhere in the documentation. | ||
|
||
For pip installations | ||
^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. important:: Users who installed IDAES by running ``pip install idaes-pse`` should follow these steps. | ||
|
||
When installing IDAES using pip, optional dependencies can be installed by specifying one or more "``extras_require`` targets": | ||
|
||
.. code-block:: bash | ||
|
||
# install the `ui` target | ||
pip install "idaes-pse[ui]" | ||
|
||
# install the `ui` and `dmf` targets | ||
pip install "idaes-pse[ui,dmf]" | ||
|
||
.. important:: The ``pip install`` argument should be wrapped in double quotes (``"``) when it contains square brackets. Otherwise, it might cause an error to be reported by the shell/command interface used to invoke the command. | ||
|
||
Available optional dependencies targets | ||
--------------------------------------- | ||
|
||
As of IDAES 2.1, the following ``extras_require`` targets are available: | ||
|
||
* ``ui``: for the :ref:`IDAES Flowsheet Visualizer <IFV>` | ||
* ``dmf``: for the :ref:`Data Management Framework <dmf-overview>` | ||
* ``grid``: for the :ref:`IDAES Grid integration <idaes-grid>` | ||
* ``omlt``: for the :ref:`OMLT integration <omlt>` | ||
* ``coolprop``: for the :py:mod:`idaes.models.properties.modular_properties.coolprop` property package | ||
|
||
Specifying optional dependencies when installing a prerelease version of IDAES | ||
------------------------------------------------------------------------------ | ||
|
||
.. code-block:: bash | ||
|
||
pip install "idaes-pse[ui,dmf] @ git+https://github.com/IDAES/idaes-pse@main" | ||
|
||
For Conda installations | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. important:: These steps apply to users who installed IDAES by running ``conda install <...>``. They **do not apply** if IDAES was installed using pip. | ||
|
||
As of IDAES 2.1, the IDAES Conda package available already includes several dependencies that are optional for pip installations. | ||
This difference is due to a variety of reasons, including the fact that not all optional dependencies are available as Conda packages (e.g. OMLT); or that Conda does not have an equivalent of ``extras_require`` targets to specify optional dependencies at install-time. | ||
The consequence of this is that some optional dependencies might be unavailable if IDAES was installed using Conda. | ||
|
||
Therefore, we encourage users who encounter issues after a Conda installation of IDAES to **try installing IDAES again using pip instead** and see if the issues are resolved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ OS Specific Instructions | |
windows | ||
mac_osx | ||
binaries | ||
opt_dependencies | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I do not see here is instructions on how to get the optional dependencies; this is one of our user facing sets of install instructions so we probably need to cover it here (or point to the README for more details and to avoid the possibility of conflicting instrucitons).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I agree that the optional dependencies instructions should be included in the user-facing installation material. I think I'll copy what's in the README to the Sphinx docs, and we can revisit later if the repetition becomes a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a How-to page on optional dependencies: https://idaes-pse--1133.org.readthedocs.build/en/1133/how_to_guides/opt_dependencies.html