From 61e3df2a9c638b87bdba182b5ff49f62419f5d7e Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 5 Jun 2012 23:37:48 +0900 Subject: [PATCH] update setup.py and setup.cfg for better packaging Note that now ryu uses /etc/ryu/ryu.conf. The previous install path (/usr/etc/ryu/ryu.conf) doesn't fit to FHS. Signed-off-by: FUJITA Tomonori --- setup.cfg | 5 +++++ setup.py | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 46409041..411aadee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1 +1,6 @@ # TODO + +[bdist_rpm] +Release = 1 +Group = Applications/Accessories +Requires = python-gevent >= 0.13, python-gflags, python-simplejson, python-webob, python-routes diff --git a/setup.py b/setup.py index c13850b2..c7fed2d4 100644 --- a/setup.py +++ b/setup.py @@ -19,8 +19,7 @@ import os from setuptools import find_packages from setuptools import setup -README = os.path.join(os.path.dirname(__file__), 'README.rst') -long_description = open(README).read() + '\n\n' +long_description = 'Ryu is an open-sourced network operating system licensed under Apache License v2. Ryu aims to provide logically centralized control and well defined API that makes it easy for cloud operators to implement network management applications on top of the Ryu. Currently, Ryu supports OpenFlow protocol to control the network devices.' setup(name='ryu', version='0.2', @@ -28,12 +27,12 @@ setup(name='ryu', long_description=long_description, keywords='openflow openvswitch openstack', url='http://www.osrg.net/ryu/', -# author='', + author='Ryu project team', author_email='ryu-devel@lists.sourceforge.net', license='Apache License 2.0', packages=find_packages(), scripts=['bin/ryu-manager', 'bin/ryu-client'], - data_files=[('etc/ryu', ['etc/ryu/ryu.conf'])], + data_files=[('/etc/ryu', ['etc/ryu/ryu.conf'])], # install_requires=[] )