diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-07-30 17:41:04 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-08-01 17:47:56 +0900 |
commit | 193a0496c19766b17dffbb10e0f9d7123e66ad2d (patch) | |
tree | 4dcde8de727d709c13f93d7f74e18b8635655f0b /setup.py | |
parent | f7219a77df6711fca7374119bfc56ac2e13eefbd (diff) |
use d2to1 and pbr for packaging
- distutils2-like setup.cfg files for a package's metadata
- avoid absolute '/etc/ryu/' path for our config file
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 51 |
1 files changed, 4 insertions, 47 deletions
@@ -14,52 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -import sys +import setuptools -from setuptools import find_packages -from setuptools import setup -from ryu import version -from ryu import utils - -requires = utils.parse_requirements() - -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 = [ - 'Development Status :: 5 - Production/Stable', - 'License :: OSI Approved :: Apache Software License', - 'Topic :: System :: Networking', - 'Natural Language :: English', - 'Programming Language :: Python', - 'Operating System :: Unix', -] - -if sys.platform == 'win32': - data_files = [('etc/ryu', ['etc/ryu/ryu.conf'])] -else: - data_files = [('/etc/ryu', ['etc/ryu/ryu.conf'])] - -setup(name='ryu', - version=version, - description=("Ryu Network Operating System"), - long_description=long_description, - classifiers=classifiers, - keywords='openflow openvswitch openstack', - url='http://osrg.github.io/ryu/', - author='Ryu project team', - author_email='ryu-devel@lists.sourceforge.net', - install_requires=requires, - license='Apache License 2.0', - packages=find_packages(), - scripts=['bin/ryu-manager', ], - data_files=data_files, - include_package_data=True, - ) +setuptools.setup(name='ryu', + setup_requires=['d2to1', 'pbr'], + d2to1=True) |