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

python 3.7 fell off EOL. upgrade to 3.11 #237

Merged
merged 14 commits into from
Jan 14, 2025
Merged

Conversation

pbugni
Copy link
Contributor

@pbugni pbugni commented Jan 14, 2025

No longer able to build based on python 3.7
Leaping to 3.11

Deprecation errors forcing move from setup.{cfg,py} to pyproject.toml. See PEPs 517 and 518

@pbugni pbugni requested a review from ivan-c January 14, 2025 17:32
Copy link
Member

@ivan-c ivan-c left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!!

Had a few minor nitpicks, but feel free to ignore

pyproject.toml Outdated
@@ -0,0 +1,40 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm"]
Copy link
Member

Choose a reason for hiding this comment

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

setuptools_scm could probably be removed, but no strong feelings.

We used setuptools_scm in the portal too, but I haven't included it in any new projects. We don't often distribute our projects as modules to include elsewhere, so there isn't much value in python/pip being able to distinguish different versions.

Suggested change
requires = ["setuptools>=42", "wheel", "setuptools_scm"]
requires = ["setuptools>=42", "wheel"]

tox.ini Outdated
@@ -1,5 +1,5 @@
[tox]
envlist = py3
envlist = py311
Copy link
Member

Choose a reason for hiding this comment

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

Minor nitpick; shouldn't matter either way:

I don't think this will do anything without also specifying basepython eg basepython = python3.11.

Tox can't install python, so if the required basepython is missing it will fail. This isn't a big deal for CI since we always keep them aligned, but it may make it difficult for devs to run tests locally if their machine doesn't have the exact same interpreter version.

Suggested change
envlist = py311
envlist = py3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yes, that was a failed attempt at working around the wrong version of py - fixed elsewhere

reverting this change, thank you.

@pbugni pbugni merged commit d402105 into develop Jan 14, 2025
7 checks passed
@pbugni pbugni deleted the feature/update-python-3.11 branch January 14, 2025 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants