File tree Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -28,4 +28,7 @@ formats: all
28
28
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
29
29
python :
30
30
install :
31
- - requirements : docs/requirements.txt
31
+ - method : pip
32
+ path : .
33
+ extra_requirements :
34
+ - docs
Original file line number Diff line number Diff line change 19
19
"""
20
20
21
21
import sys
22
+ from importlib .metadata import version as get_version
22
23
from os .path import abspath , dirname
23
24
24
25
# Make sure we get the version of this copy of cmd2
27
28
# Import for custom theme from Read the Docs
28
29
import sphinx_rtd_theme
29
30
30
- import cmd2
31
-
32
31
# -- General configuration -----------------------------------------------------
33
32
34
33
# If your documentation needs a minimal Sphinx version, state it here.
66
65
# |version| and |release|, also used in various other places throughout the
67
66
# built documents.
68
67
#
69
- # version will look like x.y.z
70
- version = cmd2 . __version__
71
- # release will look like x.y
72
- release = '.' .join (version .split ('.' )[:2 ])
68
+ # release will look like x.y.z
69
+ release : str = get_version ( " cmd2" )
70
+ # for example take major/minor
71
+ version : str = "." .join (release .split ('.' )[:2 ])
73
72
74
73
# The language for content autogenerated by Sphinx. Refer to documentation
75
74
# for a list of supported languages.
Original file line number Diff line number Diff line change 1
1
2
2
pyperclip
3
3
setuptools
4
- setuptools-scm < 8
4
+ setuptools-scm
5
5
Sphinx
6
6
sphinx-autobuild
7
7
sphinx-rtd-theme
Original file line number Diff line number Diff line change 77
77
'ruff' ,
78
78
'twine' ,
79
79
],
80
+ 'docs' : [
81
+ 'setuptools' ,
82
+ 'setuptools_scm' ,
83
+ 'sphinx' ,
84
+ 'sphinx-rtd-theme' ,
85
+ 'sphinx-autobuild' ,
86
+ ],
80
87
'validate' : [
81
88
'mypy' ,
82
89
'ruff' ,
You can’t perform that action at this time.
0 commit comments