mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
conf.py -> get build123d version from setuptools_scm for RTD
This commit is contained in:
parent
659ce3a0f4
commit
cb64016237
1 changed files with 3 additions and 5 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#
|
||||
import os
|
||||
import sys
|
||||
import build123d
|
||||
|
||||
build123d_path = os.path.dirname(os.path.abspath(os.getcwd()))
|
||||
source_files_path = os.path.join(build123d_path, "src", "build123d")
|
||||
|
|
@ -27,11 +28,8 @@ copyright = "2022, Gumyr"
|
|||
author = "Gumyr"
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
with open(os.path.join(build123d_path, "pyproject.toml")) as f:
|
||||
pyproject_toml = f.readlines()
|
||||
for line in pyproject_toml:
|
||||
if "version =" in line:
|
||||
release = line.split("=")[1].strip()
|
||||
# version = build123d.__version__
|
||||
release = build123d.__version__
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue