Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update automatic version handling.

  • Loading branch information...
commit 24412a0c31025ee986df0db1dea0d083575f43bc 1 parent a65e34f
@tylerbutler authored
View
6 engineer/__init__.py
@@ -4,11 +4,13 @@
try:
from _version import version
except ImportError:
-
print "Got an import error"
from propane_distribution import update_version_py
update_version_py(version_path=os.path.dirname(__file__))
- from _version import version
+ try:
+ from engineer._version import version
+ except ImportError:
+ raise
__author__ = 'Tyler Butler <tyler@tylerbutler.com>'
View
16 engineer/docs_source/conf.py
@@ -20,9 +20,13 @@
from path import path
-to_add = path(__file__).dirname().dirname().abspath()
+to_add = path(__file__).dirname().dirname().dirname().abspath()
print "Adding to path: %s" % to_add
-sys.path.append(to_add)
+sys.path.insert(0, str(to_add))
+
+import pprint
+
+pprint.pprint(sys.path)
APP_NAME = u'engineer'
AUTHOR_NAME = u'Tyler Butler <tyler@tylerbutler.com>'
@@ -60,11 +64,13 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-from engineer import version
+import engineer
# The short X.Y version.
-version = version
+version = engineer.version
# The full version, including alpha/beta/rc tags.
-release = version
+release = engineer.version
+
+print "Got engineer version %s" % version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
2  propane_distribution
@@ -1 +1 @@
-Subproject commit b6706c8eafc06f16b7d0b85963fe602fed008fcf
+Subproject commit 2cde859678ea3b411f2e37c44bc27097f491b9d5
Please sign in to comment.
Something went wrong with that request. Please try again.