Added environment variable to make the wheel reproducible.

This commit is contained in:
Franco Masotti 2021-07-31 19:05:54 +02:00
parent 9f0ff8d126
commit c20b1a430f
Signed by: frnmst
GPG Key ID: 24116ED85666780A
1 changed files with 8 additions and 1 deletions

View File

@ -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: