Skip to content

Modernize zipfile usage in zip tool#4850

Merged
bdbaddog merged 1 commit intoSCons:masterfrom
mwichmann:maint/zip-tool
May 5, 2026
Merged

Modernize zipfile usage in zip tool#4850
bdbaddog merged 1 commit intoSCons:masterfrom
mwichmann:maint/zip-tool

Conversation

@mwichmann
Copy link
Copy Markdown
Collaborator

SCons/Tool/zip.py had a TODO suggesting there was more native way to create ZipInfo objects once Python 3.6 became the SCons minimum. This was not implemented yet so this change provides that update. Also adds a bit of type annotation.

No test changes: the existing tests verify the behavior did not change; this is not visible to users.

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt and RELEASE.txt (and read the README.rst).
  • I have updated the appropriate documentation

SCons/Tool/zip.py had a TODO suggesting there was more native way
to create ZipInfo objects once Python 3.6 became the SCons minimum.
This was not implemented yet so this change provides that update.
Also adds a bit of type annotation.

Signed-off-by: Mats Wichmann <mats@linux.com>
@mwichmann mwichmann added the Tools Issues related to tools subsystem label Apr 28, 2026
@mwichmann mwichmann moved this to In review in Next Release Apr 28, 2026
@bdbaddog bdbaddog merged commit 90834f1 into SCons:master May 5, 2026
11 of 12 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in Next Release May 5, 2026
@mwichmann mwichmann deleted the maint/zip-tool branch May 5, 2026 13:12
@mwichmann mwichmann added this to the NextRelease milestone May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tools Issues related to tools subsystem

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants