diff --git a/doc/api/conf.py b/doc/api/conf.py index 55260cb..06c4b2b 100644 --- a/doc/api/conf.py +++ b/doc/api/conf.py @@ -6,7 +6,7 @@ import os # General information about the project. -project = 'pybricks-micropython' +project = 'pybricks' copyright = '2018-2020 The Pybricks Authors' author = '' diff --git a/doc/common/conf.py b/doc/common/conf.py index 8bbfaa3..f42abff 100644 --- a/doc/common/conf.py +++ b/doc/common/conf.py @@ -20,6 +20,7 @@ # flake8: noqa import os +import re import sys from docutils import nodes @@ -75,10 +76,10 @@ master_doc = 'index' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = _pyproject["tool"]["poetry"]["version"] # The full version, including alpha/beta/rc tags. -release = version +release = "v" + _pyproject["tool"]["poetry"]["version"] +# The short X.Y version. +version = re.match(r'(v\d+\.\d+)', release)[0] # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/pyproject.toml b/pyproject.toml index 4bc11c1..c084db0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pybricks" -version = "2.0.0" +version = "3.0.0a3" description = "Documentation and user-API stubs for Pybricks MicroPython" authors = ["The Pybricks Authors "] maintainers = ["Laurens Valk ", "David Lechner " ]