Added environment variable to make the wheel reproducible.

dev
Franco Masotti 1 year ago
parent 9f0ff8d126
commit c20b1a430f
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 9
      Makefile

@ -45,7 +45,14 @@ test:
dist:
pipenv run python setup.py sdist
pipenv run python setup.py bdist_wheel
# Create a reproducible archve at least on the wheel.
# See
# https://bugs.python.org/issue31526
# https://bugs.python.org/issue38727
# https://github.com/pypa/setuptools/issues/1468
# https://github.com/pypa/setuptools/issues/2133
# https://reproducible-builds.org/docs/source-date-epoch/
SOURCE_DATE_EPOCH=$$(git log -1 --pretty=%ct) pipenv run python setup.py bdist_wheel
pipenv run pipenv run twine check dist/*
upload:

Loading…
Cancel
Save