-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
45 lines (38 loc) · 1.24 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# encoding=utf-8
import re
from os.path import join, dirname
from setuptools import setup, find_packages
def read_file_content(filepath):
with open(join(dirname(__file__), filepath), encoding="utf8") as fp:
return fp.read()
def find_version(filepath):
content = read_file_content(filepath)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
VERSION = find_version(join("pcdet_open", "__init__.py"))
long_description = read_file_content("README.md")
setup(
name="pcdet-open",
version=VERSION,
url="https://github.com/xtreme1-io/point-cloud-object-detection.git",
author="Dasheng Ji",
author_email="jidasheng@basicfinder.com",
description="Point cloud object detection",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
include_package_data=True,
install_requires=[
"numpy",
"requests",
"python-lzf",
"scikit-learn",
"tornado",
],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
)