Reproducible sdist builds
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Feature Request
Poetry (v0.12.15) makes different sdist archives by each build command invoke. It`s poor.
Would be great if poetry generated reproducible sdists for concrete SCM commits (with identical checksums!). In my setup.py-based projects i achieve this behaviour by setuptools.command.sdist substitution, where:
- use bz2 archiver (gzip store current timestamp in archive)
- sort archive items by path
- assign owner/group of tar items to root:root
- assign archive items timestamps from SCM (Mercurial, Git) commit metadata
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
IPython reproducible builds - Quansight Labs
Starting with IPython 7.16.1 (released in June 2020), you should be able to recreate the sdist ( .tar.gz ) and wheel ( .whl...
Read more >[Distutils] Reproducible builds (Sdist) - Python mailing list - Python.org
[Distutils] Reproducible builds (Sdist). Jakub Wilk jwilk at jwilk.net. Fri Sep 29 15:04:48 EDT 2017. Previous message (by thread): [Distutils] Reproducible ...
Read more >Definitions — reproducible-builds.org
A build is reproducible if given the same source code, build environment and build instructions, any party can recreate bit-by-bit identical copies of...
Read more >Source distribution - Hatch
A source distribution, or sdist , is an archive of Python "source code". ... The builder plugin name is sdist . ... Reproducible...
Read more >Building reproducible Python applications for secured ...
The tools in this case are build and packaged into reproducible Debian ... Running python3 setup.py sdist to create the release tarball +...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Natureshadow The linked PR should resolve this.
gzip.GzipFile("test.txt.gz", mode="wb", mtime=stable_timestamp_from_scm)
. It will provide stable archive checksum.