Skip to content

Commit 713a7e2

Browse files
committed
Merge branch 'release/v3.0.6'
2 parents b29c81c + e9c8154 commit 713a7e2

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

pypi-build-upload.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
```

src/main/python/fobis/FoBiSConfig.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from .utils import syswork
4040

4141
__appname__ = "FoBiS.py"
42-
__version__ = "3.0.5"
42+
__version__ = "3.0.6"
4343
__author__ = "Stefano Zaghi"
4444
__author_email__ = "[email protected]"
4545
__license__ = "GNU General Public License v3 (GPLv3)"

0 commit comments

Comments
 (0)