Skip to content

Commit

Permalink
Merge pull request #13 from prjemian/rtd12
Browse files Browse the repository at this point in the history
fixes #12
  • Loading branch information
prjemian authored Apr 1, 2017
2 parents bcda69d + 475c995 commit b858e68
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 33 deletions.
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
conda:
file: environment.yml
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Watches an EPICS PV and sends email when value changes from 0 to 1.

:author: Pete R. Jemian
:email: [email protected]
:copyright: 2009-2015, UChicago Argonne, LLC
:copyright: 2009-2017, UChicago Argonne, LLC
:license: ANL OPEN SOURCE LICENSE (see *LICENSE*)
:docs: http://PvMail.readthedocs.io
:git: https://github.com/prjemian/pvMail
Expand Down
30 changes: 0 additions & 30 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,6 @@
sys.path.insert(0, os.path.abspath(os.path.join('..', '..', 'src')))
import PvMail

### -- ReadTheDocs configuration -----------------------------------------------------
# https://docs.readthedocs.org/en/latest/faq.html#my-project-isn-t-building-with-autodoc

class Mock(object):

__all__ = []

def __init__(self, *args, **kwargs):
pass

def __call__(self, *args, **kwargs):
return Mock()

@classmethod
def __getattr__(cls, name):
if name in ('__file__', '__path__'):
return '/dev/null'
elif name[0] == name[0].upper():
mockType = type(name, (), {})
mockType.__module__ = __name__
return mockType
else:
return Mock()

MOCK_MODULES = PvMail.__install_requires__
MOCK_MODULES.append('epics')

for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()


# -- General configuration -----------------------------------------------------

Expand Down
13 changes: 13 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: PvMail
dependencies:
- h5py
- numpy
- python=2.7.*
- pyqt=4.*
- requests
- sip
- sphinx
- pip:
- versioneer
- PyEpics
- sphinx_rtd_theme
2 changes: 1 addition & 1 deletion src/PvMail/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2009-2014, UChicago Argonne, LLC
Copyright (c) 2009-2017, UChicago Argonne, LLC

All Rights Reserved

Expand Down
2 changes: 1 addition & 1 deletion src/PvMail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def read_resource_file(fname):
__institution__ = "Advanced Photon Source, Argonne National Laboratory"
__author_email__= "[email protected]"
__url__ = "http://PvMail.readthedocs.org"
__license__ = "(c) 2009-2014, UChicago Argonne, LLC"
__license__ = "(c) 2009-2017, UChicago Argonne, LLC"
__license__ += " (see LICENSE file for details)"

# create & install console_scripts in <python>/bin
Expand Down

0 comments on commit b858e68

Please sign in to comment.