Skip to content

Conversation

branchvincent
Copy link
Contributor

A common value for SOURCE_DATE_EPOCH is 0, which unfortunately breaks pdm:

$ uv init --build-backend=pdm
$ SOURCE_DATE_EPOCH=0 uv build
# ...
  File "/Users/branch/.cache/uv/builds-v0/.tmpEkVowp/lib/python3.13/site-packages/pdm/backend/wheel.py", line 52, in <module>
    raise ValueError("zipinfo date can't be earlier than 1980")
ValueError: zipinfo date can't be earlier than 1980

This clamps to 1980 instead (same as setuptools and flit-core. poetry also support this but defaults to 2016)

Copy link

netlify bot commented Jun 11, 2025

Deploy Preview for pdm-backend-docs ready!

Name Link
🔨 Latest commit 9d1c18d
🔍 Latest deploy log https://app.netlify.com/projects/pdm-backend-docs/deploys/68491b9d830b84000964e3fe
😎 Deploy Preview https://deploy-preview-288--pdm-backend-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@branchvincent
Copy link
Contributor Author

thanks for the review @frostming! any idea on when this might be merged + released?

@frostming frostming merged commit daf1e07 into pdm-project:main Jul 3, 2025
23 checks passed
@branchvincent branchvincent deleted the source-date-epoch branch July 3, 2025 13:58
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