From e99a15df3cf6a88b69101c405326305b5db8ed94 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 15 Dec 2024 15:34:32 -0500 Subject: [PATCH] Set version in docs automatically from metadata (#1713) Update sphinx --- doc/conf.py | 9 ++++----- environment.yml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index ee7b4e7d..1833aef9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -13,6 +13,7 @@ import sys, os, re import os.path +import importlib # print "working path is %s" % os.getcwd() # sys.path.append("../cadquery") @@ -66,11 +67,9 @@ copyright = "Parametric Products Intellectual Holdings LLC, All Rights Reserved" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. -# -# The short X.Y version. -version = "2.4" -# The full version, including alpha/beta/rc tags. -release = "2.4.0" + +version = importlib.metadata.version("cadquery") +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/environment.yml b/environment.yml index 000fcc77..c5dd099c 100644 --- a/environment.yml +++ b/environment.yml @@ -7,7 +7,7 @@ dependencies: - ocp=7.7.2 - vtk=*=qt* - pyparsing>=2.1.9 - - sphinx=5.0.1 + - sphinx=8.1.3 - sphinx_rtd_theme - mypy - codecov