Don't fake the version anymore

This commit is contained in:
Luke Murphy 2019-09-25 19:14:11 +02:00
parent 889987cdc9
commit b3ae2ba776
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 5 additions and 3 deletions

View File

@ -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:

View File

@ -1,3 +1,4 @@
import os
DATAPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
VERSION = '0.0.1'

View File

@ -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'],