mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-09-17 22:30:59 +00:00
Use conda env for building the doc (#16)
This commit is contained in:
parent
b1794ebc52
commit
299c28140e
5 changed files with 25 additions and 12 deletions
|
|
@ -15,8 +15,12 @@ sphinx:
|
||||||
# Optionally build your docs in additional formats such as PDF and ePub
|
# Optionally build your docs in additional formats such as PDF and ePub
|
||||||
formats: all
|
formats: all
|
||||||
|
|
||||||
|
# Set requirements using conda env
|
||||||
|
conda:
|
||||||
|
environment: docs/conda_env.yml
|
||||||
|
|
||||||
# Optionally set the version of Python and requirements required to build your docs
|
# Optionally set the version of Python and requirements required to build your docs
|
||||||
python:
|
# python:
|
||||||
version: 3.7
|
# version: 3.7
|
||||||
install:
|
# install:
|
||||||
- requirements: docs/requirements.txt
|
# - requirements: docs/requirements.txt
|
||||||
|
|
|
||||||
16
docs/conda_env.yml
Normal file
16
docs/conda_env.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
name: root
|
||||||
|
channels:
|
||||||
|
- pytorch
|
||||||
|
- defaults
|
||||||
|
dependencies:
|
||||||
|
- cpuonly=1.0=0
|
||||||
|
- pip=20.0
|
||||||
|
- python=3.6
|
||||||
|
- pytorch=1.5.0=py3.6_cpu_0
|
||||||
|
- pip:
|
||||||
|
- gym==0.17.2
|
||||||
|
- cloudpickle
|
||||||
|
- opencv-python-headless
|
||||||
|
- pandas
|
||||||
|
- numpy
|
||||||
|
- matplotlib
|
||||||
|
|
@ -216,7 +216,3 @@ texinfo_documents = [
|
||||||
# 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
|
# 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
|
||||||
# 'torch': ('http://pytorch.org/docs/master/', None),
|
# 'torch': ('http://pytorch.org/docs/master/', None),
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# kornia's hack to get rtd builder to install latest pytorch
|
|
||||||
if on_rtd:
|
|
||||||
os.system('pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html')
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
gym>=0.17
|
|
||||||
pandas
|
|
||||||
matplotlib
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -104,7 +104,7 @@ setup(name='stable_baselines3',
|
||||||
# For render
|
# For render
|
||||||
'opencv-python',
|
'opencv-python',
|
||||||
# For atari games,
|
# For atari games,
|
||||||
'atari_py~=0.2.0', 'Pillow'
|
'atari_py~=0.2.0', 'pillow'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
description='Pytorch version of Stable Baselines, implementations of reinforcement learning algorithms.',
|
description='Pytorch version of Stable Baselines, implementations of reinforcement learning algorithms.',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue