use versioneer for setting python package version

https://github.com/warner/python-versioneer

😋 🍪
This commit is contained in:
David Lechner
2019-01-15 20:58:43 -06:00
parent 2f0d7ec0a2
commit a15f3bc99a
+4 -2
View File
@@ -21,6 +21,8 @@ import os
import sys
sys.path.insert(0, os.path.abspath('../../lib/fake-pybricks/pybricks'))
import _version
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
@@ -62,9 +64,9 @@ author = 'Laurens Valk, David Lechner'
# built documents.
#
# The short X.Y version.
version = '1.0.0'
version = _version.get_versions()['version']
# The full version, including alpha/beta/rc tags.
release = '1.0.0'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.