Move version number out of init file to its own file (consistent with

other projects).
This commit is contained in:
James Muscat 2015-04-14 13:58:33 +01:00
parent 1f3de2474c
commit 43ff4cda3a
4 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
import re
VERSIONFILE = "src/eddn/__init__.py"
VERSIONFILE = "src/eddn/_version.py"
verstr = "unknown"
try:
verstrline = open(VERSIONFILE, "rt").read()

View File

@ -1 +0,0 @@
__version__ = "0.2"

1
src/eddn/_version.py Normal file
View File

@ -0,0 +1 @@
__version__ = "0.2"

View File

@ -6,7 +6,7 @@ Created on 15 Nov 2014
import simplejson
import argparse
from eddn import __version__ as version
from eddn._version import __version__ as version
class _Settings(object):