-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adding OpenMDAO Sphinx Extensions #11
Conversation
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.
A few high-level questions:
- Why did you add the isort config? Is it used by anything here?
- I'd like to avoid adding numpy as a dependency if possible, since it's pretty big. Do you think the context manager
printoptions
will be used by people? - I don't think the empty init file is necessary
Everything else is fine. Once we have this up, we can use OAS or something to test these extensions, same way we are currently testing extensions via pyhyp.
|
Given the number of repositories we have, I think it would be better if we do not have separate config files in each repo (unless they are different for some reason). Instead, we should just have a single file (kept in the .github repo) which is shared for everything. On my computer, I've defined an alias for
Yeah I see, in that case we can keep this unless you see an easy way to remove it. It seems like it could be useful in situations.
I don't think you need it to import stuff anymore in py3, and in any case I don't see a use case for people directly importing those extensions. |
I removed the I also got rid of the isort file in favor of linking to the mdolab/.github config file. I will look into the numpy dependency today, but I don't see an easy way to remove it as of now. |
Huh that's really weird, how has it been working up till now? The error is not coming from any of the new additions. I don't have time to look into this further, so if this passes the tests I'm okay with it. |
It worked before this PR because the existing extensions didn't depend on any other sub-modules within the main package. I added separate utils and ext modules and I import stuff from the utils module into the exts module. I thought this made the most sense because there may be instances where we use stuff from utils and ext separately. |
I think it's ready to merge if you agree with my reasoning. |
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.
LGTM
Purpose
This PR ports over sphinx extensions from OpenMDAO 3.9 that are unsupported in OM 3.10 or greater. Also included is an import sorting configuration file consistent with pyOptSparse. The
setup.py
file was also modified to include the necessary dependencies for the extensions.Expected time until merged
This PR should take a week or less to merge. As these extensions are difficult to test, it may require another PR to fix bugs that arise once these extensions are used in other MDO Lab documentation.
Type of change
Testing
Checklist
flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted