Loading doc/source/conf.py +17 −2 Original line number Diff line number Diff line Loading @@ -24,8 +24,23 @@ project = "CSO" copyright = "2020-2025, Arjo Segers" author = "Arjo Segers" # The full version, including alpha/beta/rc tags release = "v2.12" # extract the version id from the project file: ppfile = os.path.join(os.pardir, os.pardir, "pyproject.toml") # check .. if not os.path.isfile(ppfile): # info ... print(f"WARNING - could not find '{ppfile}' to extract release tag ...") # dummy: release = "vx.y" else: # modules: import toml # open file: with open(ppfile, "r") as f: config = toml.load(f) # extrract: release = config["project"]["version"] #endif # -- General configuration --------------------------------------------------- Loading Loading
doc/source/conf.py +17 −2 Original line number Diff line number Diff line Loading @@ -24,8 +24,23 @@ project = "CSO" copyright = "2020-2025, Arjo Segers" author = "Arjo Segers" # The full version, including alpha/beta/rc tags release = "v2.12" # extract the version id from the project file: ppfile = os.path.join(os.pardir, os.pardir, "pyproject.toml") # check .. if not os.path.isfile(ppfile): # info ... print(f"WARNING - could not find '{ppfile}' to extract release tag ...") # dummy: release = "vx.y" else: # modules: import toml # open file: with open(ppfile, "r") as f: config = toml.load(f) # extrract: release = config["project"]["version"] #endif # -- General configuration --------------------------------------------------- Loading