Skip to content

Commit

Permalink
updating docs requirements for Sphinx 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Sep 17, 2018
1 parent 9d3f786 commit b31a567
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docs/requirements.txt
@@ -1,6 +1,6 @@
robpol86_sphinxcontrib_googleanalytics
sphinx >= 1.7
git+https://github.com/KarrLab/sphinxcontrib-googleanalytics.git#egg=sphinxcontrib_googleanalytics-0.1.1 >= 0.1.1
sphinx >= 1.8
sphinx_rtd_theme
sphinxcontrib_addmetahtml
git+https://github.com/KarrLab/sphinxcontrib-addmetahtml.git#egg=sphinxcontrib_addmetahtml-0.1.1 >= 0.1.1
sphinxcontrib_bibtex
sphinxcontrib_spelling
6 changes: 3 additions & 3 deletions karr_lab_build_utils/templates/docs/requirements.txt
@@ -1,6 +1,6 @@
robpol86_sphinxcontrib_googleanalytics
sphinx >= 1.7
git+https://github.com/KarrLab/sphinxcontrib-googleanalytics.git#egg=sphinxcontrib_googleanalytics-0.1.1 >= 0.1.1
sphinx >= 1.8
sphinx_rtd_theme
sphinxcontrib_addmetahtml
git+https://github.com/KarrLab/sphinxcontrib-addmetahtml.git#egg=sphinxcontrib_addmetahtml-0.1.1 >= 0.1.1
sphinxcontrib_bibtex
sphinxcontrib_spelling
6 changes: 3 additions & 3 deletions requirements.txt
Expand Up @@ -24,12 +24,12 @@ pytest
python_dateutil
pyyaml
requests
robpol86_sphinxcontrib_googleanalytics
git+https://github.com/KarrLab/sphinxcontrib-googleanalytics#egg=sphinxcontrib_googleanalytics-0.1.1 >= 0.1.1
setuptools >= 40.0.0
six
sphinx >= 1.7
sphinx >= 1.8
sphinx_rtd_theme
sphinxcontrib_addmetahtml
git+https://github.com/KarrLab/sphinxcontrib-addmetahtml.git#egg=sphinxcontrib_addmetahtml-0.1.1 >= 0.1.1
sphinxcontrib_bibtex
sphinxcontrib_spelling
twine
Expand Down
10 changes: 5 additions & 5 deletions tests/test_core.py
Expand Up @@ -1555,7 +1555,7 @@ def test_make_and_archive_reports_with_missing_req(self):
pass
try:
with self.assertRaisesRegexp(core.BuildHelperError, 'The following requirements are missing:\n '):
warning = 'The following requirements appear to be unused:\n robpol86_sphinxcontrib_googleanalytics'
warning = 'The following requirements appear to be unused:\n sphinxcontrib_googleanalytics'
with pytest.warns(UserWarning, match=warning):
build_helper.make_and_archive_reports(coverage_dirname=self.tmp_dirname, dry_run=True)
finally:
Expand Down Expand Up @@ -1809,7 +1809,7 @@ def test_make_documentation_error(self):
if os.path.isdir(build_helper.proj_docs_static_dir):
shutil.rmtree(build_helper.proj_docs_static_dir)

with self.assertRaisesRegexp(Exception, 'Test exception'):
with self.assertRaises(SystemExit):
with mock.patch.object(Sphinx, '__init__', side_effect=Exception('Test exception')):
build_helper.make_documentation()

Expand Down Expand Up @@ -2374,11 +2374,11 @@ def test_find_unused_requirements(self):
unused = build_helper.find_unused_requirements('karr_lab_build_utils', ignore_files=['karr_lab_build_utils/templates/*'])
unused.sort()

expected_unused = [
'robpol86_sphinxcontrib_googleanalytics',
expected_unused = [
'sphinx_rtd_theme',
'sphinxcontrib_addmetahtml',
'sphinxcontrib_bibtex',
'sphinxcontrib_googleanalytics',
'sphinxcontrib_spelling',
'wheel',
]
Expand All @@ -2396,7 +2396,7 @@ def test_find_unused_requirements(self):
self.assertRegexpMatches(captured.stdout.get_text(),
'The following requirements from requirements.txt may not be necessary:')
self.assertRegexpMatches(captured.stdout.get_text(),
'robpol86_sphinxcontrib_googleanalytics')
'sphinxcontrib_googleanalytics')
self.assertEqual(captured.stderr.get_text(), '')

os.rename('requirements.txt', 'requirements.txt.save')
Expand Down

0 comments on commit b31a567

Please sign in to comment.