-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
63 lines (53 loc) · 2.28 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
56
57
58
59
60
61
62
63
#! /usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from setuptools import setup, find_packages
import os
MAJOR = 0
MINOR = 0
PATCH = 2
PRE_RELEASE = ''
# Use the following formatting: (major, minor, patch, prerelease)
VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
long_description = "tlx2onnx is a toolkit for converting trained model of TensorLayerX to ONNX. \n\n"
long_description += "Usage: export(tlx_model, input_spec=input, path='model.onnx') \n"
long_description += "GitHub: https://github.com/tensorlayer/TLX2ONNX \n"
long_description += "Email: [email protected]"
def req_file(filename, folder=''):
with open(os.path.join(folder, filename)) as f:
content = f.readlines()
return [x.strip() for x in content]
setup(
name="tlx2onnx",
version='.'.join(map(str, VERSION[:3])) + ''.join(VERSION[3:]),
author="TLX2ONNX Contributors",
author_email="[email protected]",
description="a toolkit for converting trained model of TensorLayerX to ONNX.",
long_description=long_description,
long_description_content_type="text/plain",
url="https://github.com/tensorlayer/TLX2ONNX",
packages=find_packages(),
install_requires=req_file("requirements.txt"),
classifiers=[
# How mature is this project? Common values are
# 1 - Planning 2 - Pre-Alpha 3 - Alpha 4 - Beta 5 - Production/Stable 6 - Mature 7 - Inactive
'Development Status :: 3 - Alpha',
# Specify the Python versions you support here.
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
# Pick your license as you wish (should match "license" above)
"License :: OSI Approved :: Apache Software License",
# Indicate what your project relates to
'Topic :: Scientific/Engineering :: Artificial Intelligence',
# Additionnal Settings
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
],
license='Apache 2.0',
)