Use conda env for building the doc (#16)

This commit is contained in:
Antonin RAFFIN 2020-05-11 17:39:41 +02:00 committed by GitHub
parent b1794ebc52
commit 299c28140e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 12 deletions

View file

@ -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
View 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

View file

@ -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')

View file

@ -1,3 +0,0 @@
gym>=0.17
pandas
matplotlib

View file

@ -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.',