Skip to content

[Versioning] Bump 0.8.0 #2920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/scripts/pre-build-script-win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

pip install --upgrade setuptools

export TORCHRL_BUILD_VERSION=0.7.0
export TORCHRL_BUILD_VERSION=0.8.0

${CONDA_RUN} pip install "pybind11[global]"
${CONDA_RUN} conda install anaconda::cmake -y
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U
2 changes: 2 additions & 0 deletions .github/scripts/pre-build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

pip install --upgrade setuptools

${CONDA_RUN} pip install "pybind11[global]"
${CONDA_RUN} conda install anaconda::cmake -y
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U
20 changes: 9 additions & 11 deletions .github/scripts/td_script.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
#!/bin/bash

export TORCHRL_BUILD_VERSION=0.7.0
export TORCHRL_BUILD_VERSION=0.8.0
pip install --upgrade setuptools

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

if pip list | grep -q torch; then
echo "Torch is installed."
if [[ "$ARCH" == "aarch64" ]]; then
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
else
${CONDA_RUN} pip install tensordict-nightly -U
fi
${CONDA_RUN} pip install "pybind11[global]"
${CONDA_RUN} conda install anaconda::cmake -y
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
elif [[ -n "${SMOKE_TEST_SCRIPT:-}" ]]; then
${CONDA_RUN} ${PIP_INSTALL_TORCH}
if [[ "$ARCH" == "aarch64" ]]; then
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
else
${CONDA_RUN} pip install tensordict-nightly -U
fi
# TODO: revert when nightlies of tensordict are fixed
# if [[ "$ARCH" == "aarch64" ]]; then
${CONDA_RUN} pip install "pybind11[global]"
${CONDA_RUN} conda install anaconda::cmake -y
${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U --no-deps
else
echo "Torch is not installed - tensordict will be installed later."
fi
2 changes: 1 addition & 1 deletion .github/scripts/version_script.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
set TORCHRL_BUILD_VERSION=0.7.0
set TORCHRL_BUILD_VERSION=0.8.0
echo TORCHRL_BUILD_VERSION is set to %TORCHRL_BUILD_VERSION%

@echo on
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux/scripts/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- pytest-timeout
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux/scripts/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -v

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

apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_distributed/scripts/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- pytest-rerunfailures
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_ataridqn/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

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

export LAZY_LEGACY_OP=False
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_ataridqn/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e
set -v


apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_brax/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_brax/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

set -euxo pipefail

apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_chess/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_chess/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ unset PYTORCH_VERSION
# so no need to set PYTORCH_VERSION.
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
apt-get update && apt-get install -y \
cmake \
git \
wget \
gcc \
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_chess/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

apt-get update && apt-get install -y git wget
apt-get update && apt-get install -y git wget cmake

export PYTORCH_TEST_WITH_SLOW='1'
export LAZY_LEGACY_OP=False
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_chess/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e
set -v

this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_d4rl/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_d4rl/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

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

# we install d4rl here bc env variables have been updated
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_d4rl/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e
set -v

this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- dm_control
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_envpool/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Do not install PyTorch and torchvision here, otherwise they also get cached.

set -e
apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gen-dgrl/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

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

export PYTORCH_TEST_WITH_SLOW='1'
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gen-dgrl/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
set -e
set -v

apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gym/batch_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ conda activate ./env
$DIR/install.sh

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

# solves "'extras_require' must be a dictionary"
pip install setuptools==65.3.0
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_gym/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gym/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ unset PYTORCH_VERSION
# For unittest, nightly PyTorch is used as the following section,
# so no need to set PYTORCH_VERSION.
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
apt-get update && apt-get install -y git wget gcc g++
apt-get update && apt-get install -y git wget gcc g++ cmake

set -e
set -v
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gym/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e

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

git config --global --add safe.directory '*'
root_dir="$(git rev-parse --show-toplevel)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-rerunfailures
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy==1.9.1
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_habitat/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -v


apt-get update && apt-get upgrade -y
apt-get install -y vim git wget
apt-get install -y vim git wget cmake

apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_jumanji/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

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


export PYTORCH_TEST_WITH_SLOW='1'
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_jumanji/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Do not install PyTorch and torchvision here, otherwise they also get cached.

set -e
apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_llm/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_llm/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

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

export PYTORCH_TEST_WITH_SLOW='1'
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_llm/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Do not install PyTorch and torchvision here, otherwise they also get cached.

set -e
apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_meltingpot/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

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


export PYTORCH_TEST_WITH_SLOW='1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Do not install PyTorch and torchvision here, otherwise they also get cached.

set -e -v
apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
1 change: 1 addition & 0 deletions .github/unittest/linux_libs/scripts_minari/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- pytest-error-for-skips
- pytest-asyncio
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_minari/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

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

export PYTORCH_TEST_WITH_SLOW='1'
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_minari/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
set -e
set -v

apt-get update && apt-get upgrade -y && apt-get install -y git
apt-get update && apt-get upgrade -y && apt-get install -y git cmake
# Avoid error: "fatal: unsafe repository"
git config --global --add safe.directory '*'
apt-get install -y wget \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- pytest-rerunfailures
- pytest-error-for-skips
- expecttest
- pybind11[global]
- pyyaml
- scipy
- hydra-core
Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_open_spiel/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

apt-get update && apt-get install -y git wget
apt-get update && apt-get install -y git wget cmake

export PYTORCH_TEST_WITH_SLOW='1'
export LAZY_LEGACY_OP=False
Expand Down
Loading
Loading