File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,9 @@ def zip_dir(path: Path) -> None:
6363 if item .is_dir ():
6464 zip_dir (item )
6565 else :
66- zinfo = zipfile .ZipInfo .from_file (item )
66+ zinfo = zipfile .ZipInfo .from_file (
67+ item , item .relative_to (self .input_path )
68+ )
6769 zinfo .date_time = date_time ()
6870 zinfo .external_attr = 0o644 << 16
6971 self ._uncompressed_bytes += item .stat ().st_size
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def test_package_python_function(tmp_path: Path) -> None:
4949 assert mode == EXPECTED_FILE_MODE
5050 assert file_info .date_time == EXPECTED_FILE_DATE_TIME
5151
52- assert verify_dir / "project_1" / "__init__.py"
53- assert verify_dir / "project_1" / "project1.py"
54- assert verify_dir / "small_dependency" / "__init__.py"
55- assert verify_dir / "small_dependency" / "small_dependency.py"
52+ assert ( verify_dir / "project_1" / "__init__.py" ). exists ()
53+ assert ( verify_dir / "project_1" / "project1.py" ). exists ()
54+ assert ( verify_dir / "small_dependency" / "__init__.py" ). exists ()
55+ assert ( verify_dir / "small_dependency" / "small_dependency.py" ). exists ()
You can’t perform that action at this time.
0 commit comments