1
0
mirror of https://github.com/gsi-upm/soil synced 2025-08-23 19:52:19 +00:00

Fix pip installation

This commit is contained in:
J. Fernando Sánchez
2018-05-04 09:59:31 +02:00
parent 497c8a55db
commit 73c90887e8
4 changed files with 37 additions and 15 deletions

1
soil/VERSION Normal file
View File

@@ -0,0 +1 @@
0.10.2

View File

@@ -4,7 +4,7 @@ import os
import pdb
import logging
__version__ = "0.10.1"
from .version import __version__
try:
basestring

20
soil/version.py Normal file
View File

@@ -0,0 +1,20 @@
import os
import logging
logger = logging.getLogger(__name__)
ROOT = os.path.dirname(__file__)
DEFAULT_FILE = os.path.join(ROOT, 'VERSION')
def read_version(versionfile=DEFAULT_FILE):
try:
with open(versionfile) as f:
return f.read().strip()
except IOError: # pragma: no cover
logger.error(('Running an unknown version of {}.'
'Be careful!.').format(__name__))
return '0.0'
__version__ = read_version()