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

* Add blurb

.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 5b471c79f75eea70dce2365d6969d938e5ad4ac1..234a954cc7662f50855e9ceca04fd26b81e614ae 100644 (file)
@@ -172,7 +172,7 @@ Doc/c-api/stable.rst          @encukou
 **/*pathlib*                  @barneygale
 
 # zipfile.Path
-**/*zipfile/*_path.py         @jaraco
+**/*zipfile/_path/*           @jaraco
 
 # Argument Clinic
 /Tools/clinic/**              @erlend-aasland @AlexWaygood
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 4b655513f656d7156ff7d9a59f7c4fceb13aa00f..ddf524ac17d72a4f92146ff30c89c5e600473d4e 100644 (file)
@@ -2125,7 +2125,7 @@ LIBSUBDIRS=       asyncio \
                wsgiref \
                $(XMLLIBSUBDIRS) \
                xmlrpc \
-               zipfile \
+               zipfile zipfile/_path \
                zoneinfo \
                __phello__
 TESTSUBDIRS=   idlelib/idle_test \
@@ -2229,6 +2229,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/tkinterdata \
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.