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

Add support for SOURCE_DATE_EPOCH environment variable #1954

Merged
merged 2 commits into from Jul 24, 2015

Conversation

mitya57
Copy link
Contributor

@mitya57 mitya57 commented Jul 9, 2015

In Debian, we use this variable to prevent build tools from inserting build timestamps into generated files, and use some deterministic date instead (i.e. date in the changelog).

Support for this variable has already been added to help2man, and submitted to doxygen, epydoc, gcc and txt2man projects.

See https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal for the full story.

I have added support for this to ustrftime function so that it applies to all places where we use the current time, i.e. handling of |today| and the Last Updated string.

@birkenfeld
Copy link
Member

LGTM.

birkenfeld added a commit that referenced this pull request Jul 24, 2015
Add support for SOURCE_DATE_EPOCH environment variable
@birkenfeld birkenfeld merged commit dea6a41 into sphinx-doc:master Jul 24, 2015
@mitya57
Copy link
Contributor Author

mitya57 commented Jul 27, 2015

Thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants