This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from Microsoft/master
merge master
- Loading branch information
Showing
7 changed files
with
130 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,81 @@ | ||
# 用于 NNI 的 python 包索引 (pypi) | ||
|
||
## 1. 说明 | ||
|
||
这是用于 NNI 项目的 PyPI 生成和上传的工具。 | ||
|
||
## 2.准备环境 | ||
|
||
在生成和上传 NNI 包之前,确保使用了下列环境。 | ||
## **Linux** | ||
|
||
Ubuntu 16.04 LTS | ||
make | ||
wget | ||
Python >= 3.5 | ||
Pip | ||
Node.js | ||
Yarn | ||
* **准备环境** | ||
|
||
在生成和上传 NNI 包之前,确保使用了下列环境。 | ||
|
||
Ubuntu 16.04 LTS | ||
make | ||
wget | ||
Python >= 3.5 | ||
Pip | ||
Node.js | ||
Yarn | ||
|
||
|
||
## 2.如何生成 | ||
|
||
```bash | ||
make | ||
``` | ||
|
||
## 3.如何上传 | ||
|
||
### 上传测试包 | ||
* **如何生成** | ||
|
||
```bash | ||
make | ||
``` | ||
|
||
```bash | ||
TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/ make upload | ||
``` | ||
* **如何上传** | ||
|
||
**上传测试包** | ||
|
||
```bash | ||
TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/ make upload | ||
``` | ||
|
||
上传过程中,可能需要输入 https://test.pypi.org 的用户和密码。 | ||
|
||
**上传发布包** | ||
|
||
```bash | ||
make upload | ||
``` | ||
|
||
上传过程中,可能需要输入 https://pypi.org 的用户和密码。 | ||
|
||
上传过程中,可能需要输入 https://test.pypi.org 的用户和密码。 | ||
## **Windows** | ||
|
||
### 上传发布包 | ||
* **准备环境** | ||
|
||
在生成和上传 NNI 包之前,确保使用了下列环境。 | ||
|
||
Windows 10 | ||
powershell | ||
Python >= 3.5 | ||
Pip | ||
Node.js | ||
Yarn | ||
tar | ||
|
||
|
||
```bash | ||
make upload | ||
``` | ||
* **如何生成** | ||
|
||
```bash | ||
powershell ./install.ps1 | ||
``` | ||
|
||
上传过程中,可能需要输入 https://pypi.org 的用户和密码。 | ||
* **如何上传** | ||
|
||
**upload for testing** | ||
|
||
```bash | ||
powershell ./upload.ps1 | ||
``` | ||
|
||
上传过程中,可能需要输入 https://test.pypi.org 的用户和密码。 | ||
|
||
**上传发布包** | ||
|
||
```bash | ||
powershell ./upload.ps1 -test $False | ||
``` | ||
|
||
上传过程中,可能需要输入 https://pypi.org 的用户和密码。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters