Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the build reproducible #45

Conversation

lamby
Copy link
Contributor

@lamby lamby commented Jul 13, 2020

Whilst working on the Reproducible Builds effort we noticed that pyerfa could not be built reproducibly. This is due to the documentation contained the current build date.

(This was originally filed in Debian as #964958.)

Whilst working on the Reproducible Builds effort [0] we noticed that
pyerfa could not be built reproducibly.

This is due to the documentation contained the current build date.

This was originally filed in Debian as #964958 [1].

 [0] https://reproducible-builds.org/
 [1] https://bugs.debian.org/964958
@avalentino avalentino merged commit 511ae94 into liberfa:master Jul 13, 2020
@avalentino
Copy link
Member

Thanks @lamby

@@ -41,6 +41,9 @@

project = 'PyERFA'
author = 'The PyERFA Developers'
build_date = datetime.utcfromtimestamp(
int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
)
copyright = '2011–{0}, {1}'.format(datetime.utcnow().year, author)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldnt this use build_date.year here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @bmwiedemann you are perfectly right.
I will fix it ASAP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original patch from Debian is unaffected - it was the version here that was copied incorrectly.

avalentino added a commit to avalentino/pyerfa that referenced this pull request Jul 18, 2020
@avalentino avalentino mentioned this pull request Jul 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants