Commit b475b125 authored by Gems's avatar Gems Committed by goooxu
Browse files

Integrate nni-sdk into nni pypi package

parent cb67a69c
......@@ -32,7 +32,7 @@ The tool dispatches and runs trial jobs generated by tuning algorithms to search
<img src="https://user-images.githubusercontent.com/44491713/51381727-e3d0f780-1b4f-11e9-96ab-d26b9198ba65.png"/>
</td>
<td>
<b>Training Service Extensions</b>
<b>Training Services</b>
<img src="https://user-images.githubusercontent.com/44491713/51381727-e3d0f780-1b4f-11e9-96ab-d26b9198ba65.png"/>
</td>
</tr>
......
......@@ -30,8 +30,6 @@ build:
sed -ie 's/$(NNI_VERSION_TEMPLATE)/$(NNI_VERSION_VALUE)/' $(CWD)nni/package.json
cd $(CWD)nni && yarn --prod
cd $(CWD) && sed -ie 's/$(NNI_VERSION_TEMPLATE)/$(NNI_VERSION_VALUE)/' setup.py && python3 setup.py bdist_wheel -p $(WHEEL_SPEC)
cd $(CWD)../../src/sdk/pynni && sed -ie 's/$(NNI_VERSION_TEMPLATE)/$(NNI_VERSION_VALUE)/' setup.py && python3 setup.py bdist_wheel
cp -r $(CWD)../../src/sdk/pynni/dist/*.whl $(CWD)dist
cd $(CWD)
.PHONY: upload
......@@ -41,7 +39,6 @@ upload:
.PHONY: clean
clean:
rm -rf $(CWD)../../src/sdk/pynni/dist
rm -rf $(CWD)build
rm -rf $(CWD)dist
rm -rf $(CWD)nni
......
# 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 setuptools
import platform
from os import walk, path
......@@ -28,21 +48,26 @@ setuptools.setup(
long_description_content_type = 'text/markdown',
license = 'MIT',
url = 'https://github.com/Microsoft/nni',
packages = setuptools.find_packages('../../tools'),
packages = setuptools.find_packages('../../tools') + setuptools.find_packages('../../src/sdk/pynni')
package_dir = {
'nni_annotation': '../../tools/nni_annotation',
'nni_cmd': '../../tools/nni_cmd',
'nni_trial_tool':'../../tools/nni_trial_tool'
'nni_trial_tool': '../../tools/nni_trial_tool',
'nni': '../../src/sdk/pynni/nni'
},
python_requires = '>=3.5',
install_requires = [
'nni-sdk',
'schema',
'pyyaml',
'psutil',
'requests',
'astor',
'pyhdfs'
'pyhdfs',
'hyperopt',
'json_tricks',
'numpy',
'scipy',
'coverage'
],
classifiers = [
'Programming Language :: Python :: 3',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment