Skip to content

Add support for Python 3.16. - #3147

Open
freakboy3742 wants to merge 8 commits into
beeware:mainfrom
freakboy3742:py3.16
Open

freakboy3742 wants to merge 8 commits into
beeware:mainfrom
freakboy3742:py3.16

Conversation

@freakboy3742

@freakboy3742 freakboy3742 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Add CI for Python 3.16.

Compatibility changes:

  • A bump to the PySide6 bootstrap template; PySide6 6.12.0 includes Python 3.15 support, but requires a minimum macOS version of 14.0.
  • urlparse() now raises a warning if passed a non-string value. Anything that isn't a string can be rejected as "not a URL".
  • shutil.unpack() can now accept wheels; anywhere that we're asking if a file is an archive, if it's a wheel we need to install as a wheel, not unpack.

Also downgrades support for macOS on Intel to "best effort" support, removing CI configurations.

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool

Comment thread src/briefcase/integrations/file.py Outdated
extension
for archive_format in shutil.get_unpack_formats()
for extension in archive_format[1]
if archive_format[0] != "whl"

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.

This behavior contradicts the docstring of is_archive. I see it was changed to pass the existing tests, but would it make more sense to update the tests? Looking at the places where this function is used, it doesn't look like they need to distinguish between .whl files and other archives.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Looks like I misread the logic around usage here; I thought we needed to exclude wheels to trigger the right logic in the venv backends, but on re-reading, I can see that isn't the case. I've reverted this and modified the expected test result to be version sensitive.

@freakboy3742

Copy link
Copy Markdown
Member Author

Since there were other updates needed to this PR, I've taken the opportunity to drop macOS Intel testing as well.

It turns out the templates have already dropped Intel runners.

@freakboy3742
freakboy3742 requested a review from mhsmith November 12, 2026 22:42
@mhsmith mhsmith mentioned this pull request Nov 13, 2026
2 of 3 tasks
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