forked from NASA-AMMOS/AIT-Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (82 loc) · 2.93 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT)
# Bespoke Link to Instruments and Small Satellites (BLISS)
#
# Copyright 2017, by the California Institute of Technology. ALL RIGHTS
# RESERVED. United States Government Sponsorship acknowledged. Any
# commercial use must be negotiated with the Office of Technology Transfer
# at the California Institute of Technology.
#
# This software may be subject to U.S. export control laws. By accepting
# this software, the user agrees to comply with all applicable U.S. export
# laws and regulations. User has the responsibility to obtain export licenses,
# or other export authority as may be required before exporting such
# information to foreign countries or providing access to foreign persons.
import io
from os import path
from setuptools import setup, find_packages
from setuptools.command.develop import develop
import os
import shutil
description = "Python-based software suite developed to handle Ground Data System (GDS), " \
"Electronic Ground Support Equipment (EGSE), commanding, telemetry uplink/downlink, " \
"and sequencing for JPL International Space Station and CubeSat Missions"
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with io.open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
class DevWithGithooks(develop):
def run(self):
develop.run(self)
if path.exists('.git/hooks'):
shutil.copy('./build/githooks/pre-commit', '.git/hooks')
setup(
name = 'ait-core',
version = '1.4.0',
description = description,
long_description = long_description,
long_description_content_type = 'text/x-rst',
url = 'https://github.com/NASA-AMMOS/AIT-Core',
packages = find_packages(exclude=['tests']),
author = 'AMMOS Instrument Toolkit Development Team',
author_email = '[email protected]',
namespace_packages = ['ait'],
include_package_data = True,
package_data = {
'ait.core': ['data/*.json']
},
install_requires = [
'bottle==0.12.9',
'jsonschema==2.5.1',
'pyyaml==3.11',
'requests>=2.17.0',
'gevent==1.1.2',
'gevent-websocket==0.9.5',
'pyzmq==17.1.2'
],
extras_require = {
'docs': [
'Sphinx==1.7.2',
'sphinx_rtd_theme',
'sphinxcontrib-httpdomain'
],
'tests': [
'nose',
'coverage',
'mock',
'pylint'
],
},
entry_points = {
'console_scripts': [
'{}=ait.core.bin.{}:main'.format(
f.split('.')[0].replace('_', '-'),
f.split('.')[0])
for f in os.listdir('./ait/core/bin')
if f.endswith('.py') and
f != '__init__.py'
]
},
cmdclass = {
'develop': DevWithGithooks
}
)