Skip to content

Commit

Permalink
Use conda env for building the doc (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed May 11, 2020
1 parent b1794eb commit 299c281
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
12 changes: 8 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ sphinx:
# Optionally build your docs in additional formats such as PDF and ePub
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
python:
version: 3.7
install:
- requirements: docs/requirements.txt
# python:
# version: 3.7
# install:
# - requirements: docs/requirements.txt
16 changes: 16 additions & 0 deletions docs/conda_env.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 0 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,3 @@ def setup(app):
# 'numpy': ('http://docs.scipy.org/doc/numpy/', 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')
3 changes: 0 additions & 3 deletions docs/requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
# For render
'opencv-python',
# 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.',
Expand Down

0 comments on commit 299c281

Please sign in to comment.