Bump version

This commit is contained in:
phil 2025-01-10 23:48:44 +01:00
parent b1553ec7bf
commit 21f1222085
2 changed files with 13 additions and 15 deletions
.forgejo/workflows
pyproject.toml

View file

@ -9,7 +9,7 @@ on:
type: boolean type: boolean
jobs: jobs:
test: build:
runs-on: container runs-on: container
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -27,14 +27,6 @@ jobs:
- name: Run tests (API call) - name: Run tests (API call)
run: .venv/bin/pytest -s tests/basic.py run: .venv/bin/pytest -s tests/basic.py
- name: Build wheel
run: uv build --wheel
- name: Publish Python package (home)
env:
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
- name: Get version - name: Get version
id: version id: version
run: echo "version=$(.venv/bin/oidc-test --version)" >> $GITHUB_OUTPUT run: echo "version=$(.venv/bin/oidc-test --version)" >> $GITHUB_OUTPUT
@ -67,4 +59,13 @@ jobs:
with: with:
registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}" registry: "docker://${{ vars.REGISTRY }}/${{ vars.ORGANISATION }}"
image: oidc-fastapi-test image: oidc-fastapi-test
tags: latest ${{ steps.version.outputs.version }}
- name: Build wheel
run: uv build --wheel
- name: Publish Python package (home)
env:
LOCAL_PYPI_TOKEN: ${{ secrets.LOCAL_PYPI_TOKEN }}
run: uv publish --publish-url https://code.philo.ydns.eu/api/packages/philorg/pypi --token $LOCAL_PYPI_TOKEN
tags: latest ${{ steps.version.outputs.version }}

View file

@ -1,6 +1,6 @@
[project] [project]
name = "oidc-fastapi-test" name = "oidc-fastapi-test"
version = "0.1.2" version = "0.1.5"
description = "Add your description here" description = "Add your description here"
readme = "README.md" readme = "README.md"
requires-python = ">=3.13" requires-python = ">=3.13"
@ -20,10 +20,7 @@ dependencies = [
oidc-test = "oidc_test.main:main" oidc-test = "oidc_test.main:main"
[dependency-groups] [dependency-groups]
dev = [ dev = ["ipdb>=0.13.13", "pytest>=8.3.4"]
"ipdb>=0.13.13",
"pytest>=8.3.4",
]
[build-system] [build-system]
requires = ["hatchling"] requires = ["hatchling"]