feat: add build and upload scripts for Forgejo PyPI, update version management

This commit is contained in:
claudi 2026-03-03 13:44:58 +01:00
parent 462c8aeac9
commit 64ea445ec3
12 changed files with 1288 additions and 0 deletions

View file

@ -136,6 +136,64 @@ pytest
```
## Building & Publishing
### Update Version
Update the version number across all project files:
```bash
# PowerShell
.\update_version.ps1 0.2.0
# Python
python update_version.py 0.2.0
# Bash
./update_version.sh 0.2.0
```
### Build Wheel
Build distribution packages:
```bash
# PowerShell
.\build_wheel.ps1
# Python
python build_wheel.py
# Bash
./build_wheel.sh
```
### Upload to Forgejo PyPI
First, create your `.pypirc` configuration:
```bash
cp .pypirc.example .pypirc
# Edit .pypirc with your Forgejo access token
```
Then upload:
```bash
# PowerShell
.\upload_wheel_to_forgejo_pypi.ps1
# Bash
./upload_wheel_to_forgejo_pypi.sh
# Windows Batch
upload_wheel_to_forgejo_pypi.bat
```
The package will be available at:
`https://git.him-tools.de/HIM-public/-/packages/pypi/agravity-client`
## Licence
MIT