File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
{{cookiecutter.package_name}}/docs Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ -e .
1
2
linkify-it-py
2
3
myst-parser
3
4
nbsphinx
Original file line number Diff line number Diff line change 9
9
import os
10
10
import sys
11
11
12
- import setuptools_scm
12
+ from importlib . metadata import version as get_version
13
13
14
14
# Used when building API docs, put the dependencies
15
15
# of any class you are documenting here
24
24
copyright = "2022, {{cookiecutter.full_name}}"
25
25
author = "{{cookiecutter.full_name}}"
26
26
try :
27
- release = setuptools_scm .get_version (root = "../.." , relative_to = __file__ )
27
+ full_version = get_version (project )
28
+ # Splitting the release on '+' to remove the commit hash
29
+ release = full_version .split ('+' , 1 )[0 ]
28
30
except LookupError :
29
31
# if git is not initialised, still allow local build
30
32
# with a dummy version
You can’t perform that action at this time.
0 commit comments