Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible solution for #84. The version is now set in only 1 place ins…
…tead of 3, and the svn revision is added automatically. Removed the namespace package stuff since I don't see why this should be a namespace package and since a namespace package must not have any additional code in __init__.py.
- Loading branch information
cito@online.de
committed
Jan 23, 2009
1 parent
fb7a609
commit c4c71d6
Showing
4 changed files
with
45 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
|
||
VERSION = (0, 9, 0, 'svn') | ||
|
||
def version(): | ||
return '%s.%s.%s-%s' % VERSION | ||
try: | ||
import pkg_resources | ||
try: | ||
version = pkg_resources.get_distribution('rst2pdf').version | ||
except pkg_resources.ResolutionError: | ||
version = None | ||
except ImportError: | ||
version = None |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[egg_info] | ||
tag_build = dev | ||
tag_build = .dev | ||
tag_svn_revision = true |
This file contains 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