Use 'What's Ryu' section for RPM package description. Otherwise, we
use README.rst for long_description so that we have a nice PyPI
website.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 setup.py |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index e9a1088..ef65124 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
+# Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation.
 # Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp>
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,11 +15,19 @@
 # limitations under the License.
 
 import os
+import sys
 
 from setuptools import find_packages
 from setuptools import setup
 
-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.'
+doing_bdist = any(arg.startswith('bdist') for arg in sys.argv[1:])
+
+long_description = open('README.rst').read() + '\n\n'
+
+if doing_bdist:
+    start = long_description.find('=\n') + 2
+    long_description = long_description[
+        start:long_description.find('\n\n\n', start)]
 
 classifiers = [
     'License :: OSI Approved :: Apache Software License',
-- 
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

Reply via email to