setup.py 9.42 KB
Newer Older
André Anjos's avatar
André Anjos committed
1
#!/usr/bin/env python
André Anjos's avatar
André Anjos committed
2
# vim: set fileencoding=utf-8 :
André Anjos's avatar
André Anjos committed
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

###############################################################################
#                                                                             #
# Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/           #
# Contact: beat.support@idiap.ch                                              #
#                                                                             #
# This file is part of the beat.cmdline module of the BEAT platform.          #
#                                                                             #
# Commercial License Usage                                                    #
# Licensees holding valid commercial BEAT licenses may use this file in       #
# accordance with the terms contained in a written agreement between you      #
# and Idiap. For further information contact tto@idiap.ch                     #
#                                                                             #
# Alternatively, this file may be used under the terms of the GNU Affero      #
# Public License version 3 as published by the Free Software and appearing    #
# in the file LICENSE.AGPL included in the packaging of this file.            #
# The BEAT platform is distributed in the hope that it will be useful, but    #
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY  #
# or FITNESS FOR A PARTICULAR PURPOSE.                                        #
#                                                                             #
# You should have received a copy of the GNU Affero Public License along      #
# with the BEAT platform. If not, see http://www.gnu.org/licenses/.           #
#                                                                             #
###############################################################################


from setuptools import setup, find_packages

André Anjos's avatar
André Anjos committed
31
32
33
34
def load_requirements(f):
  retval = [str(k.strip()) for k in open(f, 'rt')]
  return [k for k in retval if k and k[0] not in ('#', '-')]

André Anjos's avatar
André Anjos committed
35
36
37
38
39
# The only thing we do in this file is to call the setup() function with all
# parameters that define our package.
setup(

    name='beat.cmdline',
André Anjos's avatar
André Anjos committed
40
41
    version=open("version.txt").read().rstrip(),
    description='Command-line client for the BEAT platform',
André Anjos's avatar
André Anjos committed
42
43
44
45
46
47
48
49
50
51
    url='https://gitlab.idiap.ch/beat/beat.cmdline',
    license='AGPLv3',
    author='Idiap Research Institute',
    author_email='beat.support@idiap.ch',
    long_description=open('README.rst').read(),

    # This line is required for any distutils based packaging.
    packages=find_packages(),
    include_package_data=True,
    zip_safe=False,
André Anjos's avatar
André Anjos committed
52
    install_requires=load_requirements('requirements.txt'),
André Anjos's avatar
André Anjos committed
53
54

    entry_points={
Philip ABBET's avatar
Philip ABBET committed
55
        'console_scripts': [
56
57
58
59
            'beat = beat.cmdline.scripts.main_cli:main',
        ],
        'beat.cli': [
            'config = beat.cmdline.config:config',
60
61
            'status = beat.cmdline.status:status',
            'cache = beat.cmdline.cache:cache',
62
63
            'databases = beat.cmdline.databases:databases',
            'dataformats = beat.cmdline.dataformats:dataformats',
64
            'libraries = beat.cmdline.libraries:libraries',
65
            'algorithms = beat.cmdline.algorithms:algorithms',
66
            'plotters = beat.cmdline.plotters:plotters',
67
            'plotterparameters = beat.cmdline.plotterparameters:plotterparameters',
68
            'toolchains = beat.cmdline.toolchains:toolchains',
69
            'experiments = beat.cmdline.experiments:experiments',
70
71
72
73
74
        ],
        'beat.config.cli': [
            'show = beat.cmdline.config:show',
            'get = beat.cmdline.config:get',
            'set = beat.cmdline.config:set',
André Anjos's avatar
André Anjos committed
75
        ],
76
77
78
79
80
        'beat.cache.cli': [
            'clear = beat.cmdline.cache:clear',
            'info = beat.cmdline.cache:info',
            'view = beat.cmdline.cache:view',
        ],
81
        'beat.databases.cli': [
82
            'list = beat.cmdline.databases:list',
83
84
            'path = beat.cmdline.databases:path',
            'edit = beat.cmdline.databases:edit',
85
86
87
88
89
90
91
92
93
            'check = beat.cmdline.databases:check',
            'pull = beat.cmdline.databases:pull',
            'push = beat.cmdline.databases:push',
            'diff = beat.cmdline.databases:diff',
            'status = beat.cmdline.databases:status',
            'version = beat.cmdline.databases:version',
            'index = beat.cmdline.databases:index',
            'view = beat.cmdline.databases:view',
        ],
94
        'beat.dataformats.cli': [
95
            'list = beat.cmdline.dataformats:list',
96
97
            'path = beat.cmdline.dataformats:path',
            'edit = beat.cmdline.dataformats:edit',
98
99
100
101
102
103
104
105
106
107
108
109
            'check = beat.cmdline.dataformats:check',
            'pull = beat.cmdline.dataformats:pull',
            'push = beat.cmdline.dataformats:push',
            'diff = beat.cmdline.dataformats:diff',
            'status = beat.cmdline.dataformats:status',
            'create = beat.cmdline.dataformats:create',
            'version = beat.cmdline.dataformats:version',
            'fork = beat.cmdline.dataformats:fork',
            'rm = beat.cmdline.dataformats:rm',
        ],
        'beat.libraries.cli': [
            'list = beat.cmdline.libraries:list',
110
111
            'path = beat.cmdline.libraries:path',
            'edit = beat.cmdline.libraries:edit',
112
113
114
115
116
117
118
119
120
121
            'check = beat.cmdline.libraries:check',
            'pull = beat.cmdline.libraries:pull',
            'push = beat.cmdline.libraries:push',
            'diff = beat.cmdline.libraries:diff',
            'status = beat.cmdline.libraries:status',
            'create = beat.cmdline.libraries:create',
            'version = beat.cmdline.libraries:version',
            'fork = beat.cmdline.libraries:fork',
            'rm = beat.cmdline.libraries:rm',
        ],
122
123
        'beat.algorithms.cli': [
            'list = beat.cmdline.algorithms:list',
124
125
            'path = beat.cmdline.algorithms:path',
            'edit = beat.cmdline.algorithms:edit',
126
127
128
129
130
131
132
133
134
            'check = beat.cmdline.algorithms:check',
            'pull = beat.cmdline.algorithms:pull',
            'push = beat.cmdline.algorithms:push',
            'diff = beat.cmdline.algorithms:diff',
            'status = beat.cmdline.algorithms:status',
            'create = beat.cmdline.algorithms:create',
            'version = beat.cmdline.algorithms:version',
            'fork = beat.cmdline.algorithms:fork',
            'rm = beat.cmdline.algorithms:rm',
135
            'execute = beat.cmdline.algorithms:execute',
136
        ],
137
138
        'beat.plotters.cli': [
            'list = beat.cmdline.plotters:list',
139
140
            'path = beat.cmdline.plotters:path',
            'edit = beat.cmdline.plotters:edit',
141
142
143
            'check = beat.cmdline.plotters:check',
            'pull = beat.cmdline.plotters:pull',
            'plot = beat.cmdline.plotters:plot',
144
145
146
147
148
149
150
            'create = beat.cmdline.plotters:create',
            'version = beat.cmdline.plotters:version',
            'fork = beat.cmdline.plotters:fork',
            'rm = beat.cmdline.plotters:rm',
        ],
        'beat.plotterparameters.cli': [
            'list = beat.cmdline.plotterparameters:list',
151
152
            'path = beat.cmdline.plotterparameters:path',
            'edit = beat.cmdline.plotterparameters:edit',
153
154
155
156
157
158
            'check = beat.cmdline.plotterparameters:check',
            'pull = beat.cmdline.plotterparameters:pull',
            'create = beat.cmdline.plotterparameters:create',
            'version = beat.cmdline.plotterparameters:version',
            'fork = beat.cmdline.plotterparameters:fork',
            'rm = beat.cmdline.plotterparameters:rm',
159
        ],
160
161
        'beat.toolchains.cli': [
            'list = beat.cmdline.toolchains:list',
162
163
            'path = beat.cmdline.toolchains:path',
            'edit = beat.cmdline.toolchains:edit',
164
165
166
167
168
169
170
171
172
173
174
            'check = beat.cmdline.toolchains:check',
            'pull = beat.cmdline.toolchains:pull',
            'push = beat.cmdline.toolchains:push',
            'diff = beat.cmdline.toolchains:diff',
            'status = beat.cmdline.toolchains:status',
            'create = beat.cmdline.toolchains:create',
            'version = beat.cmdline.toolchains:version',
            'fork = beat.cmdline.toolchains:fork',
            'rm = beat.cmdline.toolchains:rm',
            'draw = beat.cmdline.toolchains:draw',
        ],
175
176
177
178
        'beat.experiments.cli': [
            'run = beat.cmdline.experiments:run',
            'caches = beat.cmdline.experiments:caches',
            'list = beat.cmdline.experiments:list',
179
180
            'path = beat.cmdline.experiments:path',
            'edit = beat.cmdline.experiments:edit',
181
182
183
184
185
186
187
188
189
190
            'check = beat.cmdline.experiments:check',
            'pull = beat.cmdline.experiments:pull',
            'push = beat.cmdline.experiments:push',
            'diff = beat.cmdline.experiments:diff',
            'status = beat.cmdline.experiments:status',
            'fork = beat.cmdline.experiments:fork',
            'rm = beat.cmdline.experiments:rm',
            'draw = beat.cmdline.experiments:draw',
            'plot = beat.cmdline.experiments:plot',
        ],
Philip ABBET's avatar
Philip ABBET committed
191
    },
André Anjos's avatar
André Anjos committed
192
193

    classifiers = [
Philip ABBET's avatar
Philip ABBET committed
194
        'Framework :: BEAT',
André Anjos's avatar
André Anjos committed
195
196
197
198
199
200
201
        'Development Status :: 5 - Production/Stable',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU Affero General Public License v3',
        'Natural Language :: English',
        'Programming Language :: Python',
        'Programming Language :: Python :: 3',
        'Topic :: Software Development :: Libraries :: Python Modules',
André Anjos's avatar
André Anjos committed
202
203
    ],
)