Skip to content

Commit

Permalink
Release 2.10.0 (#737)
Browse files Browse the repository at this point in the history
* Prepare release v2.10.0

* Remove test upload
  • Loading branch information
araffin committed Mar 12, 2020
1 parent ed4e377 commit cfcdb2f
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -4,7 +4,7 @@ python:

env:
global:
- DOCKER_IMAGE=stablebaselines/stable-baselines-cpu:v2.9.0
- DOCKER_IMAGE=stablebaselines/stable-baselines-cpu:v2.10.0

notifications:
email: false
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:

- name: "Sphinx Documentation"
script:
- 'docker run -it --rm --mount src=$(pwd),target=/root/code/stable-baselines,type=bind ${DOCKER_IMAGE} bash -c "cd /root/code/stable-baselines/ && pip install .[docs] && pushd docs/ && make clean && make html"'
- 'docker run -it --rm --mount src=$(pwd),target=/root/code/stable-baselines,type=bind ${DOCKER_IMAGE} bash -c "cd /root/code/stable-baselines/ && pushd docs/ && make clean && make html"'

- name: "Type Checking"
script:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -27,12 +27,13 @@ ENV VENV /root/venv

COPY ./setup.py ${CODE_DIR}/stable-baselines/setup.py
RUN \
pip install pip --upgrade && \
pip install virtualenv && \
virtualenv $VENV --python=python3 && \
. $VENV/bin/activate && \
pip install --upgrade pip && \
cd ${CODE_DIR}/stable-baselines && \
pip install -e .[mpi,tests] && \
pip install -e .[mpi,tests,docs] && \
rm -rf $HOME/.cache/pip

ENV PATH=$VENV/bin:$PATH
Expand Down
22 changes: 22 additions & 0 deletions Makefile
Expand Up @@ -17,3 +17,25 @@ spelling:
# Clean the doc build folder
clean:
cd docs && make clean

# Build docker images
# If you do export RELEASE=True, it will also push them
docker: docker-cpu docker-gpu

docker-cpu:
./scripts/build_docker.sh

docker-gpu:
USE_GPU=True ./scripts/build_docker.sh

# PyPi package release
release:
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*

# Test PyPi package release
test-release:
python setup.py sdist
python setup.py bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
4 changes: 2 additions & 2 deletions docs/guide/install.rst
Expand Up @@ -116,13 +116,13 @@ Build GPU image (with nvidia-docker):

.. code-block:: bash
USE_GPU=True ./scripts/build_docker.sh
make docker-gpu
Build CPU image:

.. code-block:: bash
./scripts/build_docker.sh
make docker-cpu
Note: if you are using a proxy, you need to pass extra params during
build and do some `tweaks`_:
Expand Down
7 changes: 5 additions & 2 deletions docs/misc/changelog.rst
Expand Up @@ -6,8 +6,10 @@ Changelog
For download links, please look at `Github release page <https://github.com/hill-a/stable-baselines/releases>`_.


Pre-Release 2.10.0a0 (WIP)
--------------------------
Release 2.10.0 (2020-03-11)
---------------------------

**Callback collection, cleanup and bug fixes**

Breaking Changes:
^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -73,6 +75,7 @@ Bug Fixes:
- Fixed partial minibatch computation in ExpertDataset (@richardwu)
- Fixed normalization (with ``VecNormalize``) for off-policy algorithms
- Fixed ``sync_envs_normalization`` to sync the reward normalization too
- Bump minimum Gym version (>=0.11)

Deprecations:
^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_docker.sh
Expand Up @@ -4,7 +4,7 @@ CPU_PARENT=ubuntu:16.04
GPU_PARENT=nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04

TAG=stablebaselines/stable-baselines
VERSION=v2.9.0
VERSION=v2.10.0

if [[ ${USE_GPU} == "True" ]]; then
PARENT=${GPU_PARENT}
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_docker_cpu.sh
Expand Up @@ -7,5 +7,5 @@ echo "Executing in the docker (cpu image):"
echo $cmd_line

docker run -it --rm --network host --ipc=host \
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines-cpu:v2.9.0 \
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines-cpu:v2.10.0 \
bash -c "cd /root/code/stable-baselines/ && $cmd_line"
2 changes: 1 addition & 1 deletion scripts/run_docker_gpu.sh
Expand Up @@ -15,5 +15,5 @@ else
fi

docker run -it ${NVIDIA_ARG} --rm --network host --ipc=host \
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines:v2.9.0 \
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines:v2.10.0 \
bash -c "cd /root/code/stable-baselines/ && $cmd_line"
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -117,7 +117,7 @@ def find_tf_dependency():
'stable_baselines': ['py.typed'],
},
install_requires=[
'gym[atari,classic_control]>=0.10.9',
'gym[atari,classic_control]>=0.11',
'scipy',
'joblib',
'cloudpickle>=0.5.5',
Expand Down Expand Up @@ -152,7 +152,7 @@ def find_tf_dependency():
license="MIT",
long_description=long_description,
long_description_content_type='text/markdown',
version="2.10.0a0",
version="2.10.0",
)

# python setup.py sdist
Expand Down
2 changes: 1 addition & 1 deletion stable_baselines/__init__.py
Expand Up @@ -20,4 +20,4 @@
from stable_baselines.trpo_mpi import TRPO
del mpi4py

__version__ = "2.10.0a0"
__version__ = "2.10.0"

0 comments on commit cfcdb2f

Please sign in to comment.