mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-27 19:57:02 +00:00
use versioneer for setting python package version
https://github.com/warner/python-versioneer 😋 🍪
This commit is contained in:
+4
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user