-
Notifications
You must be signed in to change notification settings - Fork 0
/
HOWTO.txt
89 lines (45 loc) · 2.35 KB
/
HOWTO.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Howto distribute the STEAM-JACK interface (via PyPi)
--------------------------------------
in terminal -> cd C:\Users\B.MKR\Documents\03_Repositories\steam-jack
- py -m pip install build
- pip install pyparsing==3.0.5 !!pyparser downgrade needed!!
- py -m build --sdist
- twine check dist/*
- twine upload dist/* -> username = __token__ password = pypi-AgEIcHlwaS5vcmcCJDRlYjgxOTZlLTBkYTctNDIxMS1hYmI4LTAyMTIyMzJkZjQxZgACJXsicGVybWlzc2lvbnMiOiAidXNlciIsICJ2ZXJzaW9uIjogMX0AAAYg7SUuMETK9XWMrAd5N955D6J0Ky03O5QY28LFx4MnWro
Installing the distribution
---------------------------
- pip install steam-jack
See: https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#pure-python-wheel
OBSOLETE
-------------------------------------------------------------------------------------------
#building using *egg-info
-------------------------
- py setup.py bdist_egg
#building the "developer-mode" KB API package
---------------------------------------------
- in cmd -> cd C:\Users\B.MKR\Documents\06_PhD\03_Projects\03_PaCo\paco-workspace\knowledgebase-interface
- pip install -e ./ --user
-> from Interface_KB import KB_Interface
#Packaging the KB API package
-----------------------------
- in cmd -> cd C:\Users\B.MKR\Documents\06_PhD\03_Projects\03_PaCo\paco-workspace\knowledgebase-interface
- py -m pip install build
!!pyparser downgrade needed!!
- pip install pyparsing==3.0.5
- py -m build --sdist
-> making a pure python built package
- py -m build --wheel
#install via wheel file
-----------------------
- pip install C:\Users\B.MKR\Documents\06_PhD\03_Projects\03_PaCo\paco-workspace\knowledgebase-interface\dist\Interface_KB-0.1.0-py3-none-any.whl --user
#install via tar.gz
-----------------------
- pip install C:\Users\B.MKR\Documents\06_PhD\03_Projects\03_PaCo\paco-workspace\knowledgebase-interface\dist\Interface_KB-0.1.0.tar.gz --user
#PyPI distribution
------------------
TOKEN : pypi-AgEIcHlwaS5vcmcCJDRkN2M5ZmMyLTkyN2MtNGE1MC1iMGU4LTYwYTVkYzljOGE4YwACJXsicGVybWlzc2lvbnMiOiAidXNlciIsICJ2ZXJzaW9uIjogMX0AAAYgd8BBsblzDcYFXTzAyuOjJcBjBrAgN3OoMkaoSdAIQuo
username = __token__
password = pypi-AgEIcHlwaS5vcmcCJDRkN2M5ZmMyLTkyN2MtNGE1MC1iMGU4LTYwYTVkYzljOGE4YwACJXsicGVybWlzc2lvbnMiOiAidXNlciIsICJ2ZXJzaW9uIjogMX0AAAYgd8BBsblzDcYFXTzAyuOjJcBjBrAgN3OoMkaoSdAIQuo
#Install via pypi
-----------------
- pip install Interface-KB