Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for Python 3.15#282

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 1 commit intopython:mainfromhugovk:add-3.15
Nov 28, 2025
Merged

Add support for Python 3.15#282

hugovk merged 1 commit intopython:mainfromhugovk:add-3.15
Nov 28, 2025

Conversation

@hugovk
Copy link
Member

@hugovkhugovk commentedNov 26, 2025
edited by github-actionsbot
Loading

The earlier approach was something like:

matrix:branch:["main", "3.14", "3.13", "3.12"]...python-version:${{ matrix.branch == 'main' && '3.15' || matrix.branch }}...--branches ${{ matrix.branch }}

Which do you prefer?


📚 Documentation preview 📚:https://python-docs-theme-previews--282.org.readthedocs.build/

@hugovkhugovk added enhancement github_actionsPull requests that update GitHub Actions code labelsNov 26, 2025
Copy link
Member

@AA-TurnerAA-Turner left a comment

Choose a reason for hiding this comment

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

If it were me, I'd probably duplicate the jobs -- one for released & one for in-development.

Comment on lines +16 to +18
include:
-python-version:"3.15"
branch:"main"
Copy link
Member

Choose a reason for hiding this comment

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

A possible improvement is to compute the branch and extra opts once and assign them to env vars:

Suggested change
include:
-python-version:"3.15"
branch:"main"
include:
-python-version:"3.15"
branch:"main"
extra_opts:'--select-output no-html'
env:
# set the branch name to either 'main' or the version number
BRANCH:${{ matrix.branch || matrix.version }}
# define optional extra options if specified
EXTRA_OPTS:${{ matrix.extra_opts || '' }}

This keeps all the data and logic closer and avoids duplication. However we only need the branch and the extra opts once in the workflow, so your less-verbose solution is fine too.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yeah, that is quite a bit more verbose, let's stick with the current version. Thanks!

Comment on lines +44 to +45
--branches ${{ matrix.branch|| matrix.python-version}}
${{ matrix.branch == 'main' && '--select-output no-html' || '' }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
--branches ${{ matrix.branch || matrix.python-version }}
${{ matrix.branch == 'main' && '--select-output no-html' || '' }}
--branches env.BRANCH env.EXTRA_OPTS

@hugovkhugovk merged commit4e36f99 intopython:mainNov 28, 2025
15 checks passed
@hugovkhugovk deleted the add-3.15 branchNovember 28, 2025 10:38
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@AA-TurnerAA-TurnerAA-Turner left review comments

@ezio-melottiezio-melottiezio-melotti approved these changes

Assignees

No one assigned

Labels

enhancementgithub_actionsPull requests that update GitHub Actions code

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@hugovk@AA-Turner@ezio-melotti

[8]ページ先頭

©2009-2025 Movatter.jp