Skip to content

Commit

Permalink
docs: add setuptools_scm
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
James R. Barlow committed Jun 9, 2018
1 parent 03a5f24 commit 1de7412
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
if on_rtd:
# Borrowed from https://github.com/YannickJadoul/Parselmouth/blob/master/docs/conf.py
rtd_version = os.environ.get('READTHEDOCS_VERSION')
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'setuptools_scm'])
setup_py_version = subprocess.check_output([sys.executable, os.path.abspath(os.path.join('..', 'setup.py')), '--version']).decode('ascii').strip()

if rtd_version == 'stable':
Expand Down

0 comments on commit 1de7412

Please sign in to comment.