Skip to content

Commit

Permalink
Merge pull request #46 from lamby/1004391-python-fluids-please-make-t…
Browse files Browse the repository at this point in the history
…he-build-reproducible

Make the documentation year reproducible
  • Loading branch information
CalebBell authored Jan 27, 2022
2 parents 3e38bc6 + 6471b71 commit ab071b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,13 @@

# General information about the project.
project = u'Fluids'
import os
import time
import datetime
copyright = u'2016 - %s, Caleb Bell <[email protected]>' %datetime.datetime.now().year
build_date = datetime.datetime.utcfromtimestamp(
int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))
)
copyright = u'2016 - %s, Caleb Bell <[email protected]>' % build_date.year

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down

0 comments on commit ab071b3

Please sign in to comment.