-
Notifications
You must be signed in to change notification settings - Fork 36
/
setup.py
51 lines (43 loc) · 1.51 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
# -*- coding: utf-8 -*-
import os
from subprocess import Popen, PIPE
from distutils.core import setup
import tfdeploy as td
readme = os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md")
if os.path.isfile(readme):
cmd = "pandoc --from=markdown --to=rst " + readme
p = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True, executable="/bin/bash")
out, err = p.communicate()
if p.returncode != 0:
print("pandoc conversion failed: " + err)
long_description = out
else:
long_description = ""
keywords = [
"tensorflow", "deploy", "export", "dump", "numpy", "model", "predict", "evaluate", "function",
"method"
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
"Topic :: Scientific/Engineering :: Artificial Intelligence"
]
setup(
name = td.__name__,
version = td.__version__,
author = td.__author__,
description = td.__doc__.strip(),
license = td.__license__,
url = td.__contact__,
py_modules = [td.__name__],
keywords = keywords,
classifiers = classifiers,
long_description = long_description or td.__doc__.strip()
)