-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreadme_pypi_commands.txt
67 lines (43 loc) · 1.74 KB
/
readme_pypi_commands.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
63
64
65
66
67
###################################################################################################################
NOTE:
#####
This readme is only for "contributors" of the project.
You may use it as a guide in case you want to create variants of this tool on another PyPI or Test PyPI repository.
But then you need to change the name of your tool and create the corresponding projects.
###################################################################################################################
######################
for test in test.pypi:
######################
(inside folder where the setup.py file is in)
pip install -e .
python3 -m build
twine check dist/*
-------------------------------------------
type: ipradar2 (to test it locally first..)
-------------------------------------------
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
user: __token__
pwd: (paste token here)
now copy the text from here:
https://test.pypi.org/project/ipradar2/0.0.3/
e.g.:
pip install -i https://test.pypi.org/simple/ ipradar2==0.0.3
and paste it on the machine you want to test the tool
(you may need to repeat if the first try fails!)
now the command ipradar2 is available for use
------------------------------------------------------------------------------
####################
for release in pypi:
####################
(inside folder where the setup.py file is in)
python3 setup.py sdist bdist_wheel
twine check dist/*
twine upload dist/*
enter user and password (or token)
now the pypi project is available here:
https://pypi.org/project/ipradar2
install on the machine you want to use the tool with:
pip install ipradar2
check version with:
pip show ipradar2
now the command ipradar2 is available for use