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

25
.pypirc.example Normal file
View file

@ -0,0 +1,25 @@
# .pypirc.example
# Configuration file for uploading packages to Forgejo PyPI
#
# This file is a template - copy it to .pypirc and fill in your credentials:
# cp .pypirc.example .pypirc
#
# IMPORTANT: Never commit .pypirc to version control!
# It should already be in .gitignore
[distutils]
index-servers =
forgejo
[forgejo]
repository = https://git.him-tools.de/api/packages/HIM-public/pypi
username = __token__
password = YOUR_FORGEJO_ACCESS_TOKEN_HERE
# How to get your Forgejo access token:
# 1. Log in to your Forgejo instance: https://git.him-tools.de
# 2. Go to Settings > Applications > Generate New Token
# 3. Select 'write:package' scope
# 4. Copy the token and paste it above (replace YOUR_FORGEJO_ACCESS_TOKEN_HERE)
#
# Note: The username should always be "__token__" when using an access token