Skip to content

Instantly share code, notes, and snippets.

@timokoola
Created February 23, 2017 02:13
Show Gist options
  • Select an option

  • Save timokoola/f7a77949e2ce578f7d8be6a60243925c to your computer and use it in GitHub Desktop.

Select an option

Save timokoola/f7a77949e2ce578f7d8be6a60243925c to your computer and use it in GitHub Desktop.
Python project release note in code
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