strip zip timestamps for reproducible builds
Project description
python-stripzip
This package provides a stripzip script which will set all of the date/times in given zips to 1980-01-01 00:00:00 - the lowest valid value available in zips.
The purpose is to zip archive based builds deterministic, e.g. python wheels, AWS lambdas. There are no extra dependancies, and the package is available on PyPi which is probably the only advantage of this at the moment.
usage: stripzip [-h] zip [zip …]
Installation
You can pick one of:
pipsi install python-stripzip pip install --user python-stripzip git clone git@github.com:Code0x58/python-stripzip.git && cd python-stripzip && python setup.py install
See also
strip-nodeterminism - tool written in Perl and released as a Debian package; works on various archive formats
stripzip - tool written in C without binary releases; currently wipes out more zip metadata
SOURCE_DATE_EPOCH=315532800 python setup.py bdist_wheel
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python-stripzip-1.0.0.tar.gz
.
File metadata
- Download URL: python-stripzip-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74d5e7c0cf73904ed0a118b493665cd8a0e33418b4646d1accf00b1b7f49f54d |
|
MD5 | c8161e7e9aef3304ca9715e8e62284db |
|
BLAKE2b-256 | a12b44320d54eeb2ebd532cf03c936df1d745e56a5b5f79155edebe333a54536 |
File details
Details for the file python_stripzip-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: python_stripzip-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 849af653fa8356e5fe3d835b2425a8235eaf2e5f0ad6cfa0da291f0de08cbb90 |
|
MD5 | 400888c3ccec9ddb6fcb769112423423 |
|
BLAKE2b-256 | 81c0f389d2c56701bc2ddea933b15e53a0d73c5e3573a833280d41abee323b21 |