Created
February 23, 2017 02:13
-
-
Save timokoola/f7a77949e2ce578f7d8be6a60243925c to your computer and use it in GitHub Desktop.
Python project release note in code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os.path | |
| import datetime | |
| text = """ | |
| # Release note | |
| Creating semi-autoupdated Python release notes with some timestamp magic. | |
| Timestamp updates when document is saved and/or is `touch`:ed by a build script. | |
| """ | |
| timestamp = datetime.datetime.fromtimestamp(os.path.getmtime("release_notes.py")).isoformat() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment