-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
55 lines (48 loc) · 1.44 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
46
47
48
49
50
51
52
53
54
55
# 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("pcd_tools", "__init__.py"))
long_description = read_file_content("README.md")
setup(
name="pcd-tools",
version=VERSION,
url="https://github.com/xtreme1-io/pcd-tools.git",
author="Dasheng Ji",
author_email="jidasheng@basicfinder.com",
description="PCD tools",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
packages=find_packages(),
include_package_data=True,
install_requires=[
"tornado",
"py-healthcheck",
"numpy",
"scipy",
"requests",
"Pillow",
"python-lzf",
"easydict",
],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
entry_points={
"console_scripts": [
"pcd2png=pcd_tools.pcd2image:main",
"pcd2binary=pcd_tools.pcd_normalize:main",
]
},
)