Skip to content

Commit

Permalink
Updated docs/source/conf.py and MANIFEST.in to reflect restructure
Browse files Browse the repository at this point in the history
Tweaked docs/requirements.txt to address build failures
Tweaked .circleci/config.yml to address coverage-osx failures
  • Loading branch information
boothby committed Nov 4, 2019
1 parent f58d49f commit 9bec1af
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 19 deletions.
29 changes: 27 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:

coverage-osx:
macos:
xcode: "9.0"
xcode: "11.2.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
PYTHON: 3.8.0
working_directory: ~/repo
steps:
- checkout
Expand All @@ -62,13 +65,35 @@ jobs:
environment:
C_COMPILER: clang
CXX_COMPILER: clang++
- run:
name: install pyenv
command: |
brew install pyenv
- restore_cache:
keys:
- pyenv-{{ .Environment.CIRCLE_JOB }}
- run:
name: install python
command: |
pyenv install $PYTHON -s
- save_cache:
paths:
- ~/.pyenv
key: pyenv-{{ .Environment.CIRCLE_JOB }}
- run:
name: create virtualenv
command: |
eval "$(pyenv init -)"
pyenv local $PYTHON
python -m pip install virtualenv
python -m virtualenv env
- run:
name: coveralls
command: |
if [[ -n $COVERALLS_REPO_TOKEN ]];
then python -m virtualenv env;
. env/bin/activate;
pip install cpp-coveralls;
python -m pip install cpp-coveralls;
find build \( -name '*.gcno' -or -name '*.gcda' \) -exec mv {} . \;
coveralls --exclude tests -E '.*gtest.*' --gcov-options '\-lp';
fi;
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
global-include *.hpp
include package_info.py
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
breathe<4.13.0
sphinx-rtd-theme==0.*
sphinx==1.*
cython==0.27
cython>=0.28.5
33 changes: 18 additions & 15 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@
# sys.path.insert(0, os.path.abspath('.'))
config_directory = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.abspath(
os.path.join(config_directory, '../../python')))
os.path.join(config_directory, '../../minorminer')))

_PY2 = sys.version_info.major == 2

# Add __version__, __author__, __authoremail__, __description__ to this namespace
path_to_package_info = os.path.join('..', '..', 'package_info.py')
path_to_package_info = os.path.join(
'..', '..', 'minorminer', 'package_info.py')
if _PY2:
execfile(path_to_package_info)
else:
Expand Down Expand Up @@ -135,23 +136,25 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']


def setup(app):
app.add_stylesheet('cookie_notice.css')
app.add_javascript('cookie_notice.js')
app.add_stylesheet('cookie_notice.css')
app.add_javascript('cookie_notice.js')


# Configuration for intersphinx.
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
'dimod': ('https://docs.ocean.dwavesys.com/projects/dimod/en/latest/', None),
'binarycsp': ('https://docs.ocean.dwavesys.com/projects/binarycsp/en/latest/', None),
'cloud-client': ('https://docs.ocean.dwavesys.com/projects/cloud-client/en/latest/', None),
'neal': ('https://docs.ocean.dwavesys.com/projects/neal/en/latest/', None),
'networkx': ('https://docs.ocean.dwavesys.com/projects/dwave-networkx/en/latest/', None),
'system': ('https://docs.ocean.dwavesys.com/projects/system/en/latest/', None),
'penaltymodel': ('https://docs.ocean.dwavesys.com/projects/penaltymodel/en/latest/', None),
'minorminer': ('https://docs.ocean.dwavesys.com/projects/minorminer/en/latest/', None),
'qbsolv': ('https://docs.ocean.dwavesys.com/projects/qbsolv/en/latest/', None),
'oceandocs': ('https://docs.ocean.dwavesys.com/en/latest/', None),
'sysdocs_gettingstarted': ('https://docs.dwavesys.com/docs/latest/', None)}
'dimod': ('https://docs.ocean.dwavesys.com/projects/dimod/en/latest/', None),
'binarycsp': ('https://docs.ocean.dwavesys.com/projects/binarycsp/en/latest/', None),
'cloud-client': ('https://docs.ocean.dwavesys.com/projects/cloud-client/en/latest/', None),
'neal': ('https://docs.ocean.dwavesys.com/projects/neal/en/latest/', None),
'networkx': ('https://docs.ocean.dwavesys.com/projects/dwave-networkx/en/latest/', None),
'system': ('https://docs.ocean.dwavesys.com/projects/system/en/latest/', None),
'penaltymodel': ('https://docs.ocean.dwavesys.com/projects/penaltymodel/en/latest/', None),
'minorminer': ('https://docs.ocean.dwavesys.com/projects/minorminer/en/latest/', None),
'qbsolv': ('https://docs.ocean.dwavesys.com/projects/qbsolv/en/latest/', None),
'oceandocs': ('https://docs.ocean.dwavesys.com/en/latest/', None),
'sysdocs_gettingstarted': ('https://docs.dwavesys.com/docs/latest/', None)}
# -- Options for HTMLHelp output ------------------------------------------

# Output file base name for HTML help builder.
Expand Down

0 comments on commit 9bec1af

Please sign in to comment.