From d5dbc41022723ace7bd0d33611473f634ef3601e Mon Sep 17 00:00:00 2001 From: Satheesh Rajendran Date: Wed, 21 Sep 2016 18:47:01 +0530 Subject: [PATCH] Added version file and updated the respective files Added version file and updated the respective files --- VERSION | 1 + docs/source/conf.py | 3 ++- optional_plugins/html/setup.py | 8 +++++++- setup.py | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..057ba558 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +41.0 diff --git a/docs/source/conf.py b/docs/source/conf.py index 9c304fdf..0002bf15 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,7 +9,6 @@ import os root_path = os.path.abspath(os.path.join("..", "..")) sys.path.insert(0, root_path) -from avocado import VERSION from avocado.utils import path from avocado.utils import process @@ -97,6 +96,8 @@ master_doc = 'index' project = u'Avocado' copyright = u'2014-2015, Red Hat' +version_file = os.path.join(root_path, 'VERSION') +VERSION = open(version_file, 'r').read().strip() version = VERSION release = VERSION diff --git a/optional_plugins/html/setup.py b/optional_plugins/html/setup.py index 142175cb..6afdd0d9 100644 --- a/optional_plugins/html/setup.py +++ b/optional_plugins/html/setup.py @@ -13,11 +13,17 @@ # Copyright: Red Hat Inc. 2016 # Author: Cleber Rosa +import os from setuptools import setup, find_packages + +root_path = os.path.abspath(os.path.join("..", "..")) +version_file = os.path.join(root_path, 'VERSION') +VERSION = open(version_file, 'r').read().strip() + setup(name='avocado_result_html', description='Avocado HTML Report for Jobs', - version='41.0', + version=VERSION, author='Avocado Developers', author_email='avocado-devel@redhat.com', url='http://avocado-framework.github.io/', diff --git a/setup.py b/setup.py index 15fb3052..df9924a7 100755 --- a/setup.py +++ b/setup.py @@ -21,6 +21,7 @@ import sys from setuptools import setup, find_packages +VERSION = open('VERSION', 'r').read().strip() VIRTUAL_ENV = hasattr(sys, 'real_prefix') @@ -103,7 +104,7 @@ def get_long_description(): if __name__ == '__main__': setup(name='avocado-framework', - version='41.0', + version=VERSION, description='Avocado Test Framework', long_description=get_long_description(), author='Avocado Developers', -- GitLab