summaryrefslogtreecommitdiffhomepage
path: root/setup.py
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-07-30 17:41:04 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-08-01 17:47:56 +0900
commit193a0496c19766b17dffbb10e0f9d7123e66ad2d (patch)
tree4dcde8de727d709c13f93d7f74e18b8635655f0b /setup.py
parentf7219a77df6711fca7374119bfc56ac2e13eefbd (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.py51
1 files changed, 4 insertions, 47 deletions
diff --git a/setup.py b/setup.py
index 55c2660a..a613f3fb 100644
--- a/setup.py
+++ b/setup.py
@@ -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)