Skip to content

Commit

Permalink
Put version number to a separate file to access it without installing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Dzhulgakov committed Oct 28, 2017
1 parent 5e2a94b commit da1f15e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions VERSION_NUMBER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.2.1
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@
except subprocess.CalledProcessError:
git_version = None

VersionInfo = namedtuple('VersionInfo', ['version', 'git_version'])(
version='0.2.1',
git_version=git_version
)
with open(os.path.join(TOP_DIR, 'VERSION_NUMBER')) as version_file:
VersionInfo = namedtuple('VersionInfo', ['version', 'git_version'])(
version=version_file.read().strip(),
git_version=git_version
)

################################################################################
# Utilities
Expand Down

0 comments on commit da1f15e

Please sign in to comment.