Skip to content

Commit 8dfe232

Browse files
committed
ci: cleanup docs build
1 parent c211c35 commit 8dfe232

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

docs/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
# import sys
2222
# sys.path.insert(0, os.path.abspath('.'))
2323

24-
# Get version number from PyCorrFit._version file
25-
import mock
26-
import os
24+
from unittest import mock
2725
import os.path as op
2826
import sys
2927
# include parent directory
@@ -94,7 +92,7 @@
9492
#
9593
# The full version, including alpha/beta/rc tags.
9694
# This gets 'version'
97-
exec(open(op.join(pdir, "pycorrfit/_version.py")).read())
95+
from pycorfit import __version__ as version
9896
release = version #@UndefinedVariable
9997
# The language for content autogenerated by Sphinx. Refer to documentation
10098
# for a list of supported languages.

docs/requirements.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
mock
2-
sphinx==4.3.0
3-
sphinxcontrib.bibtex>=2.0
4-
sphinx_rtd_theme==1.0
5-
1+
sphinx
2+
sphinxcontrib.bibtex
3+
sphinx_rtd_theme

0 commit comments

Comments
 (0)