1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #330006 from GaetanLepage/ray

ray: 2.32.0 -> 2.33.0
This commit is contained in:
Gaétan Lepage 2024-07-28 23:46:05 +02:00 committed by GitHub
commit 6757ddeee0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 60 additions and 60 deletions

View file

@ -1,11 +1,11 @@
{ {
cp310 = { cp310 = {
hash = "sha256-YlQ2hoW5MjQkOJ4L2/GsomlyX3rkNDjdC82hZ0RwzGw="; hash = "sha256-cHxgTJS5t5nQXi//EWtyUHhGelZbbd5mOs9cegeaj58=";
}; };
cp311 = { cp311 = {
hash = "sha256-VhbwU8sSccbuybGCPGeEF+lXv9fGGtVs1+e4S5vOURI="; hash = "sha256-+rj/xdcVHe23UOzZ6YbTq7ULMgYTyjeN5peNoa3NMVc=";
}; };
cp312 = { cp312 = {
hash = "sha256-EYug39E5RXG8W8x7aQTajcbFmvq8FZiXxdiSKV3htBE="; hash = "sha256-4GWQJp0OUjt2X+Hw+E0HpWv04TN8HlSkIoEHsHIrfe0=";
}; };
} }

View file

@ -1,58 +1,62 @@
{ {
lib,
buildPythonPackage,
pythonOlder,
pythonAtLeast,
python,
fetchPypi,
autoPatchelfHook,
# dependencies
aiohttp, aiohttp,
aiohttp-cors, aiohttp-cors,
aiorwlock,
aiosignal, aiosignal,
attrs, attrs,
autoPatchelfHook,
buildPythonPackage,
fetchPypi,
click, click,
cloudpickle, cloudpickle,
colorama, colorama,
colorful, colorful,
cython, cython,
dm-tree,
fastapi,
filelock, filelock,
frozenlist, frozenlist,
fsspec,
gpustat, gpustat,
grpcio, grpcio,
gym,
jsonschema, jsonschema,
lib,
lz4,
matplotlib,
msgpack, msgpack,
numpy, numpy,
opencensus, opencensus,
packaging, packaging,
pandas,
py-spy,
prometheus-client, prometheus-client,
psutil, psutil,
pyarrow,
pydantic, pydantic,
python, py-spy,
pythonAtLeast,
pythonOlder,
pyyaml, pyyaml,
requests, requests,
scikit-image,
scipy,
setproctitle, setproctitle,
smart-open, smart-open,
virtualenv,
# optional-dependencies
fsspec,
pandas,
pyarrow,
dm-tree,
gym,
lz4,
matplotlib,
scikit-image,
scipy,
aiorwlock,
fastapi,
starlette, starlette,
uvicorn,
tabulate, tabulate,
tensorboardx, tensorboardx,
uvicorn,
virtualenv,
}: }:
let let
pname = "ray"; pname = "ray";
version = "2.32.0"; version = "2.33.0";
in in
buildPythonPackage rec { buildPythonPackage rec {
inherit pname version; inherit pname version;
@ -76,39 +80,6 @@ buildPythonPackage rec {
// binary-hash // binary-hash
); );
passthru.optional-dependencies = rec {
data-deps = [
pandas
pyarrow
fsspec
];
serve-deps = [
aiorwlock
fastapi
pandas
starlette
uvicorn
];
tune-deps = [
tabulate
tensorboardx
];
rllib-deps = tune-deps ++ [
dm-tree
gym
lz4
matplotlib
scikit-image
pyyaml
scipy
];
air-deps = data-deps ++ serve-deps ++ tune-deps ++ rllib-deps;
};
nativeBuildInputs = [ nativeBuildInputs = [
autoPatchelfHook autoPatchelfHook
]; ];
@ -121,10 +92,10 @@ buildPythonPackage rec {
]; ];
dependencies = [ dependencies = [
attrs
aiohttp aiohttp
aiohttp-cors aiohttp-cors
aiosignal aiosignal
attrs
click click
cloudpickle cloudpickle
colorama colorama
@ -139,10 +110,10 @@ buildPythonPackage rec {
numpy numpy
opencensus opencensus
packaging packaging
py-spy
prometheus-client prometheus-client
psutil psutil
pydantic pydantic
py-spy
pyyaml pyyaml
requests requests
setproctitle setproctitle
@ -150,6 +121,35 @@ buildPythonPackage rec {
virtualenv virtualenv
]; ];
optional-dependencies = rec {
air-deps = data-deps ++ serve-deps ++ tune-deps ++ rllib-deps;
data-deps = [
fsspec
pandas
pyarrow
];
rllib-deps = tune-deps ++ [
dm-tree
gym
lz4
matplotlib
pyyaml
scikit-image
scipy
];
serve-deps = [
aiorwlock
fastapi
pandas
starlette
uvicorn
];
tune-deps = [
tabulate
tensorboardx
];
};
postInstall = '' postInstall = ''
chmod +x $out/${python.sitePackages}/ray/core/src/ray/{gcs/gcs_server,raylet/raylet} chmod +x $out/${python.sitePackages}/ray/core/src/ray/{gcs/gcs_server,raylet/raylet}
''; '';