2023-05-06 14:04:36 +01:00
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
from os import path
|
|
|
|
|
|
|
|
|
|
from setuptools import setup, find_namespace_packages # This should be place at top!
|
|
|
|
|
|
|
|
|
|
ROOT_DIR = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_mac():
|
|
|
|
|
return sys.platform == "darwin"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def is_win():
|
|
|
|
|
return sys.platform == "win32"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert sys.version_info.major == 3 and 6 <= sys.version_info.minor < 12, \
|
|
|
|
|
"python version >= 3.6, <3.12 is required"
|
|
|
|
|
|
|
|
|
|
this_directory = path.abspath(path.dirname(__file__))
|
|
|
|
|
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|
|
|
|
long_description = f.read()
|
|
|
|
|
packages = find_namespace_packages(
|
|
|
|
|
exclude=("docs", "docs.*", "documentation", "documentation.*", "build.*"))
|
|
|
|
|
print("We will install the following packages: ", packages)
|
|
|
|
|
|
|
|
|
|
""" ===== Remember to modify the EDITION at first ====="""
|
|
|
|
|
version = "0.0.1"
|
|
|
|
|
|
|
|
|
|
install_requires = [
|
2023-10-18 14:32:01 -07:00
|
|
|
"numpy>=1.23.0",
|
2023-05-06 14:04:36 +01:00
|
|
|
"matplotlib",
|
|
|
|
|
"pandas",
|
|
|
|
|
"tqdm",
|
2023-10-04 13:21:53 +01:00
|
|
|
"metadrive-simulator>=0.4.1.2",
|
2024-12-02 22:08:35 +01:00
|
|
|
"geopandas<1.0",
|
2023-08-25 18:35:46 +01:00
|
|
|
"yapf",
|
2023-05-06 14:36:44 +01:00
|
|
|
"shapely"
|
2023-05-06 14:04:36 +01:00
|
|
|
]
|
|
|
|
|
|
2023-08-25 18:35:46 +01:00
|
|
|
doc = [
|
|
|
|
|
"sphinxemoji",
|
|
|
|
|
"sphinx",
|
|
|
|
|
"sphinx_rtd_theme",
|
|
|
|
|
]
|
|
|
|
|
|
2023-06-10 18:56:33 +01:00
|
|
|
train_requirement = [
|
2023-08-25 18:35:46 +01:00
|
|
|
"ray[rllib]==1.0.0",
|
|
|
|
|
# "torch",
|
|
|
|
|
"wandb==0.12.1",
|
|
|
|
|
"aiohttp==3.6.0",
|
|
|
|
|
"gymnasium",
|
|
|
|
|
"tensorflow",
|
2023-10-18 14:32:01 -07:00
|
|
|
"tensorflow_probability"
|
|
|
|
|
]
|
2023-06-10 18:56:33 +01:00
|
|
|
|
2023-10-18 14:32:01 -07:00
|
|
|
# Remove the dependencies to real-world dataset. Instead, we will point the user to the installation guideline
|
|
|
|
|
# in the original sources.
|
|
|
|
|
#
|
2023-10-04 16:46:39 +01:00
|
|
|
# waymo = ["waymo-open-dataset-tf-2-11-0", "tensorflow==2.11.0"]
|
|
|
|
|
#
|
|
|
|
|
# nuplan = ["nuplan-devkit>=1.2.0",
|
|
|
|
|
# "bokeh==2.4",
|
|
|
|
|
# "hydra-core",
|
|
|
|
|
# "chardet",
|
|
|
|
|
# "pyarrow",
|
|
|
|
|
# "aiofiles",
|
|
|
|
|
# "retry",
|
|
|
|
|
# "boto3",
|
|
|
|
|
# "aioboto3"]
|
|
|
|
|
#
|
|
|
|
|
# nuscenes = ["nuscenes-devkit>=1.1.10"]
|
2023-08-27 11:20:51 +01:00
|
|
|
|
2023-05-06 14:04:36 +01:00
|
|
|
setup(
|
|
|
|
|
name="scenarionet",
|
2023-06-10 18:56:33 +01:00
|
|
|
python_requires='>=3.8', # do version check with assert
|
2023-05-06 14:04:36 +01:00
|
|
|
version=version,
|
|
|
|
|
description="Scalable Traffic Scenario Management System",
|
|
|
|
|
url="https://github.com/metadriverse/ScenarioNet",
|
|
|
|
|
author="MetaDrive Team",
|
|
|
|
|
author_email="quanyili0057@gmail.com, pzh@cs.ucla.edu",
|
|
|
|
|
packages=packages,
|
|
|
|
|
install_requires=install_requires,
|
2023-06-10 18:56:33 +01:00
|
|
|
extras_require={
|
|
|
|
|
"train": train_requirement,
|
2023-08-27 11:20:51 +01:00
|
|
|
"doc": doc,
|
2023-10-04 16:46:39 +01:00
|
|
|
# "waymo": waymo,
|
|
|
|
|
# "nuplan": nuplan,
|
|
|
|
|
# "nuscenes": nuscenes,
|
|
|
|
|
# "all": nuscenes + waymo + nuplan
|
2023-06-10 18:56:33 +01:00
|
|
|
},
|
2023-05-06 14:04:36 +01:00
|
|
|
include_package_data=True,
|
|
|
|
|
license="Apache 2.0",
|
|
|
|
|
long_description=long_description,
|
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
|
)
|