From b3ae2ba7763790539d62bfcad7cdac68daede2b2 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 25 Sep 2019 19:14:11 +0200 Subject: [PATCH] Don't fake the version anymore --- bin/etherpump | 4 ++-- etherpump/__init__.py | 1 + setup.py | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/etherpump b/bin/etherpump index 3cf1e76..9161e4f 100755 --- a/bin/etherpump +++ b/bin/etherpump @@ -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: diff --git a/etherpump/__init__.py b/etherpump/__init__.py index e65acc9..459974c 100644 --- a/etherpump/__init__.py +++ b/etherpump/__init__.py @@ -1,3 +1,4 @@ import os DATAPATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data") +VERSION = '0.0.1' diff --git a/setup.py b/setup.py index ca6a84c..875e71e 100644 --- a/setup.py +++ b/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'],