]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-106752: Move zipfile._path into its own package (GH-106753) (#106755)
authorJason R. Coombs <jaraco@jaraco.com>
Fri, 14 Jul 2023 21:11:13 +0000 (17:11 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 21:11:13 +0000 (21:11 +0000)
* gh-106752: Move zipfile._path into its own package so it may have supplementary behavior.

* Add blurb.
(cherry picked from commit 03185f0c150ebc52d41dd5ea6f369c7b5ba9fc16)

.github/CODEOWNERS
Lib/test/test_zipfile/_path/__init__.py [new file with mode: 0644]
Lib/test/test_zipfile/_path/_functools.py [moved from Lib/test/test_zipfile/_functools.py with 100% similarity]
Lib/test/test_zipfile/_path/_itertools.py [moved from Lib/test/test_zipfile/_itertools.py with 100% similarity]
Lib/test/test_zipfile/_path/_support.py [moved from Lib/test/test_zipfile/_support.py with 100% similarity]
Lib/test/test_zipfile/_path/_test_params.py [moved from Lib/test/test_zipfile/_test_params.py with 100% similarity]
Lib/test/test_zipfile/_path/test_complexity.py [moved from Lib/test/test_zipfile/test_complexity.py with 100% similarity]
Lib/test/test_zipfile/_path/test_path.py [moved from Lib/test/test_zipfile/test_path.py with 100% similarity]
Lib/zipfile/_path/__init__.py [moved from Lib/zipfile/_path.py with 100% similarity]
Makefile.pre.in
Misc/NEWS.d/next/Tests/2023-07-14-16-20-06.gh-issue-106752.gd1i6D.rst [new file with mode: 0644]

index 32ba5355a5853f652e9024030a9d533f73350e4e..95fd51b743cd332c743b73fb4c6b5ca7e2815f33 100644 (file)
@@ -164,4 +164,4 @@ Lib/ast.py                    @isidentical
 **/*pathlib*                  @barneygale
 
 # zipfile.Path
-**/*zipfile/*_path.py         @jaraco
+**/*zipfile/_path/*           @jaraco
diff --git a/Lib/test/test_zipfile/_path/__init__.py b/Lib/test/test_zipfile/_path/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
index 12788d11d1d145ce0442b1c1733ded9b4fcebde2..8dacb570ccafab0277f4782cd881b7bb3dae1927 100644 (file)
@@ -2110,7 +2110,7 @@ LIBSUBDIRS=       asyncio \
                wsgiref \
                $(XMLLIBSUBDIRS) \
                xmlrpc \
-               zipfile \
+               zipfile zipfile/_path \
                zoneinfo \
                __phello__
 TESTSUBDIRS=   idlelib/idle_test \
@@ -2220,6 +2220,7 @@ TESTSUBDIRS=      idlelib/idle_test \
                test/test_warnings \
                test/test_warnings/data \
                test/test_zipfile \
+               test/test_zipfile/_path \
                test/test_zoneinfo \
                test/test_zoneinfo/data \
                test/tracedmodules \
diff --git a/Misc/NEWS.d/next/Tests/2023-07-14-16-20-06.gh-issue-106752.gd1i6D.rst b/Misc/NEWS.d/next/Tests/2023-07-14-16-20-06.gh-issue-106752.gd1i6D.rst
new file mode 100644 (file)
index 0000000..ba7257e
--- /dev/null
@@ -0,0 +1,2 @@
+Moved tests for ``zipfile.Path`` into ``Lib/test/test_zipfile/_path``. Made
+``zipfile._path`` a package.