镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Create modular packages for zipfile and test_zipfile #98098

Description

@jaraco

I'm about to embark on once again syncing changes from zipp to zipfile.

Historically, I've manually copied the contents of the cpython branch to the relevant files in this repository, but that process is error prone (because it involves syncing a whole file to a portion of another file).

I'd like to instead create packages for zipfile and test_zipfile, such that the functionality that's synced with zipp can be kept separate from other zipfile functionality. Moreover, late versions of zipp bring in extra dependencies so a package can also serve as a home to vendor such functionality.

I'm not suggesting to change the user's signature at all. The names will still be presented through the zipfile module unchanged.

Linked PRs

Activity

  1. added 2 commits that reference this issue on Oct 8, 2022
  2. jaraco commented on Oct 8, 2022

    @jaraco
    MemberAuthor

    I tried moving most of zipfile.py to zipfile/_core.py but that caused problems with all of the global constants in that file, many of which are treated as mutable (at least for tests).

  3. added 4 commits that reference this issue on Oct 8, 2022
  4. added 4 commits that reference this issue on Nov 26, 2022
  5. hauntsaninja commented on Nov 29, 2022

    @hauntsaninja
    Contributor

    Looks like this can be closed, but not touching it since I see it was assigned to Yhg1s and I don't know what that means

  6. ilia1243 commented on Dec 1, 2023

    @ilia1243

    Hello, looks like this issue has lead to warning <frozen runpy>:128: RuntimeWarning: 'zipfile.__main__' found in sys.modules after import of package 'zipfile', but prior to execution of 'zipfile.__main__'; this may result in unpredictable behaviour when using https://docs.python.org/3/library/zipfile.html#command-line-interface

  7. gpshead commented on Dec 1, 2023

    @gpshead
    Member

    please file a new issue if you believe there is a bug with instructions for how to reproduce it.

  8. hauntsaninja commented on Dec 1, 2023

    @hauntsaninja
    Contributor

    Thanks ilia1243 for reporting! I opened an issue at #112578 and a PR at #112579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions