forked from sourceperl/pyModbusTCP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHOWTO-PyPi
More file actions
26 lines (21 loc) · 675 Bytes
/
HOWTO-PyPi
File metadata and controls
26 lines (21 loc) · 675 Bytes
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
1. build archive with "sudo python setup.py sdist".
2. make upload test: twine upload dist/pyModbusTCP-x.x.x.tar.gz -r pypitest
3. check https://testpypi.python.org/
4. make upload: twine upload dist/pyModbusTCP-x.x.x.tar.gz -r pypi
5. check https://pypi.python.org/
Note:
- install twine with "sudo pip install twine"
- create ~/.pypirc with credentials for pypi and pypitest
"~/.pypirc" example:
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository: https://upload.pypi.org/legacy/
username: myname
password: mypwd
[pypitest]
repository: https://test.pypi.org/legacy/
username: myname
password: mypwd