Export version string to other components in the sane way. Signed-off-by: FUJITA Tomonori <[email protected]> --- ryu/__init__.py | 18 ++++++++++++++++++ setup.py | 4 +++- 2 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/ryu/__init__.py b/ryu/__init__.py index e69de29..3cb60c6 100644 --- a/ryu/__init__.py +++ b/ryu/__init__.py @@ -0,0 +1,18 @@ +# Copyright (C) 2012 Nippon Telegraph and Telephone Corporation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +version_info = (0, 2) +version = '.'.join(map(str, version_info)) diff --git a/setup.py b/setup.py index ef65124..68ae4e0 100644 --- a/setup.py +++ b/setup.py @@ -20,6 +20,8 @@ import sys from setuptools import find_packages from setuptools import setup +from ryu import version + doing_bdist = any(arg.startswith('bdist') for arg in sys.argv[1:]) long_description = open('README.rst').read() + '\n\n' @@ -38,7 +40,7 @@ classifiers = [ ] setup(name='ryu', - version='0.2', + version=version, description=("Ryu Network Operating System"), long_description=long_description, classifiers=classifiers, -- 1.7.4.4 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
