Skip to content

Commit 81293c6

Browse files
committed
[Versioning] Bump 0.8.0
ghstack-source-id: 74b3ef75b2b911c097c1d985068958b697a00134 Pull-Request-resolved: #2920
1 parent d45d926 commit 81293c6

File tree

88 files changed

+147
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+147
-76
lines changed

.github/scripts/pre-build-script-win.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
pip install --upgrade setuptools
44

5-
export TORCHRL_BUILD_VERSION=0.7.0
5+
export TORCHRL_BUILD_VERSION=0.8.0
66

7+
${CONDA_RUN} pip install "pybind11[global]"
8+
${CONDA_RUN} conda install anaconda::cmake -y
79
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U

.github/scripts/pre-build-script.sh

+2
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
pip install --upgrade setuptools
44

5+
${CONDA_RUN} pip install "pybind11[global]"
6+
${CONDA_RUN} conda install anaconda::cmake -y
57
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U

.github/scripts/td_script.sh

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
#!/bin/bash
22

3-
export TORCHRL_BUILD_VERSION=0.7.0
3+
export TORCHRL_BUILD_VERSION=0.8.0
44
pip install --upgrade setuptools
55

66
# Check if ARCH is set to aarch64
77
ARCH=${ARCH:-} # This sets ARCH to an empty string if it's not defined
88

99
if pip list | grep -q torch; then
1010
echo "Torch is installed."
11-
if [[ "$ARCH" == "aarch64" ]]; then
12-
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
13-
else
14-
${CONDA_RUN} pip install tensordict-nightly -U
15-
fi
11+
${CONDA_RUN} pip install "pybind11[global]"
12+
${CONDA_RUN} conda install anaconda::cmake -y
13+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
1614
elif [[ -n "${SMOKE_TEST_SCRIPT:-}" ]]; then
1715
${CONDA_RUN} ${PIP_INSTALL_TORCH}
18-
if [[ "$ARCH" == "aarch64" ]]; then
19-
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
20-
else
21-
${CONDA_RUN} pip install tensordict-nightly -U
22-
fi
16+
# TODO: revert when nightlies of tensordict are fixed
17+
# if [[ "$ARCH" == "aarch64" ]]; then
18+
${CONDA_RUN} pip install "pybind11[global]"
19+
${CONDA_RUN} conda install anaconda::cmake -y
20+
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
2321
else
2422
echo "Torch is not installed - tensordict will be installed later."
2523
fi

.github/scripts/version_script.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set TORCHRL_BUILD_VERSION=0.7.0
2+
set TORCHRL_BUILD_VERSION=0.8.0
33
echo TORCHRL_BUILD_VERSION is set to %TORCHRL_BUILD_VERSION%
44

55
@echo on

.github/unittest/linux/scripts/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies:
1919
- pytest-timeout
2020
- pytest-asyncio
2121
- expecttest
22+
- pybind11[global]
2223
- pyyaml
2324
- scipy
2425
- hydra-core

.github/unittest/linux/scripts/run_all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -v
99

1010
if [[ $OSTYPE != 'darwin'* ]]; then
1111
apt-get update && apt-get upgrade -y
12-
apt-get install -y vim git wget libsdl2-dev libsdl2-2.0-0
12+
apt-get install -y vim git wget libsdl2-dev libsdl2-2.0-0 cmake
1313

1414
apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
1515
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2

.github/unittest/linux_distributed/scripts/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies:
1818
- pytest-rerunfailures
1919
- pytest-asyncio
2020
- expecttest
21+
- pybind11[global]
2122
- pyyaml
2223
- scipy
2324
- hydra-core

.github/unittest/linux_libs/scripts_ataridqn/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- pytest-error-for-skips
1818
- pytest-asyncio
1919
- expecttest
20+
- pybind11[global]
2021
- pyyaml
2122
- scipy
2223
- hydra-core

.github/unittest/linux_libs/scripts_ataridqn/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export LAZY_LEGACY_OP=False

.github/unittest/linux_libs/scripts_ataridqn/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
set -v
1010

1111

12-
apt-get update && apt-get upgrade -y && apt-get install -y git
12+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1313
# Avoid error: "fatal: unsafe repository"
1414
git config --global --add safe.directory '*'
1515
apt-get install -y wget \

.github/unittest/linux_libs/scripts_brax/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_brax/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
set -euxo pipefail
99

10-
apt-get update && apt-get upgrade -y && apt-get install -y git
10+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1111
# Avoid error: "fatal: unsafe repository"
1212
git config --global --add safe.directory '*'
1313
apt-get install -y wget \

.github/unittest/linux_libs/scripts_chess/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_chess/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ unset PYTORCH_VERSION
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
77
apt-get update && apt-get install -y \
8+
cmake \
89
git \
910
wget \
1011
gcc \

.github/unittest/linux_libs/scripts_chess/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get install -y git wget
8+
apt-get update && apt-get install -y git wget cmake
99

1010
export PYTORCH_TEST_WITH_SLOW='1'
1111
export LAZY_LEGACY_OP=False

.github/unittest/linux_libs/scripts_chess/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
apt-get update && apt-get upgrade -y && apt-get install -y git
12+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1313
# Avoid error: "fatal: unsafe repository"
1414
git config --global --add safe.directory '*'
1515
apt-get install -y wget \

.github/unittest/linux_libs/scripts_d4rl/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_d4rl/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
# we install d4rl here bc env variables have been updated

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
apt-get update && apt-get upgrade -y && apt-get install -y git
12+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1313
# Avoid error: "fatal: unsafe repository"
1414
git config --global --add safe.directory '*'
1515
apt-get install -y wget \

.github/unittest/linux_libs/scripts_envpool/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- pytest-error-for-skips
1818
- pytest-asyncio
1919
- expecttest
20+
- pybind11[global]
2021
- pyyaml
2122
- scipy
2223
- dm_control

.github/unittest/linux_libs/scripts_envpool/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
apt-get update && apt-get upgrade -y && apt-get install -y git
9+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1010
# Avoid error: "fatal: unsafe repository"
1111
git config --global --add safe.directory '*'
1212
apt-get install -y wget \

.github/unittest/linux_libs/scripts_gen-dgrl/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_gen-dgrl/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_gen-dgrl/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -e
99
set -v
1010

11-
apt-get update && apt-get upgrade -y && apt-get install -y git
11+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1212
# Avoid error: "fatal: unsafe repository"
1313
git config --global --add safe.directory '*'
1414
apt-get install -y wget \

.github/unittest/linux_libs/scripts_gym/batch_scripts.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ conda activate ./env
1515
$DIR/install.sh
1616

1717
# Extracted from run_test.sh to run once.
18-
apt-get update && apt-get install -y git wget libglew-dev libx11-dev x11proto-dev g++
18+
apt-get update && apt-get install -y git wget libglew-dev libx11-dev x11proto-dev g++ cmake
1919

2020
# solves "'extras_require' must be a dictionary"
2121
pip install setuptools==65.3.0

.github/unittest/linux_libs/scripts_gym/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies:
2121
- pytest-error-for-skips
2222
- pytest-asyncio
2323
- expecttest
24+
- pybind11[global]
2425
- pyyaml
2526
- scipy
2627
- hydra-core

.github/unittest/linux_libs/scripts_gym/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
7+
apt-get update && apt-get install -y git wget gcc g++ cmake
88

99
set -e
1010
set -v

.github/unittest/linux_libs/scripts_gym/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99

1010
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1111
# Avoid error: "fatal: unsafe repository"
12-
apt-get update && apt-get install -y git wget gcc g++
12+
apt-get update && apt-get install -y git wget gcc g++ cmake
1313

1414
git config --global --add safe.directory '*'
1515
root_dir="$(git rev-parse --show-toplevel)"

.github/unittest/linux_libs/scripts_habitat/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-rerunfailures
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy==1.9.1
2021
- hydra-core

.github/unittest/linux_libs/scripts_habitat/run_all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -v
55

66

77
apt-get update && apt-get upgrade -y
8-
apt-get install -y vim git wget
8+
apt-get install -y vim git wget cmake
99

1010
apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
1111
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2

.github/unittest/linux_libs/scripts_jumanji/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_jumanji/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
7-
apt-get update && apt-get install -y git wget
7+
apt-get update && apt-get install -y git wget cmake
88

99

1010
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_jumanji/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
apt-get update && apt-get upgrade -y && apt-get install -y git
9+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1010
# Avoid error: "fatal: unsafe repository"
1111
git config --global --add safe.directory '*'
1212
apt-get install -y wget \

.github/unittest/linux_libs/scripts_llm/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_llm/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get install -y git gcc
8+
apt-get update && apt-get install -y git gcc cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_llm/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
apt-get update && apt-get upgrade -y && apt-get install -y git
9+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1010
# Avoid error: "fatal: unsafe repository"
1111
git config --global --add safe.directory '*'
1212
apt-get install -y wget \

.github/unittest/linux_libs/scripts_meltingpot/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ dependencies:
1414
- pytest-error-for-skips
1515
- pytest-asyncio
1616
- expecttest
17+
- pybind11[global]

.github/unittest/linux_libs/scripts_meltingpot/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
7-
apt-get update && apt-get install -y git wget
7+
apt-get update && apt-get install -y git wget cmake
88

99

1010
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_meltingpot/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e -v
9-
apt-get update && apt-get upgrade -y && apt-get install -y git
9+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1010
# Avoid error: "fatal: unsafe repository"
1111
git config --global --add safe.directory '*'
1212
apt-get install -y wget \

.github/unittest/linux_libs/scripts_minari/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies:
1515
- pytest-error-for-skips
1616
- pytest-asyncio
1717
- expecttest
18+
- pybind11[global]
1819
- pyyaml
1920
- scipy
2021
- hydra-core

.github/unittest/linux_libs/scripts_minari/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
8+
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0 cmake
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export PYTORCH_TEST_WITH_SLOW='1'

.github/unittest/linux_libs/scripts_minari/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
set -e
99
set -v
1010

11-
apt-get update && apt-get upgrade -y && apt-get install -y git
11+
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
1212
# Avoid error: "fatal: unsafe repository"
1313
git config --global --add safe.directory '*'
1414
apt-get install -y wget \

.github/unittest/linux_libs/scripts_open_spiel/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies:
1414
- pytest-rerunfailures
1515
- pytest-error-for-skips
1616
- expecttest
17+
- pybind11[global]
1718
- pyyaml
1819
- scipy
1920
- hydra-core

.github/unittest/linux_libs/scripts_open_spiel/run_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
apt-get update && apt-get install -y git wget
8+
apt-get update && apt-get install -y git wget cmake
99

1010
export PYTORCH_TEST_WITH_SLOW='1'
1111
export LAZY_LEGACY_OP=False

0 commit comments

Comments
 (0)