Skip to content

Commit

Permalink
Try conda
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Nicholls committed Apr 16, 2019
1 parent 393ff4e commit 05a2864
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Read the Docs configuration file, see
# https://docs.readthedocs.io/en/stable/config-file/v2.html for details.
version: 2
sphinx:
configuration: docs/conf.py
conda:
file: docs/conda_env.py
7 changes: 7 additions & 0 deletions docs/conda_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: atip
dependencies:
- python=2.7
- pip:
- "-e git+https://github.com/dls-controls/pytac.git"
- "-e git+https://github.com/atcollab/at.git"
- "-r requirements.txt"
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class DataSource(object):
try:
pytac.data_source
except AttributeError:
print("Partially mocking pytac")
pytac.exceptions.FieldException = Exception
pytac.exceptions.HandleException = Exception
pytac.__dict__['data_source'] = types.ModuleType('data_source')
Expand All @@ -40,6 +41,7 @@ def __getattr__(cls, name):
try:
import at
except ImportError:
print("Fully mocking at")
sys.modules.update({'at': Mock()})

# -- Project information -----------------------------------------------------
Expand Down

0 comments on commit 05a2864

Please sign in to comment.