Skip to content

Update deploy-docs yml to use Python 3.12 when deploying the docs - #8102

Merged
MridulS merged 1 commit into
networkx:mainfrom
dschult:doc_py312
Jun 6, 2025
Merged

MridulS merged 1 commit into
networkx:mainfrom
dschult:doc_py312

Conversation

@dschult

@dschult dschult commented Jun 5, 2025

Copy link
Copy Markdown
Member

I'm not sure what the big-scale implications are of changing this. So please check if it makes sense.

nx-parallel is used when deploying the docs in a yml file that runs with Python 3.11. We just shifted the python version requirements of nx-parallel to Python 3.12+ so we could use itertools.batched (which was added in 3.12). We could of course write our own version of that tools and include it in nx-parallel and then remove it again after the Python 3.14 release. But we'd prefer to just up the requirements-- it is unlikely we will have a release of nx-parallel before October anyway.

Is there a reason the docs are deployed using Python 3.11?
We are using the latest github main branch for nx-parallel and nx-cugraph when building our docs. Is it OK to make the docs with a newer Python than our minimal requirement?

This PR tries to update the deploy-docs so they use Python 3.12 when deploying.

@Schefflera-Arboricola Schefflera-Arboricola left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per the blame, in PR #7028 -- dropping python 3.9 -- the deploy-docs's python version was set to 3.11 instead of the oldest supported version(i.e. 3.10)-- so I guess this is a good change. Also SPEC 0 doesn't have any guidelines about python versions for docs deployment. Thanks @dschult :)

@MridulS
MridulS merged commit 5cc0033 into networkx:main Jun 6, 2025
@dschult
dschult deleted the doc_py312 branch June 6, 2025 14:54
amcandio pushed a commit to amcandio/networkx that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants