-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Support for Python 3.9 #1197
Support for Python 3.9 #1197
Conversation
Code changes:
Stack trace with Python < 3.9
Stack trace with Python 3.9
We have added a function to perform regex-like match on the stack trace. Questions
|
One more question: I had to bump hydra version in setup.py of discovery test plugin. I understand why it should be bumped. I am not sure why did this not throw an error earlier (since we have been on Hydra 1.1* for some time now). |
|
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.
Very nice.
a few comments and see my answer to your questions.
hydra/_internal/core_plugins/importlib_resources_config_source.py
Outdated
Show resolved
Hide resolved
The suggested fix there is to use older version of virtualenv (== 20.0.33) which was released one day before python 3.9 :( |
Is pinning virtualenv to 20.0.33 for now a viable solution until conda and virtualenv figure out their shit? |
hydra/_internal/core_plugins/importlib_resources_config_source.py
Outdated
Show resolved
Hide resolved
I mean that python 3.9 does not virtualenv==20.0.33. Can try direct installation on virtualenv |
What does that mean? |
Force pushed to rebase |
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.
Looking good, please clean up your comments.
plugins/hydra_optuna_sweeper/tests/test_optuna_sweeper_plugin.py
Outdated
Show resolved
Hide resolved
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
* Fix importlib error when using py3.9 * Fix lint errors * Add a method to match lines based on regex * fix lint error * bump hydra version in discovery test plugin * Add python 3.9 in setup.py * Skip python 3.9 tests on windows * use assert_text_same when lengths of actual and expected output do not match * Remove dependency on hydra version * Check python version to decide if importlib_resources should be imported * Update the install script for plugins to reflect support for python 3.9 * pin virtualenv to 20.0.33 for windows * Fix lint error * Enable CI for 3.9 on windows * Update circle ci config * Update circle ci config * Fix issues with windows * Skip Ray test for Python 3.9 * Incorporate feedback * Fix circleci config * Fix lint errors * Fix circleci config * Fix some ci errors * Fix lint error * Fix lint error * Update setup.py for some plugins * Disable windows 9 support * Ax plugin doesnt support 3.9 for now * Nevergrad python 3.9 support depends on Scikit-learn * Add news entries * Accidentally removed support for optuna on windows * Incorporate feedback * Disable windows test for optuna
* Fix importlib error when using py3.9 * Fix lint errors * Add a method to match lines based on regex * fix lint error * bump hydra version in discovery test plugin * Add python 3.9 in setup.py * Skip python 3.9 tests on windows * use assert_text_same when lengths of actual and expected output do not match * Remove dependency on hydra version * Check python version to decide if importlib_resources should be imported * Update the install script for plugins to reflect support for python 3.9 * pin virtualenv to 20.0.33 for windows * Fix lint error * Enable CI for 3.9 on windows * Update circle ci config * Update circle ci config * Fix issues with windows * Skip Ray test for Python 3.9 * Incorporate feedback * Fix circleci config * Fix lint errors * Fix circleci config * Fix some ci errors * Fix lint error * Fix lint error * Update setup.py for some plugins * Disable windows 9 support * Ax plugin doesnt support 3.9 for now * Nevergrad python 3.9 support depends on Scikit-learn * Add news entries * Accidentally removed support for optuna on windows * Incorporate feedback * Disable windows test for optuna
* Support for Python 3.9 (#1197) * Fix importlib error when using py3.9 * Fix lint errors * Add a method to match lines based on regex * fix lint error * bump hydra version in discovery test plugin * Add python 3.9 in setup.py * Skip python 3.9 tests on windows * use assert_text_same when lengths of actual and expected output do not match * Remove dependency on hydra version * Check python version to decide if importlib_resources should be imported * Update the install script for plugins to reflect support for python 3.9 * pin virtualenv to 20.0.33 for windows * Fix lint error * Enable CI for 3.9 on windows * Update circle ci config * Update circle ci config * Fix issues with windows * Skip Ray test for Python 3.9 * Incorporate feedback * Fix circleci config * Fix lint errors * Fix circleci config * Fix some ci errors * Fix lint error * Fix lint error * Update setup.py for some plugins * Disable windows 9 support * Ax plugin doesnt support 3.9 for now * Nevergrad python 3.9 support depends on Scikit-learn * Add news entries * Accidentally removed support for optuna on windows * Incorporate feedback * Disable windows test for optuna * Remove some commented statements
Motivation
Support for Python 3.9
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
CI
Related Issues and PRs
(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)
#1062