-
Notifications
You must be signed in to change notification settings - Fork 415
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
Require Python 3.9+, test for 3.9 and 3.11 #1924
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1924 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 177 177
Lines 15683 15683
=======================================
Hits 15675 15675
Misses 8 8 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Interesting, looks like py 3.11 is stricter on the dataclasses, I guess this will require a small patch. |
…1927) Summary: ## Motivation See error here: https://github.com/pytorch/botorch/actions/runs/5508336054/jobs/10039481686?pr=1924 * Tested with a tensor instead of a `DenseContainer` since we needed something non-mutable * Added a test that the tensor is properly cast to a `DenseContainer` * made code more readable (for me anyway) ### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)? Yes Pull Request resolved: #1927 Test Plan: Units ## Related PRs Unblocks #1924 Reviewed By: saitcakmak Differential Revision: D47341881 Pulled By: esantorella fbshipit-source-id: 64c497504bffde8cc227dff8eaaa85e17aa36b95
@esantorella has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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 think Python 3.8 was the latest version when I started using BoTorch. Python evolves fast!
@esantorella merged this pull request in 8c763b3. |
Summary: Follow up to pytorch/botorch#1924 to avoid CI failures. NOTE: We cannot support 3.11 currently due to a failure in torchx tests. See pytorch/torchx#744 Pull Request resolved: #1744 Reviewed By: esantorella Differential Revision: D47780385 Pulled By: saitcakmak fbshipit-source-id: af69631befbdb3035f1a969c03d73defb070e19e
Motivation
Python 3.11 was released over 8 months ago, so we should be testing for it. We can also drop support for Python 3.8, which was supplanted by 3.9 nearly 3 years ago.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Manually running nightly cron: https://github.com/pytorch/botorch/actions/runs/5508340274