未验证 提交 e185d21c 编写于 作者: L Lukáš Doktor

Merging pull request 1483

* https://github.com/avocado-framework/avocado:
  Added version file and updated the respective files
......@@ -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
......
......@@ -13,11 +13,17 @@
# Copyright: Red Hat Inc. 2016
# Author: Cleber Rosa <crosa@redhat.com>
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/',
......
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册