From 7989636801ff2e3c945608c05a90caefe9675db3 Mon Sep 17 00:00:00 2001 From: faloker Date: Sun, 23 Feb 2020 14:47:55 +0200 Subject: [PATCH] Add version --- fastcli/__init__.py | 1 + setup.py | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/fastcli/__init__.py b/fastcli/__init__.py index 0387d31..4634103 100644 --- a/fastcli/__init__.py +++ b/fastcli/__init__.py @@ -1 +1,2 @@ __name__ = "wallarm-fast-cli" +__version__ = "1.0.0" diff --git a/setup.py b/setup.py index 23e9d1a..14927f0 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,13 @@ import os from setuptools import setup +from fastcli import __version__, __name__ with open('README.md', 'r') as f: long_description = f.read() -if os.environ.get('CI_COMMIT_TAG'): - version = os.environ['CI_COMMIT_TAG'] -else: - version = os.environ['CI_JOB_ID'] - setup( - name='wallarm-fast-cli', - version=version, + name=__name__, + version=__version__, description='A Wallarm FAST CLI tool for executing tests and getting results from the command line.', long_description=long_description, long_description_content_type='text/markdown',