-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpypi.txt
62 lines (35 loc) · 1.11 KB
/
pypi.txt
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
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
Uploading package to pypi
=========================
* https://jonemo.github.io/neubertify/2017/09/13/publishing-your-first-pypi-package/
A- Create accounts in pypi.org
https://testpypi.python.org/pypi/
https://pypi.org/account/register/
B- Create file ~/.pypirc
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository=https://upload.pypi.org/legacy/
username=coderazzi
password=***********
[pypitest]
repository=https://test.pypi.org/legacy/
username=coderazzi
password=***********
C- Install twine
pip install twine
Next steps needed always
1- Edit file setup.py
Version must be modified !!
2- Check that the code conforms to standards:
pycodestyle src/optmatch.py src/setup.py test/tests.py
(sudo apt install pycodestyle)
3- Create the package
(cd src && python setup.py sdist)
this creates the file src/dist/optmatch-0.9.2.tar.gz
4- Upload the package
twine upload -r pypitest src/dist/optmatch-0.9.2.tar.gz
# check version in https://test.pypi.org/project/optmatch
twine upload -r pypi src/dist/optmatch-0.9.2.tar.gz
# check it in https://pypi.org/project/optmatch/