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.
Description
Fix RTD builds that have been broken since 7b06c90 and should also fix #2464
Motivation and Context
RTD builds fail since 7b06c902a2 since RTD tries to remove
python-daemon<3.0
from install_requries but it has been changed topython-daemon<2.2.0
Prior to that, AWS modules in contrib were not generating documentation due to ImportErrors on botocore & boto3 as documented in #2464
This guards the imports so they don't raise the exception in line with the other modules in
contrib
that have 3rd party dependencies.Also cleans up the dependency on enum34 for older python versions;
install_requires
supports version checks automatically without checkingsys.version_info
.Have you tested this? If so, how?
I ran my jobs with this code and it works for me.
I build the documentation via the process described on RTD in a Py2 venv and generated complete documentation.