Set version in docs automatically from metadata (#1713)

Update sphinx
This commit is contained in:
Lorenz
2024-12-15 15:34:32 -05:00
committed by GitHub
parent 2726421dee
commit e99a15df3c
2 changed files with 5 additions and 6 deletions

View File

@ -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.

View File

@ -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