ray/python/requirements.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

107 lines
2 KiB
Text
Raw Normal View History

# These are mirrored in setup.py as install_requires,
# which is what the users of the ray package will install. The rest of this file
# sets up all the packages necessary for a /developer/ of Ray.
#
# In short, if you change it here, PLEASE also change it in setup.py.
#
# setup.py install_requires
aiohttp>=3.7
aiosignal
click >= 7.0, <= 8.0.4
cloudpickle
filelock
frozenlist
2022-07-05 15:05:20 -07:00
gpustat == 1.0.0b1
grpcio >= 1.28.1, <= 1.43.0
jsonschema
msgpack >= 1.0.0, < 2.0.0
numpy >= 1.16
opencensus
prometheus_client >= 0.7.1, < 0.14.0
protobuf >= 3.15.3, < 4.0.0
py-spy >= 0.2.0
pydantic >= 1.8
pyyaml
requests
smart_open
virtualenv
## setup.py extras
dm_tree
flask
pygame
2022-05-23 08:18:44 +02:00
gym>=0.21.0,<0.24.0; python_version >= '3.7'
[RLlib] Upgrade gym version to 0.21 and deprecate pendulum-v0. (#19535) * Fix QMix, SAC, and MADDPA too. * Unpin gym and deprecate pendulum v0 Many tests in rllib depended on pendulum v0, however in gym 0.21, pendulum v0 was deprecated in favor of pendulum v1. This may change reward thresholds, so will have to potentially rerun all of the pendulum v1 benchmarks, or use another environment in favor. The same applies to frozen lake v0 and frozen lake v1 Lastly, all of the RLlib tests and have been moved to python 3.7 * Add gym installation based on python version. Pin python<= 3.6 to gym 0.19 due to install issues with atari roms in gym 0.20 * Reformatting * Fixing tests * Move atari-py install conditional to req.txt * migrate to new ale install method * Fix QMix, SAC, and MADDPA too. * Unpin gym and deprecate pendulum v0 Many tests in rllib depended on pendulum v0, however in gym 0.21, pendulum v0 was deprecated in favor of pendulum v1. This may change reward thresholds, so will have to potentially rerun all of the pendulum v1 benchmarks, or use another environment in favor. The same applies to frozen lake v0 and frozen lake v1 Lastly, all of the RLlib tests and have been moved to python 3.7 * Add gym installation based on python version. Pin python<= 3.6 to gym 0.19 due to install issues with atari roms in gym 0.20 Move atari-py install conditional to req.txt migrate to new ale install method Make parametric_actions_cartpole return float32 actions/obs Adding type conversions if obs/actions don't match space Add utils to make elements match gym space dtypes Co-authored-by: Jun Gong <jungong@anyscale.com> Co-authored-by: sven1977 <svenmika1977@gmail.com>
2021-11-03 08:24:00 -07:00
gym==0.19.0; python_version < '3.7'
lz4
scikit-image
pandas>=1.0.5; python_version < '3.7'
pandas>=1.3.0; python_version >= '3.7'
scipy >= 1.5
tabulate
tensorboardX >= 1.9
uvicorn==0.16.0
dataclasses; python_version < '3.7'
starlette==0.18.0
aiorwlock
# Requirements for running tests
pyarrow >= 6.0.1, < 7.0.0
# Used for Dataset tests.
polars
azure-cli-core==2.29.1
azure-identity==1.7.0
azure-mgmt-compute==23.1.0
azure-mgmt-network==19.0.0
azure-mgmt-resource==20.0.0
msrestazure==0.6.4
boto3
cython >= 0.29.26
dataclasses; python_version < '3.7'
feather-format
google-api-python-client
google-cloud-storage
gym-minigrid
kubernetes
lxml
moto[s3,server]
mypy
networkx
numba
asyncmock
# higher version of llvmlite breaks windows
llvmlite==0.34.0
openpyxl
opentelemetry-api==1.1.0
opentelemetry-sdk==1.1.0
opentelemetry-exporter-otlp==1.1.0
pexpect
Pillow; platform_system != "Windows"
pygments
2021-10-18 13:10:06 -07:00
pyspark==3.1.2
Bump pytest from 5.4.3 to 7.0.1 (#26334) See #23676 for context. This is another attempt at that as I figured out what's going wrong in `bazel test`. Supersedes #24828. Now that there are Python 3.10 wheels for Ray 1.13 and this is no longer a blocker for supporting Python 3.10, I still want to make `bazel test //python/ray/tests/...` work for developing in a 3.10 env, and make it easier to add Python 3.10 tests to CI in future. The change contains three commits with rather descriptive commit message, which I repeat here: Pass deps to py_test in py_test_module_list Bazel macro py_test_module_list takes a `deps` argument, but completely ignores it instead of passes it to `native.py_test`. Fixing that as we are going to use deps of py_test_module_list in BUILD in later changes. cpp/BUILD.bazel depends on the broken behaviour: it deps-on a cc_library from a py_test, which isn't working, see upstream issue: https://github.com/bazelbuild/bazel/issues/701. This is fixed by simply removing the (non-working) deps. Depend on conftest and data files in Python tests BUILD files Bazel requires that all the files used in a test run should be represented in the transitive dependencies specified for the test target. For py_test, it means srcs, deps and data. Bazel enforces this constraint by creating a "runfiles" directory, symbolic links files in the dependency closure and run the test in the "runfiles" directory, so that the test shouldn't see files not in the dependency graph. Unfortunately, the constraint does not apply for a large number of Python tests, due to pytest (>=3.9.0, <6.0) resolving these symbolic links during test collection and effectively "breaks out" of the runfiles tree. pytest >= 6.0 introduces a breaking change and removed the symbolic link resolving behaviour, see pytest pull request https://github.com/pytest-dev/pytest/pull/6523 for more context. Currently, we are underspecifying dependencies in a lot of BUILD files and thus blocking us from updating to newer pytest (for Python 3.10 support). This change hopefully fixes all of them, and at least those in CI, by adding data or source dependencies (mostly for conftest.py-s) where needed. Bump pytest version from 5.4.3 to 7.0.1 We want at least pytest 6.2.5 for Python 3.10 support, but not past 7.1.0 since it drops Python 3.6 support (which Ray still supports), thus the version constraint is set to <7.1. Updating pytest, combined with earlier BUILD fixes, changed the ground truth of a few error message based unit test, these tests are updated to reflect the change. There are also two small drive-by changes for making test_traceback and test_cli pass under Python 3.10. These are discovered while debugging CI failures (on earlier Python) with a Python 3.10 install locally. Expect more such issues when adding Python 3.10 to CI.
2022-07-13 12:14:35 +08:00
pytest==7.0.1
2022-01-13 11:35:30 -08:00
pytest-asyncio==0.16.0
pytest-rerunfailures
pytest-sugar
pytest-lazy-fixture
pytest-timeout
pytest-virtualenv
redis >= 3.5.0, < 4.0.0
scikit-learn==0.24.2
testfixtures
werkzeug
xlrd
starlette
fastapi==0.76.0
smart_open[s3]
tqdm
async-exit-stack
async-generator
cryptography>=3.0.0
proxy.py
# For doc tests
myst-parser==0.15.2
myst-nb==0.13.1
jupytext==1.13.6
pytest-docker-tools
pytest-forked