README.md 1.33 KB
Newer Older
1
# Python Package Index (PyPI) for NNI
2
3
4

This is the PyPI build and upload tool for NNI project.

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
## **For Linux**

* __Prepare environment__

  Before build and upload NNI package, make sure the below OS and tools are available.
  ```
  Ubuntu 16.04 LTS
  make
  wget
  Python >= 3.5
  Pip
  Node.js
  Yarn
  ```

* __How to build__

  ```bash
  make
  ```

* __How to upload__

  **upload for testing**
  ```bash
  TWINE_REPOSITORY_URL=https://test.pypi.org/legacy/ make upload
  ```
  You may need to input the account and password of https://test.pypi.org during this process.

  **upload for release**
  ```bash
  make upload
  ```
  You may need to input the account and password of https://pypi.org during this process.

## **For Windows**

* __Prepare environment__

  Before build and upload NNI package, make sure the below OS and tools are available.
  ```
  Windows 10
  powershell
  Python >= 3.5
  Pip
  Node.js
  Yarn
  tar
  ```

* __How to build__

  ```bash
  powershell ./install.ps1
  ```

* __How to upload__

  **upload for testing**
  ```bash
  powershell ./upload.ps1
  ```
  You may need to input the account and password of https://test.pypi.org during this process.

  **upload for release**
  ```bash
  powershell ./upload.ps1 -test $False
  ```
  You may need to input the account and password of https://pypi.org during this process.