setup.py 1.61 KB
Newer Older
liuzhe-lz's avatar
liuzhe-lz committed
1
2
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
3
4

import os
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from setuptools import setup


version = '999.0.0-developing'


def _find_python_packages():
    packages = []
    for dirpath, dirnames, filenames in os.walk('nni'):
        if '/__pycache__' not in dirpath:
            packages.append(dirpath.replace('/', '.'))
    return sorted(packages) + ['nni_node']

def _find_node_files():
    files = []
    for dirpath, dirnames, filenames in os.walk('nni_node'):
        for filename in filenames:
            files.append((dirpath + '/' + filename)[len('nni_node/'):])
    files.remove('__init__.py')
    return sorted(files)
25
26
27


setup(
Gems Guo's avatar
Gems Guo committed
28
    name = 'nni',
29
    version = version,
30
31
32
    author = 'Microsoft NNI Team',
    author_email = 'nni@microsoft.com',
    description = 'Neural Network Intelligence project',
33
    long_description = open('README.md', encoding='utf-8').read(),
34
    license = 'MIT',
35
    url = 'https://github.com/Microsoft/nni',
36

37
38
39
40
    packages = _find_python_packages(),
    package_data = {
        'nni': ['**/requirements.txt'],
        'nni_node': _find_node_files()
41
    },
42

43
    python_requires = '>=3.6',
44
45
    install_requires = [
        'astor',
Yuge Zhang's avatar
Yuge Zhang committed
46
        'hyperopt==0.1.2',
47
        'json_tricks',
SparkSnail's avatar
SparkSnail committed
48
        'netifaces',
49
50
        'numpy',
        'psutil',
51
        'ruamel.yaml',
52
        'requests',
SparkSnail's avatar
SparkSnail committed
53
        'responses',
54
        'scipy',
55
        'schema',
56
        'PythonWebHDFS',
57
        'colorama',
58
        'scikit-learn>=0.23.2',
59
60
        'pkginfo',
        'websockets'
61
62
    ],

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