setup.py 2.44 KB
Newer Older
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
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
# OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# ==================================================================================================


import os
from setuptools import setup, find_packages

def read(fname):
QuanluZhang's avatar
QuanluZhang committed
26
    return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
27
28

setup(
Gems Guo's avatar
Gems Guo committed
29
    name = 'nni',
goooxu's avatar
goooxu committed
30
    version = '999.0.0-developing',
31
32
33
    author = 'Microsoft NNI Team',
    author_email = 'nni@microsoft.com',
    description = 'Neural Network Intelligence project',
QuanluZhang's avatar
QuanluZhang committed
34
    long_description = read('README.md'),
35
    license = 'MIT',
36
    url = 'https://github.com/Microsoft/nni',
37
38
39
40

    packages = find_packages('src/sdk/pynni', exclude=['tests']) + find_packages('tools'),
    package_dir = {
        'nni': 'src/sdk/pynni/nni',
Gems Guo's avatar
Gems Guo committed
41
42
        'nni_annotation': 'tools/nni_annotation',
        'nni_cmd': 'tools/nni_cmd',
SparkSnail's avatar
SparkSnail committed
43
44
        'nni_trial_tool':'tools/nni_trial_tool',
        'nni_gpu_tool':'tools/nni_gpu_tool'
45
    },
46
    package_data = {'nni': ['**/requirements.txt']},
47
48
49
    python_requires = '>=3.5',
    install_requires = [
        'astor',
QuanluZhang's avatar
QuanluZhang committed
50
        'hyperopt',
51
52
53
        'json_tricks',
        'numpy',
        'psutil',
54
        'ruamel.yaml',
55
        'requests',
56
        'scipy',
57
        'schema',
58
        'PythonWebHDFS',
59
60
        'colorama',
        'sklearn'
61
62
    ],

SparkSnail's avatar
SparkSnail committed
63
64
65
66
    entry_points = {
        'console_scripts' : [
            'nnictl = nni_cmd.nnictl:parse_args'
        ]
67
68
    }
)