You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Some?) sdists created with flit (e.g. cloudpathlib, tomli, typer) include a PKG-INFO file with a timestamp of Jan 1 1970, which raises an error when building from source. pip installs without errors.
Resolved 2 packages in 392ms
error: Failed to download distributions
Caused by: Failed to fetch wheel: cloudpathlib==0.17.0
Caused by: Failed to build: cloudpathlib==0.17.0
Caused by: Build backend failed to build wheel through `build_wheel()`:
--- stdout:
--- stderr:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/tmp/.tmplPwcVh/.tmp6SwAEy/.venv/lib/python3.8/site-packages/flit_core/buildapi.py", line 72, in build_wheel
info = make_wheel_in(pyproj_toml, Path(wheel_directory))
File "/tmp/.tmplPwcVh/.tmp6SwAEy/.venv/lib/python3.8/site-packages/flit_core/wheel.py", line 224, in make_wheel_in
wb.build(editable)
File "/tmp/.tmplPwcVh/.tmp6SwAEy/.venv/lib/python3.8/site-packages/flit_core/wheel.py", line 210, in build
self.copy_module()
File "/tmp/.tmplPwcVh/.tmp6SwAEy/.venv/lib/python3.8/site-packages/flit_core/wheel.py", line 164, in copy_module
self._add_file(full_path, rel_path)
File "/tmp/.tmplPwcVh/.tmp6SwAEy/.venv/lib/python3.8/site-packages/flit_core/wheel.py", line 111, in _add_file
zinfo = zipfile.ZipInfo.from_file(full_path, rel_path)
File "/usr/lib/python3.8/zipfile.py", line 539, in from_file
zinfo = cls(arcname, date_time)
File "/usr/lib/python3.8/zipfile.py", line 362, in __init__
raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980
This looks like the same issue as #579, but it doesn't appear to be fixed by #634?
The text was updated successfully, but these errors were encountered:
## Summary
Don't preserve mtime to work around alexcrichton/tar-rs#349. Same as
#634 except for the streaming unzip.
Fixes#1748.
## Test Plan
Added the tomli source dist as test case.
(Some?) sdists created with
flit
(e.g.cloudpathlib
,tomli
,typer
) include aPKG-INFO
file with a timestamp of Jan 1 1970, which raises an error when building from source.pip
installs without errors.Command, using
uv
0.1.5:Output:
This looks like the same issue as #579, but it doesn't appear to be fixed by #634?
The text was updated successfully, but these errors were encountered: