Skip to content

Commit 766e810

Browse files
committed
Use dynamic version in doc
1 parent e3b3652 commit 766e810

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
sys.path.insert(0, os.path.abspath(".."))
2020

21-
import pyDOE3
21+
from pyDOE3 import __version__
2222

2323
# If extensions (or modules to document with autodoc) are in another directory,
2424
# add these directories to sys.path here. If the directory is relative to the
@@ -57,7 +57,7 @@
5757
# The short X.Y version.
5858
version = "1"
5959
# The full version, including alpha/beta/rc tags.
60-
release = pyDOE3.__version__
60+
release = __version__
6161

6262
# The language for content autogenerated by Sphinx. Refer to documentation
6363
# for a list of supported languages.

pyDOE3/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@
5252
"var_regression_matrix",
5353
"gsd",
5454
]
55+
56+
from ._version import __version__ # noqa

0 commit comments

Comments
 (0)