Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Update dependencies in requirements.txt for python3.12 #13339

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

AnthonyZhOon
Copy link
Contributor

Which issue does this PR close?

Closes #13337

Rationale for this change

PEP 632 - Deprecate distutils module has removed distutils from the standard library in python 3.12. Instead maintaining the module at the setuptools package.
Updating the dependencies to reflect this allows the docs to be built with python 3.12 and should still work on earlier python versions.

What changes are included in this PR?

An extra dependency on setuptools in the requirements.txt with a version constraint >=48.0.0 when distutils was first available.

Are these changes tested?

I have successfully built and viewed the docs with python3.12

Are there any user-facing changes?

There should be no user-facing changes and this is the recommended migration path in PEP 632 - Deprecate distutils module. Alternatives are mentioned in this stack overflow No module named 'distutils' in Python 3.12

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Nov 10, 2024
@AnthonyZhOon AnthonyZhOon changed the title Update dependencies in requirements.txt for python3.12 Docs: Update dependencies in requirements.txt for python3.12 Nov 10, 2024
@crepererum
Copy link
Contributor

While you're on it, you can also bump the docs CI Python version:

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

@github-actions github-actions bot added the development-process Related to development process of DataFusion label Nov 12, 2024
@crepererum
Copy link
Contributor

Could you rebase the PR? I think the CI failure is unrelated and was fixed by #13340, but I would like to see the CI passing before we merge this.

@AnthonyZhOon
Copy link
Contributor Author

Yep, synced my fork. Seems like it was unrelated to this PR

@crepererum crepererum merged commit 4c1ec80 into apache:main Nov 13, 2024
26 checks passed
@crepererum
Copy link
Contributor

thank you

alamb pushed a commit to alamb/datafusion that referenced this pull request Nov 13, 2024
…e#13339)

* Update requirements.txt for python3.12

* Update requirements.txt with a minimum version for `setuptools`

* Bump to python 3.12 in docs CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development-process Related to development process of DataFusion documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Update docs dependencies for python 3.12
2 participants