Open Kilda Java Documentation
setup.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import functools
4 import os
5 from setuptools import find_packages
6 import sys
7 
8 from setuptools import setup
9 
10 import kilda.mininet
11 
12 project_root = os.path.dirname(__file__)
13 project_root = os.path.abspath(project_root)
14 project_root = os.path.normpath(project_root)
15 
16 project_path = functools.partial(os.path.join, project_root)
17 
18 requirements = open(project_path('requirements.txt')).readlines()
19 
20 needs_pytest = bool({'pytest', 'test', 'ptr'}.intersection(sys.argv))
21 pytest_runner = ['pytest-runner'] if needs_pytest else []
22 
23 setup(
24  name='kilda-mininet',
25  version=kilda.mininet.__version__,
26  description='link load generator',
27  long_description=open(project_path('README.rst')).read(),
28  author='Dmitry Bogun',
29  author_email='bogun.dmitriy@gmail.com',
30  packages=find_packages(),
31  setup_requires=pytest_runner,
32  tests_require=['pytest'],
33  install_requires=requirements,
34  entry_points={
35  'console_scripts': [
36  'kilda-mininet-rest = kilda.mininet.rest:main',
37  'kilda-mininet-flow-tool = kilda.mininet.flow_tool:main']}
38 )
Definition: setup.py:1
project_path
Definition: setup.py:16