mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-11-17 08:56:08 +00:00
Add Python3.9 CI + upgrade min PyTorch version (#503)
* Add Python3.9 CI + upgrade min PyTorch version * Upgrade min PyTorch version
This commit is contained in:
parent
5af35fa2cc
commit
2fa06ae8d2
6 changed files with 31 additions and 7 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8]
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
@ -28,7 +28,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
# cpu version of pytorch
|
# cpu version of pytorch
|
||||||
pip install torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
pip install torch==1.8.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
|
||||||
pip install .[extra,tests,docs]
|
pip install .[extra,tests,docs]
|
||||||
# Use headless version
|
# Use headless version
|
||||||
pip install opencv-python-headless
|
pip install opencv-python-headless
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ Documentation is available online: [https://sb3-contrib.readthedocs.io/](https:/
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
**Note:** Stable-Baselines3 supports PyTorch 1.4+.
|
**Note:** Stable-Baselines3 supports PyTorch >= 1.8.1.
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
Stable Baselines3 requires python 3.6+.
|
Stable Baselines3 requires python 3.6+.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Installation
|
||||||
Prerequisites
|
Prerequisites
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
Stable-Baselines3 requires python 3.6+.
|
Stable-Baselines3 requires python 3.6+ and PyTorch >= 1.8.1.
|
||||||
|
|
||||||
Windows 10
|
Windows 10
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,30 @@ Changelog
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
|
||||||
|
Release 1.2.0a0 (WIP)
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
Breaking Changes:
|
||||||
|
^^^^^^^^^^^^^^^^^
|
||||||
|
- SB3 now requires PyTorch >= 1.8.1
|
||||||
|
|
||||||
|
New Features:
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Bug Fixes:
|
||||||
|
^^^^^^^^^^
|
||||||
|
|
||||||
|
Deprecations:
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Others:
|
||||||
|
^^^^^^^
|
||||||
|
- Enabled Python 3.9 in GitHub CI
|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|
||||||
Release 1.1.0 (2021-07-01)
|
Release 1.1.0 (2021-07-01)
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -75,7 +75,7 @@ setup(
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"gym>=0.17",
|
"gym>=0.17",
|
||||||
"numpy",
|
"numpy",
|
||||||
"torch>=1.4.0",
|
"torch>=1.8.1",
|
||||||
# For saving models
|
# For saving models
|
||||||
"cloudpickle",
|
"cloudpickle",
|
||||||
# For reading logs
|
# For reading logs
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
1.1.0
|
1.2.0a0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue