Skip to content

Comments

Set mtime on setup.py/PKG-INFO when building sdist#1541

Merged
finswimmer merged 1 commit intopython-poetry:masterfrom
aloisklink:add-mtime-to-sdist
Nov 21, 2019
Merged

Set mtime on setup.py/PKG-INFO when building sdist#1541
finswimmer merged 1 commit intopython-poetry:masterfrom
aloisklink:add-mtime-to-sdist

Conversation

@aloisklink
Copy link
Contributor

Bug Fix

Previously, the mtime of setup.py and PKG-INFO was the default value of 0, which showed that the files were last modified on Jan 1st 1970.

This created the following warning when using gnu tar:
implausibly old time stamp 1970-01-01 01:00:00

This commit sets the last modified time of setup.py and PKG-INFO to the time they are created, and tests that every file in the sdist tar.gz has a valid (i.e. greater than 0) mtime.

Fixes #670.

Pull Request Check List

This is just a reminder about the most common mistakes. Please make sure that you tick all appropriate boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!

  • Added tests for changed code.
  • Updated documentation for changed code.

Note: If your Pull Request introduces a new feature or changes the current behavior, it should be based
on the develop branch. If it's a bug fix or only a documentation update, it should be based on the master branch.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!

Previously, the mtime was the default value of 0.

Fixes python-poetry#670.

This stops the following warning when using gnu tar:
implausibly old time stamp 1970-01-01 01:00:00
Copy link
Member

@finswimmer finswimmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much! Looks good to me 🚀

@finswimmer finswimmer merged commit 3cf8b31 into python-poetry:master Nov 21, 2019
@aloisklink aloisklink deleted the add-mtime-to-sdist branch October 15, 2022 06:43
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mtime set to 0 on setup.py and PKG-INFO in sdist package

2 participants