Skip to content

Commit 6cdedb9

Browse files
authored
Upgrade docs build to use python v3.10 (#2083)
## Upgrade docs build to use python v3.10 * Fixed build dependencies so docs build now works with python v3.10 * Minimum requirement for Olive is now python v3.10 * Delete unused pipelines (replaced by OneBranch pipelines) Known Issue - Olive still uses pydantic v1.x which is soon to be sunset. Docs build is dependent on sphinx which has deprecated support for pydantic v1.x. ## Checklist before requesting a review - [ ] Add unit tests for this change. - [ ] Make sure all tests can pass. - [ ] Update documents if necessary. - [ ] Lint and apply fixes to your code by running `lintrunner -a` - [ ] Is this a user-facing change? If yes, give a description of this change to be included in the release notes. - [ ] Is this PR including examples changes? If yes, please remember to update [example documentation](https://github.com/microsoft/Olive/blob/main/docs/source/examples.md) in a follow-up PR. ## (Optional) Issue link
1 parent 6e34060 commit 6cdedb9

File tree

5 files changed

+6
-46
lines changed

5 files changed

+6
-46
lines changed

.azure_pipelines/build-doc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ stages:
3030
steps:
3131
- template: job_templates/olive-setup-template.yaml
3232
parameters:
33-
python_version: '3.9'
33+
python_version: '3.10'
3434
onnxruntime: 'onnxruntime'
3535
torch: 'torch'
3636

.azure_pipelines/package_publish.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/setup-python@v5
5353
with:
5454
# Version range or exact version of Python to use, using SemVer's version range syntax. Reads from .python-version if unset.
55-
python-version: "3.9"
55+
python-version: "3.10"
5656
- name: Install dependencies
5757
run: |
5858
python -m pip install -r requirements-dev.txt

docs/requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ onnxconverter_common
1111
psutil
1212
pydata_sphinx_theme
1313
pytorch_lightning
14-
sphinx>=6.1.3
14+
scipy
15+
# stringify got removed at v8.0.0, making it incompatible with autodoc_pydantic<2.0.0
16+
sphinx>=6.1.3, <8.0.0
1517
sphinx-argparse
1618
sphinx-copybutton
1719
sphinx-tabs

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_extra_deps(rel_path):
7575
url="https://microsoft.github.io/Olive/",
7676
download_url="https://github.com/microsoft/Olive/tags",
7777
packages=find_packages(include=["olive*"]),
78-
python_requires=">=3.9",
78+
python_requires=">=3.10",
7979
install_requires=requirements,
8080
extras_require=EXTRAS,
8181
include_package_data=False,

0 commit comments

Comments
 (0)