Skip to content

Comments

Make sdist deterministic by setting gzip mtime to 0#105

Merged
sdispater merged 1 commit intopython-poetry:masterfrom
achow101:det-sdist
Jan 29, 2021
Merged

Make sdist deterministic by setting gzip mtime to 0#105
sdispater merged 1 commit intopython-poetry:masterfrom
achow101:det-sdist

Conversation

@achow101
Copy link
Contributor

@achow101 achow101 commented Oct 24, 2020

A GZip file contains a timestamp with it's last modification time. This timestamp by default is the current time which will make poetry build produce non-deterministic sdist archives. To make sdist archives deterministic, this timestamp must be set to a fixed time. So this PR sets that time to 0.

Reopening of python-poetry/poetry#870

  • Added tests for changed code.
  • (N/A)] Updated documentation for changed code.

@finswimmer finswimmer requested a review from a team October 29, 2020 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants