Skip to content

Commit

Permalink
Merge pull request #113 from sagarsadhu/dev-mc-111
Browse files Browse the repository at this point in the history
Issue#111 Fixed version issue in documentation build
  • Loading branch information
ziatdinovmax committed Apr 3, 2024
2 parents 56d5395 + 4711484 commit 5209d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/requirements_rtd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ typing-extensions>=4.4.0
jax>=0.4.8
numpyro>=0.11.0
dm-haiku>=0.0.5
dunamai==1.19.2
6 changes: 2 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import os
import sys
sys.path.insert(0, os.path.abspath('../../'))
from gpax._version import __version__

#autodoc_mock_imports = ['jax', 'jax.numpy', 'jax.random', 'numpyro', 'jaxlib',
# 'numpyro.distributions', 'numpyro.infer', 'haiku', 'numpy']
Expand All @@ -24,10 +25,7 @@
author = 'GPax authors'

# The full version, including alpha/beta/rc tags
module_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(module_dir, '../../gpax/__version__.py')) as f:
release = f.read().split("'")[1]

release = __version__

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit 5209d3c

Please sign in to comment.