-
Notifications
You must be signed in to change notification settings - Fork 761
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
Drop Python 3.8 from workflows, run on 3.11 #3228
Conversation
This reverts commit c95d386.
879a304
to
b572b57
Compare
@@ -50,7 +50,7 @@ def test_custom_neg_bin_cdf(total_count, probs, value): | |||
@pytest.mark.parametrize("probs", [0.1, 0.5, 0.8]) | |||
@pytest.mark.parametrize("total_count", [3, 7, 100]) | |||
@pytest.mark.parametrize("value", [0.1, 0.5, 0.9]) | |||
def test_custom_neg_bin_icdf(total_count, probs, value): | |||
def test_custom_studentt_icdf(total_count, probs, value): |
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.
why studentt? (the function body refers to NegBin still.
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.
ha! rebasing issue I suppose
.github/workflows/tests-prophet.yaml
Outdated
@@ -8,7 +8,7 @@ jobs: | |||
max-parallel: 4 | |||
fail-fast: false | |||
matrix: | |||
python-version: ['3.8'] | |||
python-version: ['3.12'] |
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.
prophet itself only appears to support until 3.11
https://github.com/facebook/prophet/blob/main/python/pyproject.toml
.github/workflows/tests-r.yml
Outdated
@@ -8,7 +8,7 @@ jobs: | |||
max-parallel: 4 | |||
fail-fast: false | |||
matrix: | |||
python-version: ['3.9'] | |||
python-version: ['3.12'] |
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.
why 3.12 in some places and 3.11 in others? should 3.11 be our standard latest especially in extras?
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 that makes sense, updating
context_length: int = serde.OrElse( | ||
lambda prediction_length: prediction_length * 2 | ||
) |
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.
Python 3.11 would complain here, that the default value in a dataclass cannot be mutable
@@ -30,7 +30,7 @@ | |||
|
|||
try: | |||
import mxnet as mx | |||
except ImportError: |
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.
The import above can raise OSError
as well, so I'm catching that too to turn off mx
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! Thanks!
|
||
use_feat_static_cat: bool = True | ||
cardinality: List[int] = serde.EVENTUAL | ||
|
||
def __eventually__(self, cardinality): | ||
def __eventually__(self, context_length, cardinality): |
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.
🪄
*Issue #, if available:* Python 3.8 reached EOL, and some packages are not distributed for it in their latest versions. *Description of changes:* - update github workflows to run on Python (up to) 3.11 - fix tests and testutils that would break on 3.11 - delete some unused workflows - update sphinx version used in the docs build workflow By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. **Please tag this pr with at least one of these labels to make our release process faster:** BREAKING, new feature, bug fix, other change, dev setup
*Description of changes:* Backporting PRs - #3228 - #3232 - #3233 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. **Please tag this pr with at least one of these labels to make our release process faster:** BREAKING, new feature, bug fix, other change, dev setup
Issue #, if available: Python 3.8 reached EOL, and some packages are not distributed for it in their latest versions.
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup