Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
b475b125
Commit
b475b125
authored
Jan 28, 2019
by
Gems
Committed by
goooxu
Feb 11, 2019
Browse files
Integrate nni-sdk into nni pypi package
parent
cb67a69c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
README.md
README.md
+1
-1
deployment/pypi/Makefile
deployment/pypi/Makefile
+0
-3
deployment/pypi/setup.py
deployment/pypi/setup.py
+29
-4
No files found.
README.md
View file @
b475b125
...
...
@@ -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
Extension
s
</b>
<b>
Training Services
</b>
<img
src=
"https://user-images.githubusercontent.com/44491713/51381727-e3d0f780-1b4f-11e9-96ab-d26b9198ba65.png"
/>
</td>
</tr>
...
...
deployment/pypi/Makefile
View file @
b475b125
...
...
@@ -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
...
...
deployment/pypi/setup.py
View file @
b475b125
# 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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment