From: chengtao.liu Date: Wed, 26 Mar 2014 03:16:21 +0000 (+0800) Subject: update the install and version X-Git-Tag: upstream/3.1.0~11^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=317e5cba58050cd4d79d266aa19535f434d65dc7;p=test%2Ftools%2Ftestkit-lite.git update the install and version --- diff --git a/VERSION b/VERSION index 954fd94..8f363ec 100644 --- a/VERSION +++ b/VERSION @@ -1,4 +1,4 @@ [public_version] -version=3.0.7 +version=3.0.10 [internal_version] -version=3.0.7 +version=3.0.10 diff --git a/debian/changelog b/debian/changelog index 86659b2..e2ad7e0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -testkit-lite (3.0.7) unstable; urgency=low +testkit-lite (3.0.10) unstable; urgency=low * Public Release. diff --git a/packaging/testkit-lite.spec b/packaging/testkit-lite.spec index e1333a0..6fab9cf 100644 --- a/packaging/testkit-lite.spec +++ b/packaging/testkit-lite.spec @@ -1,6 +1,6 @@ Summary: TCT-Lite Name: testkit-lite -Version: 3.0.7 +Version: 3.0.10 Release: 1 License: GPLv2 Group: Applications/System diff --git a/setup.py b/setup.py index fdb4306..13d1275 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,20 @@ # Yuanyuan,Zou from setuptools import setup, find_packages +import os +from stat import ST_MODE, S_ISDIR +from distutils.command.install_data import install_data + + +class post_install_cmd(install_data): + def run (self): + install_data.run(self) + if os.name == 'posix': + for path in ['/opt/testkit/lite','/opt/testkit/lite/commodule/']: + mode = os.stat(path)[ST_MODE] + mode |= 066 + os.chmod(path, mode) + setup( name = "testkit-lite", @@ -23,11 +37,12 @@ setup( url = "https://github.com/testkit/testkit-lite", author = "Shaofeng Tang", author_email = "shaofeng.tang@intel.com", - version = "3.0.7", + version = "3.0.10", include_package_data = True, data_files = [('/opt/testkit/lite', ['VERSION', 'doc/testkit-lite_user_guide.pdf', 'doc/testkit-lite_tutorial.pdf', 'doc/test_definition_schema.pdf']), ('/opt/testkit/lite/commodule/', ['CONFIG']), ('/etc/dbus-1/system.d/', ['dbus/com.intel.testkit.conf'])], scripts = ('testkit-lite', 'testkit-lite-dbus'), packages = find_packages(), + cmdclass = {'install_data': post_install_cmd}, )