Skip to content

Commit 786b302

Browse files
committed
Use a variable for the minimum Python version in the docs
1 parent 6d2872e commit 786b302

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,16 @@
4747
# The name of the syntax highlighting style to use.
4848
pygments_style = 'sphinx'
4949

50+
python_minumum_supported_version = '3.9'
51+
5052
# Output file base name for HTML help builder.
5153
htmlhelp_basename = 'VWSPYTHONMOCKdoc'
5254
autoclass_content = 'init'
5355
intersphinx_mapping = {
54-
'python': ('https://docs.python.org/3.9', None),
56+
'python': (
57+
f'https://docs.python.org/{python_minumum_supported_version}',
58+
None,
59+
),
5560
'docker': ('https://docker-py.readthedocs.io/en/stable', None),
5661
}
5762
nitpicky = True
@@ -85,6 +90,7 @@
8590
autodoc_member_order = 'bysource'
8691

8792
rst_prolog = f"""
93+
.. |python-minumum-version| replace:: {python_minumum_supported_version}
8894
.. |project| replace:: {project}
8995
.. |release| replace:: {release}
9096
.. |github-owner| replace:: VWS-Python

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Mocking calls made to Vuforia with Python ``requests``
88

99
pip3 install vws-python-mock
1010

11-
This requires Python 3.9+.
11+
This requires Python |python-minumum-version|\+.
1212

1313
.. include:: basic-example.rst
1414

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Installation
55

66
pip3 install vws-python-mock
77

8-
This requires Python 3.9+.
8+
This requires Python |python-minumum-version|\+.

docs/source/release-process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Outcomes
1010
Prerequisites
1111
~~~~~~~~~~~~~
1212

13-
* ``python3`` on your ``PATH`` set to Python 3.9+.
13+
* ``python3`` on your ``PATH`` set to Python |python-minumum-version|\+.
1414
* ``virtualenv``.
1515
* Push access to this repository.
1616
* Trust that ``master`` is ready and high enough quality for release.

0 commit comments

Comments
 (0)