Don't fake the version anymore
This commit is contained in:
parent
889987cdc9
commit
b3ae2ba776
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
from etherpump import VERSION
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
usage = """Usage:
|
usage = """Usage:
|
||||||
@ -35,7 +35,7 @@ try:
|
|||||||
print(usage)
|
print(usage)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
elif any(arg in args for arg in ['--version', '-v']):
|
elif any(arg in args for arg in ['--version', '-v']):
|
||||||
print('etherpump 0.0.1')
|
print('etherpump {}'.format(VERSION))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
DATAPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
|
DATAPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
|
||||||
|
VERSION = '0.0.1'
|
||||||
|
3
setup.py
3
setup.py
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
from etherpump import VERSION
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ def find(p, d):
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='etherpump',
|
name='etherpump',
|
||||||
version='0.0.1',
|
version=VERSION,
|
||||||
author='Varia members',
|
author='Varia members',
|
||||||
author_email='info@varia.zone',
|
author_email='info@varia.zone',
|
||||||
packages=['etherpump', 'etherpump.commands'],
|
packages=['etherpump', 'etherpump.commands'],
|
||||||
|
Loading…
Reference in New Issue
Block a user