Skip to content

Commit 7cc7165

Browse files
authored
Update docs.yml (#6493)
Bump python version, pin nr-utils <!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. --> Fix docs build CI bug. - pydocmkardown depends on pydocspec -[ pydocspec was updated May 6](https://pypi.org/project/docspec-python/#history) (two days ago), and includes a problematic dependency (`nr.utils` which is specified as [nr-utils](https://github.com/NiklasRosenstein/python-docspec/blob/61d3e38c55d290da6197236357e1cdfe818d35b5/docspec-python/pyproject.toml#L14C5-L14C23). This caused imports to fail. - current fix is fixing the pydocspec version. - Also using the opportunity to update the python version 3.8 -> 3.9 for the docs build 0.2 <!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. --> ## Why are these changes needed? <!-- Please give a short summary of the change and the problem this solves. --> ## Related issue number <!-- For example: "Closes #1234" --> ## Checks - [ ] I've included any doc changes needed for <https://microsoft.github.io/autogen/>. See <https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to build and test documentation locally. - [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR. - [ ] I've made sure all auto checks have passed.
1 parent b17793e commit 7cc7165

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ jobs:
141141
- name: setup python
142142
uses: actions/setup-python@v5
143143
with:
144-
python-version: "3.8"
144+
python-version: "3.9"
145145
- name: pydoc-markdown install
146146
run: |
147147
python -m pip install --upgrade pip
148+
pip install docspec==2.2.1 docspec-python==2.2.1
148149
pip install pydoc-markdown pyyaml termcolor
149150
# Pin databind packages as version 4.5.0 is not compatible with pydoc-markdown.
150151
pip install databind.core==4.4.2 databind.json==4.4.2

0 commit comments

Comments
 (0)