-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #84: Improve import and initialization
Altered job, queue, and __init__ modules to delay any initialization that requires queue parsing until absolutely required—so all checks happen just in time, and not at import or initialization. This makes everything a lot faster and more efficient. Also fixes documentation on readthedocs and makes test skipping more robust in a variety of situations.
- Loading branch information
Showing
15 changed files
with
241 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Ipython | ||
.ipynb_checkpoints | ||
|
||
# Vim | ||
.*neomake* | ||
|
||
# Apple's junk | ||
.DS_Store | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# Requirements for building the Fyrd documentation | ||
pytest | ||
sphinx>=1.4.1 | ||
CommonMark>=0.5.6 | ||
Sphinx>=1.7.1 | ||
dill>=0.2.5 | ||
tabulate>=0.7.7 | ||
six>=1.10.0 | ||
tblib>=1.3.0 | ||
sphinxcontrib-napoleon>=0.5.3 | ||
versioneer>=0.18 | ||
# sphinx-argparse>=0.2.0 | ||
psutil>=5.2 | ||
Pyro4>=4.70 | ||
six>=1.11.0 | ||
tqdm>=4.19.0 | ||
tabulate>=0.8.2 | ||
sqlalchemy>=1.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: fyrd-docs | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python=3.6 | ||
- sphinx | ||
- psutil | ||
- Pyro4 | ||
- sqlalchemy | ||
- dill | ||
- tabulate | ||
- pip: | ||
- tqdm |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
import os | ||
""" | ||
Instructions to build Fyrd Sphinx documentation. | ||
""" | ||
import sys | ||
import os | ||
from os import path as pth | ||
from re import match as rematch | ||
|
||
import six | ||
|
||
DIR = pth.abspath(os.curdir) | ||
sys.path.insert(0, pth.dirname(pth.dirname(DIR))) | ||
|
||
import fyrd | ||
|
||
# -- General configuration ------------------------------------------------ | ||
|
||
project = 'Fyrd' | ||
copyright = '2017, Michael Dacre <[email protected]>' | ||
copyright = '2018, Michael Dacre <[email protected]>' | ||
author = 'Michael Dacre <[email protected]>' | ||
version = '0.6' | ||
release = fyrd.version | ||
# release = '0.6.2b1' | ||
version = rematch('\d+\.\d+\.\d+', fyrd.__version__).group() | ||
release = fyrd.__version__ | ||
language = 'en' | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
||
on_rtd = os.environ.get('READTHEDOCS') == 'True' | ||
|
||
if 'latex' in sys.argv: | ||
master_doc = 'simple_index' | ||
else: | ||
|
@@ -27,15 +39,31 @@ | |
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.napoleon', | ||
'sphinx.ext.intersphinx', | ||
'sphinx.ext.doctest', | ||
'sphinx.ext.todo', | ||
'sphinx.ext.coverage', | ||
'sphinx.ext.ifconfig', | ||
'sphinx.ext.viewcode', | ||
] | ||
|
||
napoleon_use_admonition_for_examples = True | ||
|
||
intersphinx_mapping = { | ||
'sphinx': ('http://www.sphinx-doc.org/en/master/', None), | ||
'Pyro4': ('https://pythonhosted.org/Pyro4/', None), | ||
'SQLAlchemy': ('http://docs.sqlalchemy.org/en/latest/', None), | ||
} | ||
if six.PY3: | ||
intersphinx_mapping['python'] = ('https://docs.python.org/3.6/', None) | ||
else: | ||
intersphinx_mapping['python'] = ('https://docs.python.org/2.7/', None) | ||
|
||
|
||
# Autodoc configuration | ||
autodoc_default_flags = ['show_inheritance', 'autosummary'] | ||
autoclass_content = 'both' | ||
autodata_content = 'call' | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
|
@@ -76,12 +104,8 @@ | |
|
||
# -- Options for HTML output ---------------------------------------------- | ||
|
||
on_rtd = os.environ.get('READTHEDOCS') == 'True' | ||
if on_rtd: | ||
html_theme = 'default' | ||
else: | ||
if not on_rtd: | ||
html_theme = 'alabaster' | ||
# html_theme = 'nature' | ||
|
||
# Theme options are theme-specific and customize the look and feel of a theme | ||
# further. For a list of options available for each theme, see the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.