Skip to content

replace python-version: 3 with latest supported Python - #428

Merged
zacharyburnett merged 1 commit into
OpenAstronomy:mainfrom
zacharyburnett:py3_latest_supported_python
Oct 16, 2026
Merged

zacharyburnett merged 1 commit into
OpenAstronomy:mainfrom
zacharyburnett:py3_latest_supported_python

Conversation

@zacharyburnett

Copy link
Copy Markdown
Contributor

closes #427

@zacharyburnett zacharyburnett self-assigned this Oct 15, 2026
@pllim

pllim commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

pre-commit.ci autofix

@pllim

pllim commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

LoL the bot rejected me. 😿

@pllim

pllim commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Also, where is the rest of the CI? Is it disabled?

@zacharyburnett

zacharyburnett commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

@zacharyburnett
zacharyburnett force-pushed the py3_latest_supported_python branch 3 times, most recently from 07d3b2f to d6ab911 Compare October 15, 2026 15:39
@zacharyburnett

Copy link
Copy Markdown
Contributor Author

it works!
Screenshot 2026-10-15 at 11 46 01 AM

@zacharyburnett

Copy link
Copy Markdown
Contributor Author

I believe the two failing CI jobs are unrelated to this PR

@zacharyburnett
zacharyburnett force-pushed the py3_latest_supported_python branch from d6ab911 to 7e1b8dc Compare October 15, 2026 15:55
Comment thread tools/tox_matrix.py
if toxenv.split("-")[0] == "py3":
# replace py3 with latest supported Python
# see https://github.com/OpenAstronomy/github-actions-workflows/issues/427
matrix_item["python_version"] = supported_pythons[-1]

@zacharyburnett zacharyburnett Oct 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just a note for reference: this uses the last version specified in supported_pythons, so for instance if a project specifies requires-python: ">=3.12,<3.15" then a py3 toxenv will install Python 3.14. If a user wanted to use 3.15 in this instance, they'd have to specify py315.

We could potentially add a ignore-supported-python: true option to the matrix item to make py3 install Python 3.15, if that functionality is desired

@zacharyburnett
zacharyburnett merged commit e25a8c5 into OpenAstronomy:main Oct 16, 2026
88 of 90 checks passed
@zacharyburnett
zacharyburnett deleted the py3_latest_supported_python branch October 16, 2026 11:54
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.

specifying python-version: 3 in setup-uv uses the runner's system Python instead of latest Python as expected

3 participants