Skip to content

Instantly share code, notes, and snippets.

@westphahl
Created March 23, 2010 12:32
Show Gist options
  • Save westphahl/341117 to your computer and use it in GitHub Desktop.
Save westphahl/341117 to your computer and use it in GitHub Desktop.
# setup.py
setup(
# [...]
version=__import__('example').__version__,
# [...]
)
# example/__init__.py
VERSION = (1, 2, 3)
__version__ = '.'.join(map(str, VERSION))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment