Skip to content

Commit df25d8b

Browse files
committed
Making docs gen require python >= 3.10
Signed-off-by: M Q <[email protected]>
1 parent db6bddf commit df25d8b

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.9"
11+
python: "3.10"
1212
# You can also specify other tool versions:
1313
# nodejs: "20"
1414
# rust: "1.70"

CONTRIBUTING.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ MONAI Deploy App SDK's code coverage report is available at [CodeCov](https://co
137137

138138
#### Building the documentation
139139

140-
:::{note}
141-
Please note that the documentation builds successfully in Python 3.9 environment, but fails with Python 3.10.
142-
:::
143-
144140
MONAI's documentation is located at `docs/`.
145141

146142
```bash

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Sphinx>=4.5.0
22
sphinx-autobuild
3-
myst-nb>=0.17.2 # this version is fine in python 3.9 and avoids pulling in multiple nbformat packages
3+
myst-nb>=0.17.2
44
myst-parser>=0.18.0
55
lxml_html_clean # needed by myst-nb
66
linkify-it-py>=1.0.1 # https://myst-parser.readthedocs.io/en/latest/syntax/optional.html?highlight=linkify#linkify

run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,10 @@ install_python_dev_deps() {
344344
# Copy the cuda runtime library to the fixed location (workaround for readthedocs) so that
345345
# we can leverage the existing LD_LIBRARY_PATH (configured by the readthedocs UI) to locate the cuda runtime library.
346346
# (LD_LIBRARY_PATH is set to /home/docs/ for that purpose)
347-
# Note that 'python3.9' is hard-coded here, it should be updated if the Python version changes by
347+
# Note that 'python3.10' is hard-coded here, it should be updated if the Python version changes by
348348
# .readthedocs.yml or other configurations.
349-
run_command ls -al /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.9/site-packages/nvidia/cuda_runtime/lib/
350-
run_command cp /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.9/site-packages/nvidia/cuda_runtime/lib/*.so* /home/docs/
349+
run_command ls -al /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.10/site-packages/nvidia/cuda_runtime/lib/
350+
run_command cp /home/docs/checkouts/readthedocs.org/user_builds/${READTHEDOCS_PROJECT}/envs/${READTHEDOCS_VERSION}/lib/python3.10/site-packages/nvidia/cuda_runtime/lib/*.so* /home/docs/
351351
run_command ls -al /home/docs/
352352
fi
353353
}

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ project_urls =
1616
Source Code=https://github.com/Project-MONAI/monai-deploy-app-sdk
1717

1818
[options]
19-
python_requires = >=3.9, <3.14
19+
python_requires = >=3.10, <3.14
2020
# for compiling and develop setup only
2121
# no need to specify the versions so that we could
2222
# compile for multiple targeted versions.

0 commit comments

Comments
 (0)