Skip to content

Commit

Permalink
updating _version to be less forgetful about version info
Browse files Browse the repository at this point in the history
  • Loading branch information
lockefox committed Aug 29, 2017
1 parent c44902a commit 297ad6f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions prosper/common/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ def get_version():
"""
if not INSTALLED:
warnings.warn(
'Unable to resolve package version until installed',
UserWarning
)
return '0.0.0' #can't parse version without stuff installed
try:
with open('version.txt', 'r') as v_fh:
return v_fh.read()
except Exception:
warnings.warn(
'Unable to resolve package version until installed',
UserWarning
)
return '0.0.0' #can't parse version without stuff installed

return p_version.get_version(HERE)

Expand Down

0 comments on commit 297ad6f

Please sign in to comment.