Skip to content

Commit 7bd24b2

Browse files
committed
doc: Generate version from installed cycler
1 parent b41550f commit 7bd24b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565
# |version| and |release|, also used in various other places throughout the
6666
# built documents.
6767
#
68-
# The short X.Y version.
69-
version = '0.12.0'
7068
# The full version, including alpha/beta/rc tags.
71-
release = '0.12.0.dev0'
69+
from cycler import __version__ as release # noqa
70+
# The short X.Y version.
71+
version = '.'.join(release.split('.')[:2])
7272

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

0 commit comments

Comments
 (0)