Skip to content

Commit 950fdf8

Browse files
committed
Set version in docs from version in code
1 parent fcaec44 commit 950fdf8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# import sys
1515
# sys.path.insert(0, os.path.abspath('.'))
1616

17+
import undate
1718

1819
# -- Project information -----------------------------------------------------
1920

@@ -22,7 +23,7 @@
2223
author = "DHtech Community"
2324

2425
# The full version, including alpha/beta/rc tags
25-
release = "0.0.1.dev"
26+
release = undate.__version__
2627

2728
master_doc = "index"
2829

src/undate/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
__version__ = "0.3.0"
1+
__version__ = "0.3.1"
22

33
from undate.date import DatePrecision
44
from undate.undate import Undate, UndateInterval
55

6-
__all__ = ["Undate", "UndateInterval", "DatePrecision"]
6+
__all__ = ["Undate", "UndateInterval", "DatePrecision", "__version__"]

0 commit comments

Comments
 (0)