Skip to main content

strip zip timestamps for reproducible builds

Project description

PyPi Package Build Status Codacy Rating Coverage Report

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

python_stripzip-2.0.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_stripzip-2.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file python_stripzip-2.0.0.tar.gz.

File metadata

  • Download URL: python_stripzip-2.0.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for python_stripzip-2.0.0.tar.gz
Algorithm Hash digest
SHA256 30ca7f42863bff640118dc3379472c0829f85692855e022783f77ee7b24b246d
MD5 f4c30ac4ce09bdba0d72b94552f5d1c7
BLAKE2b-256 003760c23ba6ec49075f6e9268dfdb263ba23097f1f02722a1188bc2d90e488d

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_stripzip-2.0.0.tar.gz:

Publisher: publish.yml on Code0x58/python-stripzip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file python_stripzip-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_stripzip-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e7b8196d38b9dc936def7c53b4ab1cba4c2ed3a32b322e5a39bdf16d5644475f
MD5 c0ed7e48798ba59577b9c14439439a72
BLAKE2b-256 11684ec4718e3bf493483636cd354ea2e1cce0bef9d4802c16b80c88097d3a5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for python_stripzip-2.0.0-py3-none-any.whl:

Publisher: publish.yml on Code0x58/python-stripzip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page