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='libsumo',
version=SUMO_VERSION,
url='https://sumo.dlr.de/docs/Libsumo.html',
author='DLR and contributors',
author_email='[email protected]',
license='EPL-2.0',
description="The python version of the libsumo API to communicate with the traffic simulation Eclipse SUMO",
long_description=open(os.path.join(sumo_dir, 'README.md')).read(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
],
keywords='traffic simulation traci sumo',
packages=['libsumo'],
package_dir={'': 'tools'},
package_data={'libsumo': ['*.pyd', '*.so', '*.dylib']},
install_requires=['traci>='+SUMO_VERSION, 'eclipse-sumo>='+SUMO_VERSION],
)