Skip to content

Commit cfcdb2f

Browse files
authoredMar 12, 2020
Release 2.10.0 (#737)
* Prepare release v2.10.0 * Remove test upload
1 parent ed4e377 commit cfcdb2f

File tree

10 files changed

+39
-13
lines changed

10 files changed

+39
-13
lines changed
 

‎.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ python:
44

55
env:
66
global:
7-
- DOCKER_IMAGE=stablebaselines/stable-baselines-cpu:v2.9.0
7+
- DOCKER_IMAGE=stablebaselines/stable-baselines-cpu:v2.10.0
88

99
notifications:
1010
email: false
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: "Sphinx Documentation"
4141
script:
42-
- '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"'
42+
- '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"'
4343

4444
- name: "Type Checking"
4545
script:

‎Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,13 @@ ENV VENV /root/venv
2727

2828
COPY ./setup.py ${CODE_DIR}/stable-baselines/setup.py
2929
RUN \
30+
pip install pip --upgrade && \
3031
pip install virtualenv && \
3132
virtualenv $VENV --python=python3 && \
3233
. $VENV/bin/activate && \
3334
pip install --upgrade pip && \
3435
cd ${CODE_DIR}/stable-baselines && \
35-
pip install -e .[mpi,tests] && \
36+
pip install -e .[mpi,tests,docs] && \
3637
rm -rf $HOME/.cache/pip
3738

3839
ENV PATH=$VENV/bin:$PATH

‎Makefile

+22
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,25 @@ spelling:
1717
# Clean the doc build folder
1818
clean:
1919
cd docs && make clean
20+
21+
# Build docker images
22+
# If you do export RELEASE=True, it will also push them
23+
docker: docker-cpu docker-gpu
24+
25+
docker-cpu:
26+
./scripts/build_docker.sh
27+
28+
docker-gpu:
29+
USE_GPU=True ./scripts/build_docker.sh
30+
31+
# PyPi package release
32+
release:
33+
python setup.py sdist
34+
python setup.py bdist_wheel
35+
twine upload dist/*
36+
37+
# Test PyPi package release
38+
test-release:
39+
python setup.py sdist
40+
python setup.py bdist_wheel
41+
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

‎docs/guide/install.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ Build GPU image (with nvidia-docker):
116116

117117
.. code-block:: bash
118118
119-
USE_GPU=True ./scripts/build_docker.sh
119+
make docker-gpu
120120
121121
Build CPU image:
122122

123123
.. code-block:: bash
124124
125-
./scripts/build_docker.sh
125+
make docker-cpu
126126
127127
Note: if you are using a proxy, you need to pass extra params during
128128
build and do some `tweaks`_:

‎docs/misc/changelog.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Changelog
66
For download links, please look at `Github release page <https://github.com/hill-a/stable-baselines/releases>`_.
77

88

9-
Pre-Release 2.10.0a0 (WIP)
10-
--------------------------
9+
Release 2.10.0 (2020-03-11)
10+
---------------------------
11+
12+
**Callback collection, cleanup and bug fixes**
1113

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

7780
Deprecations:
7881
^^^^^^^^^^^^^

‎scripts/build_docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CPU_PARENT=ubuntu:16.04
44
GPU_PARENT=nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
55

66
TAG=stablebaselines/stable-baselines
7-
VERSION=v2.9.0
7+
VERSION=v2.10.0
88

99
if [[ ${USE_GPU} == "True" ]]; then
1010
PARENT=${GPU_PARENT}

‎scripts/run_docker_cpu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ echo "Executing in the docker (cpu image):"
77
echo $cmd_line
88

99
docker run -it --rm --network host --ipc=host \
10-
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines-cpu:v2.9.0 \
10+
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines-cpu:v2.10.0 \
1111
bash -c "cd /root/code/stable-baselines/ && $cmd_line"

‎scripts/run_docker_gpu.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ else
1515
fi
1616

1717
docker run -it ${NVIDIA_ARG} --rm --network host --ipc=host \
18-
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines:v2.9.0 \
18+
--mount src=$(pwd),target=/root/code/stable-baselines,type=bind stablebaselines/stable-baselines:v2.10.0 \
1919
bash -c "cd /root/code/stable-baselines/ && $cmd_line"

‎setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def find_tf_dependency():
117117
'stable_baselines': ['py.typed'],
118118
},
119119
install_requires=[
120-
'gym[atari,classic_control]>=0.10.9',
120+
'gym[atari,classic_control]>=0.11',
121121
'scipy',
122122
'joblib',
123123
'cloudpickle>=0.5.5',
@@ -152,7 +152,7 @@ def find_tf_dependency():
152152
license="MIT",
153153
long_description=long_description,
154154
long_description_content_type='text/markdown',
155-
version="2.10.0a0",
155+
version="2.10.0",
156156
)
157157

158158
# python setup.py sdist

‎stable_baselines/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
from stable_baselines.trpo_mpi import TRPO
2121
del mpi4py
2222

23-
__version__ = "2.10.0a0"
23+
__version__ = "2.10.0"

0 commit comments

Comments
 (0)
Please sign in to comment.