Move version string to ryu/__init__.py
Export version string to other components in the sane way. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
a364a7a7e2
commit
5de36cdbd7
|
@ -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))
|
4
setup.py
4
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,
|
||||
|
|
Loading…
Reference in New Issue