File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## Instructions for building and uploading FoBiS.py to PyPi
2
+
3
+ ### Prepare before build
4
+
5
+ In ` release ` branch, bump verion number in ` src/main/python/fobis/FoBiSConfig.py ` , e.g. ` __version__ = "3.0.6" ` .
6
+ Commit the file changed.
7
+
8
+ ### Build
9
+
10
+ In repo root type
11
+
12
+ ``` bash
13
+ pyb
14
+ ```
15
+
16
+ This creates a ` release/FoBiS-release-v3.0.6/ ` directory, build the package and test it.
17
+
18
+ If ` pyb ` is not installed, install it via pip
19
+
20
+ ``` bash
21
+ pip install pybuilder
22
+ ```
23
+
24
+ ### Upload the package to PyPi
25
+
26
+ Enter release directory, prepare the package distribution and upload it:
27
+
28
+ ``` bash
29
+ cd release/FoBiS-release-v3.0.6/
30
+ python setup.py sdist
31
+ twine upload dist/*
32
+ ```
33
+
34
+ After a successful upload, a message like the following is printed:
35
+
36
+ ``` bash
37
+ Uploading distributions to https://upload.pypi.org/legacy/
38
+ Uploading FoBiS.py-3.0.6.tar.gz
39
+ 100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.4/54.4 kB • 00:00 • 142.4 MB/s
40
+
41
+ View at:
42
+ https://pypi.org/project/FoBiS.py/3.0.6/
43
+ ```
44
+
45
+ If ` twine ` is not installed, install it via pip
46
+
47
+ ``` bash
48
+ pip install twine
49
+ ```
You can’t perform that action at this time.
0 commit comments