Skip to content

Commit

Permalink
Merge branch 'release/v3.0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
szaghi committed Nov 5, 2024
2 parents b29c81c + e9c8154 commit 713a7e2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions pypi-build-upload.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## Instructions for building and uploading FoBiS.py to PyPi

### Prepare before build

In `release` branch, bump verion number in `src/main/python/fobis/FoBiSConfig.py`, e.g. `__version__ = "3.0.6"`.
Commit the file changed.

### Build

In repo root type

```bash
pyb
```

This creates a `release/FoBiS-release-v3.0.6/` directory, build the package and test it.

If `pyb` is not installed, install it via pip

```bash
pip install pybuilder
```

### Upload the package to PyPi

Enter release directory, prepare the package distribution and upload it:

```bash
cd release/FoBiS-release-v3.0.6/
python setup.py sdist
twine upload dist/*
```

After a successful upload, a message like the following is printed:

```bash
Uploading distributions to https://upload.pypi.org/legacy/
Uploading FoBiS.py-3.0.6.tar.gz
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.4/54.4 kB • 00:00 • 142.4 MB/s

View at:
https://pypi.org/project/FoBiS.py/3.0.6/
```

If `twine` is not installed, install it via pip

```bash
pip install twine
```
2 changes: 1 addition & 1 deletion src/main/python/fobis/FoBiSConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from .utils import syswork

__appname__ = "FoBiS.py"
__version__ = "3.0.5"
__version__ = "3.0.6"
__author__ = "Stefano Zaghi"
__author_email__ = "[email protected]"
__license__ = "GNU General Public License v3 (GPLv3)"
Expand Down

0 comments on commit 713a7e2

Please sign in to comment.