summaryrefslogtreecommitdiffstats
path: root/python-dcae-policy/nexus_pypi.md
blob: 7c27679fb95cb7617235c4e26a5e74130b84c4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# setting up connection to nexus server with pypi

1. request account in nexus repo server with update privilege to pypi repo.

result: **url + username + password**

2. create/update `~/.pypirc` with proper nexus **url + username + password**
```bash
[distutils]
index-servers =
    pypi
    nexus

[pypi]
username:
password:

[nexus]
repository:https://YOUR_NEXUS_PYPI_SERVER/
username:<username>
password:<password>
```

3. run `./dev_run.sh register` command to register your python package into nexus pypi repo

4. run `./dev_run.sh upload` command to upload your python package into nexus pypi repo