Browse files

Import Timeline in

  • Loading branch information...
1 parent a271371 commit 6b92108153c2e15c84d66eecc26966a2882ce632 @bretthoerner committed Sep 12, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 timak/
@@ -1 +1,6 @@
+from __future__ import absolute_import
+from .timelines import Timeline
__version__ = (0, 0, 0)

2 comments on commit 6b92108


dcramer replied Sep 13, 2011

There's a potentially problem here:

version is kept in

What this means is that you cant safely import <foo> in to get the version dynamically without having a possible import error due to paths.

So you have several solutions:

  1. I generally (now) stick this in as simply version=0.0.0, and within have VERSION = pkg_resources.get_distribution('timak').version
  2. You could also do what I've seen others do, and have a make release which simply updates the version in both places.
  3. There's also the pkg_resources option, though I'm not familiar with it.

bretthoerner replied Sep 13, 2011

Good call, I like #1 because it's easy: e997d44

Please sign in to comment.