Skip to content

Commit e99a15d

Browse files
authored
Set version in docs automatically from metadata (#1713)
Update sphinx
1 parent 2726421 commit e99a15d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

doc/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import sys, os, re
1515
import os.path
16+
import importlib
1617

1718
# print "working path is %s" % os.getcwd()
1819
# sys.path.append("../cadquery")
@@ -66,11 +67,9 @@
6667
# The version info for the project you're documenting, acts as replacement for
6768
# |version| and |release|, also used in various other places throughout the
6869
# built documents.
69-
#
70-
# The short X.Y version.
71-
version = "2.4"
72-
# The full version, including alpha/beta/rc tags.
73-
release = "2.4.0"
70+
71+
version = importlib.metadata.version("cadquery")
72+
release = version
7473

7574
# The language for content autogenerated by Sphinx. Refer to documentation
7675
# for a list of supported languages.

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- ocp=7.7.2
88
- vtk=*=qt*
99
- pyparsing>=2.1.9
10-
- sphinx=5.0.1
10+
- sphinx=8.1.3
1111
- sphinx_rtd_theme
1212
- mypy
1313
- codecov

0 commit comments

Comments
 (0)