Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set version in docs automatically from metadata #1713

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import sys, os, re
import os.path
import importlib

# print "working path is %s" % os.getcwd()
# sys.path.append("../cadquery")
Expand Down Expand Up @@ -66,11 +67,9 @@
# 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.
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down