Skip to content

Commit

Permalink
conf.py -> get build123d version from setuptools_scm for RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Feb 28, 2024
1 parent 659ce3a commit cb64016
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -27,11 +28,8 @@
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 ---------------------------------------------------
Expand Down

0 comments on commit cb64016

Please sign in to comment.