mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Moved version info to own file to avoid import issues
Fixes issue #387.
This commit is contained in:
parent
0af8e1c183
commit
204414ff91
3 changed files with 5 additions and 4 deletions
|
@ -1,9 +1,7 @@
|
||||||
'''
|
'''
|
||||||
Make me some salt!
|
Make me some salt!
|
||||||
'''
|
'''
|
||||||
|
from salt.version import __version__
|
||||||
__version_info__ = (0, 9, 5, 'pre')
|
|
||||||
__version__ = '.'.join(map(str, __version_info__))
|
|
||||||
|
|
||||||
# Import python libs
|
# Import python libs
|
||||||
import optparse
|
import optparse
|
||||||
|
|
2
salt/version.py
Normal file
2
salt/version.py
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
__version_info__ = (0, 9, 5, 'pre')
|
||||||
|
__version__ = '.'.join(map(str, __version_info__))
|
3
setup.py
3
setup.py
|
@ -10,7 +10,8 @@ from distutils.core import setup, Extension
|
||||||
from distutils.command.sdist import sdist
|
from distutils.command.sdist import sdist
|
||||||
from distutils.cmd import Command
|
from distutils.cmd import Command
|
||||||
from distutils.sysconfig import get_python_lib, PREFIX
|
from distutils.sysconfig import get_python_lib, PREFIX
|
||||||
from salt import __version__
|
|
||||||
|
execfile('salt/version.py')
|
||||||
|
|
||||||
class TestCommand(Command):
|
class TestCommand(Command):
|
||||||
description = 'Run tests'
|
description = 'Run tests'
|
||||||
|
|
Loading…
Add table
Reference in a new issue