Bump optree version to 0.13.0 to enable Python 3.13 and Python 3.13t support (#137396)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/137396
Approved by: https://github.com/albanD
This commit is contained in:
Xuehai Pan
2024-10-07 17:57:14 +08:00
committed by PyTorch MergeBot
parent 493d0eeef3
commit 59cdd8ddf1
7 changed files with 8 additions and 8 deletions

View File

@ -139,9 +139,9 @@ opt-einsum==3.3
#Pinned versions: 3.3
#test that import: test_linalg.py
optree==0.12.1
optree==0.13.0
#Description: A library for tree manipulation
#Pinned versions: 0.12.1
#Pinned versions: 0.13.0
#test that import: test_vmap.py, test_aotdispatch.py, test_dynamic_shapes.py,
#test_pytree.py, test_ops.py, test_control_flow.py, test_modules.py,
#common_utils.py, test_eager_transforms.py, test_python_dispatch.py,

View File

@ -1,4 +1,4 @@
# iOS simulator requirements
coremltools==5.0b5
protobuf==3.20.2
optree==0.12.1
optree==0.13.0

View File

@ -27,7 +27,7 @@ pytest-cpp==2.3.0
rockset==1.0.3
z3-solver==4.12.2.0
tensorboard==2.13.0
optree==0.12.1
optree==0.13.0
# NB: test_hparams_* from test_tensorboard is failing with protobuf 5.26.0 in
# which the stringify metadata is wrong when escaping double quote
protobuf==3.20.2

View File

@ -189,7 +189,7 @@ jobs:
run: |
pushd "${PYTORCH_FINAL_PACKAGE_DIR}"
# shellcheck disable=SC2046,SC2102
python3 -mpip install $(echo *.whl)[opt-einsum,optree] optree==0.12.1
python3 -mpip install $(echo *.whl)[opt-einsum,optree] optree==0.13.0
popd
.ci/pytorch/win-test.sh

View File

@ -153,7 +153,7 @@ init_command = [
'junitparser==2.1.1',
'rich==10.9.0',
'pyyaml==6.0.1',
'optree==0.12.1',
'optree==0.13.0',
]
[[linter]]

View File

@ -21,4 +21,4 @@ fsspec
lintrunner
ninja
packaging
optree>=0.12.0 ; python_version <= "3.12"
optree>=0.13.0

View File

@ -1203,7 +1203,7 @@ def main():
install_requires += extra_install_requires
extras_require = {
"optree": ["optree>=0.12.0"],
"optree": ["optree>=0.13.0"],
"opt-einsum": ["opt-einsum>=3.3"],
}