import os
from skbuild import setup
import version
SUMO_VERSION = version.get_pep440_version()
sumo_dir = os.path.abspath(os.path.dirname(__file__))
while not os.path.exists(os.path.join(sumo_dir, 'README.md')) and sumo_dir != os.path.dirname(sumo_dir):
sumo_dir = os.path.dirname(sumo_dir)
setup(
name='eclipse-sumo',
version=SUMO_VERSION,
url='https://sumo.dlr.de/',
download_url='https://sumo.dlr.de/download',
author='DLR and contributors',
author_email='[email protected]',
license='EPL-2.0',
description=("A microscopic, multi-modal traffic simulation package"),
long_description=open(os.path.join(sumo_dir, 'README.md')).read(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Programming Language :: C++',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
keywords='traffic simulation traci sumo',
packages=['sumo'],
package_dir={'': 'tools/build_config'},
cmake_install_dir='tools/build_config/sumo',
entry_points={
'console_scripts': [
'activitygen=sumo:activitygen',
'dfrouter=sumo:dfrouter',
'duarouter=sumo:duarouter',
'emissionsDrivingCycle=sumo:emissionsDrivingCycle',
'emissionsMap=sumo:emissionsMap',
'jtrrouter=sumo:jtrrouter',
'marouter=sumo:marouter',
'netconvert=sumo:netconvert',
'netedit=sumo:netedit',
'netgenerate=sumo:netgenerate',
'od2trips=sumo:od2trips',
'polyconvert=sumo:polyconvert',
'sumo=sumo:sumo',
'sumo-gui=sumo:sumo_gui',
]
},
)