This repository has been archived by the owner on Sep 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
71 lines (59 loc) · 1.85 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
64
65
66
67
68
69
70
#!/usr/bin/env python
from setuptools import setup
import sys
try:
import py2exe
except ImportError:
pass
from glob import glob
from exoline import __version__ as version
with open('requirements.txt') as f:
required = f.read().splitlines()
import platform
if platform.system() == "Windows":
data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))]
else:
data_files = []
try:
from collections import OrderedDict
except ImportError:
required.append('ordereddict>=1.1')
try:
import importlib
except ImportError:
required.append('importlib>=1.0.2')
if sys.version_info < (3, 0):
required.append('unicodecsv==0.9.4')
if sys.version_info < (2, 7, 9):
# https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning
required = required + ['pyopenssl', 'ndg-httpsclient', 'pyasn1']
import os
long_description = open('README.md').read() + '\n\n' + open('HISTORY.md').read()
if os.path.exists('README.txt'):
# read rst version if it exists
# (usually because register.py was run)
long_description = open('README.txt').read()
setup(
name='exoline',
version=version,
url = 'http://github.com/exosite/exoline',
author = 'Dan Weaver',
author_email = '[email protected]',
description = 'Command line interface for Exosite platform.',
long_description = long_description,
packages=['exoline', 'exoline.plugins'],
package_dir={'exoline': 'exoline', 'plugins': 'exoline/plugins'},
scripts=['bin/exo', 'bin/exoline'],
keywords=['exosite', 'onep', 'one platform', 'm2m', 'iot', 'cli'],
install_requires=required,
zip_safe=False,
#always_unzip=True,
console=['exoline/exo.py'],
data_files=data_files,
options={
'py2exe':
{
'includes': ['yaml', 'exoline']
}
}
)