Version in pyproject.toml is now single source of truth

This commit is contained in:
2024-02-10 10:13:17 +01:00
parent 5aec4f835f
commit 259b13baa1
2 changed files with 13 additions and 4 deletions
+7 -3
View File
@@ -1,13 +1,17 @@
# This conf.py is in large parts inspired by the oen used by stable-baselines 3
import toml
import datetime
project = 'Fancy Gym'
author = 'Fabian Otto, Onur Celik, Dominik Roth, Hongyi Zhou'
copyright = f'2020-{datetime.date.today().year}, {author}'
release = '0.2' # The full version, including alpha/beta/rc tags
version = '0.2' # The short X.Y version
pyproject_content = toml.load("../../pyproject.toml")
proj_version = pyproject_content["project"]["version"]
release = proj_version # The full version, including alpha/beta/rc tags
version = proj_version # The short X.Y version
extensions = [
'myst_parser',
@@ -50,4 +54,4 @@ html_context = {
}
def setup(app):
app.add_css_file("style.css")
app.add_css_file("style.css")