Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
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 <fujita.tomonori@lab.ntt.co.jp>
  • Loading branch information
fujita committed Jun 19, 2012
1 parent 8b93eda commit a364a7a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -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',
Expand Down

0 comments on commit a364a7a

Please sign in to comment.