Skip to content

Commit 59751bf

Browse files
authored
Create setup.py
1 parent 176041c commit 59751bf

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

setup.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
from pathlib import Path
2+
3+
import setuptools
4+
5+
package_dir = 'python-sdk'
6+
setup_dir = Path(__file__).parent / 'setup'
7+
8+
# Since nuScenes 2.0 the requirements are stored in separate files.
9+
requirements = []
10+
for req_path in (setup_dir / 'requirements.txt').read_text().splitlines():
11+
if req_path.startswith('#'):
12+
continue
13+
req_path = req_path.replace('-r ', '')
14+
requirements += (setup_dir / req_path).read_text().splitlines()
15+
16+
17+
# Get subfolders recursively
18+
19+
setuptools.setup(
20+
name='nuscenes-devkit',
21+
version='1.1.11',
22+
author='Holger Caesar, Oscar Beijbom, Qiang Xu, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, '
23+
'Sergi Widjaja, Kiwoo Shin, Caglayan Dicle, Freddy Boulton, Whye Kit Fong, Asha Asvathaman, Lubing Zhou '
24+
'et al.',
25+
author_email='[email protected]',
26+
description='The official devkit of the nuScenes dataset (www.nuscenes.org).',
27+
long_description=Path('README.md').read_text(),
28+
long_description_content_type='text/markdown',
29+
url='https://github.com/nutonomy/nuscenes-devkit',
30+
python_requires='>=3.6',
31+
install_requires=requirements,
32+
packages=setuptools.find_packages(package_dir),
33+
package_dir={'': package_dir},
34+
package_data={'': ['*.json']},
35+
include_package_data=True,
36+
classifiers=[
37+
'Programming Language :: Python :: 3.6',
38+
'Operating System :: OS Independent',
39+
],
40+
license='cc-by-nc-sa-4.0'
41+
)

0 commit comments

Comments
 (0)