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