Repository navigation
[ci] add python >= 3.10 for gymnasium to make windows CI happy - #59572
Conversation
| @@ -1,4 +1,4 @@ | |||
| # These are mirrored in setup.py as install_requires, | |||
| # These are mirrored in setup.py as install_requires,a | |||
There was a problem hiding this comment.
Bug: Accidental character added to comment line
A stray character a was accidentally appended to the end of the comment on line 1, changing install_requires, to install_requires,a. This appears to be an unintentional typo that was committed alongside the intended gymnasium version constraint change.
| @@ -1,4 +1,4 @@ | |||
| # These are mirrored in setup.py as install_requires, | |||
| # These are mirrored in setup.py as install_requires,a | |||
There was a problem hiding this comment.
Bug: Accidental character added to comment line
A stray character a was accidentally appended to the end of the comment on line 1, changing install_requires, to install_requires,a. This appears to be an unintentional typo that was committed alongside the intended gymnasium version constraint change.
| @@ -39,7 +39,7 @@ opentelemetry-api | |||
| opentelemetry-exporter-prometheus | |||
| opentelemetry-proto | |||
| fastapi | |||
| gymnasium==1.2.2 | |||
| gymnasium==1.2.2; python_version >= '3.10' | |||
There was a problem hiding this comment.
Bug: Gymnasium constraint not synchronized to setup.py
The Python version constraint python_version >= '3.10' was added for gymnasium in requirements.txt, but setup.py line 325 still has gymnasium==1.2.2 without this constraint. The comment at the top of requirements.txt explicitly states to synchronize changes to setup.py. Users installing ray[rllib] via pip will still encounter the original Windows CI issue since the constraint wasn't applied consistently.
There was a problem hiding this comment.
Code Review
This pull request adds a Python version constraint to the gymnasium dependency in python/requirements.txt, restricting it to Python 3.10 and newer. This is intended to resolve issues on the Windows CI. My review includes a minor fix for a typo in a comment and a more important point about maintaining consistency with setup.py, where the same dependency needs to be updated.
| @@ -39,7 +39,7 @@ opentelemetry-api | |||
| opentelemetry-exporter-prometheus | |||
| opentelemetry-proto | |||
| fastapi | |||
| gymnasium==1.2.2 | |||
| gymnasium==1.2.2; python_version >= '3.10' | |||
There was a problem hiding this comment.
The comment at the top of this file (lines 1-5) mentions that changes should be mirrored in setup.py. The gymnasium dependency is also present in python/setup.py for the rllib extra (line 325), but it lacks this Python version constraint. To maintain consistency between developer and user installations, please add the version constraint to setup.py as well.
# python/setup.py:325
"gymnasium==1.2.2; python_version >= '3.10'",| @@ -1,4 +1,4 @@ | |||
| # These are mirrored in setup.py as install_requires, | |||
| # These are mirrored in setup.py as install_requires,a | |||
we can remove the python version constraint after windows CI is migrated to python 3.9 Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: Lonnie Liu <[email protected]>
f65a90d to
20224d8
Compare
## Description bump gymnasium to 1.2.2 in byod-rllib follow up on: * #59530 related: * #59572 Signed-off-by: Kamil Kaczmarek <[email protected]>
…roject#59572) we can remove the python version constraint after windows CI is migrated to python 3.9 Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: jasonwrwang <[email protected]>
## Description bump gymnasium to 1.2.2 in byod-rllib follow up on: * ray-project#59530 related: * ray-project#59572 Signed-off-by: Kamil Kaczmarek <[email protected]> Signed-off-by: jasonwrwang <[email protected]>
we can remove the python version constraint after windows CI is migrated to python 3.9