Skip to content

Commit 80b37bb

Browse files
author
desert
committed
Update version
1 parent 000faa1 commit 80b37bb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/conf.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44
import os
55

6+
def read(*names, **kwargs):
7+
with open(
8+
os.path.join(os.path.dirname(__file__), *names), encoding=kwargs.get("encoding", "utf8")
9+
) as fh:
10+
return fh.read()
11+
12+
613

714
extensions = [
815
"sphinx.ext.autodoc",
@@ -29,7 +36,11 @@
2936
year = "2019"
3037
author = "Desert contributors"
3138
copyright = "{0}, {1}".format(year, author)
32-
version = release = "2020.01.03"
39+
40+
ns = {}
41+
exec(read('..', "src/desert/_version.py"), ns)
42+
version = release = ns["__version__"]
43+
3344

3445
pygments_style = "trac"
3546
templates_path = ["."]

0 commit comments

Comments
 (0)