Skip to content

Commit 66462ca

Browse files
committed
chore: sync from pve-openapi@2b54ef2
fix(sdk): export Pve+Client from Python __init__.py; tag-driven publish
1 parent ae14ca3 commit 66462ca

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ jobs:
2626
with:
2727
python-version: '3.12'
2828

29+
# The release tag is the authoritative version source — overwrite
30+
# pyproject.toml and setup.py with the tag name (minus the leading
31+
# `v`) so PyPI sees the value the release was cut at, regardless
32+
# of what the SDK was synced with. Enables intra-day releases via
33+
# PEP 440 post-release tags: `v2026.5.23-1` → `2026.5.23.post1`,
34+
# `v2026.5.23-2` → `2026.5.23.post2`, etc. (PyPI's PEP 440
35+
# normalizer rewrites the dash form on upload.) Skipped for
36+
# workflow_dispatch runs — the manual trigger uses whatever's
37+
# already in the working tree.
38+
- name: Set version from release tag
39+
if: github.event_name == 'release'
40+
run: |
41+
set -eu
42+
TAG="${GITHUB_REF_NAME#v}"
43+
echo "Using version: $TAG (from tag $GITHUB_REF_NAME)"
44+
sed -i -E "s/^version = \".*\"/version = \"${TAG}\"/" pyproject.toml
45+
sed -i -E "s/^VERSION = \".*\"/VERSION = \"${TAG}\"/" setup.py
46+
grep -E '^version|^VERSION' pyproject.toml setup.py
47+
2948
- name: Install build backend
3049
run: |
3150
python -m pip install --upgrade pip

clientapi_pve/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,4 +3101,5 @@
31013101
from clientapi_pve.models.storage_update_storage_response import StorageUpdateStorageResponse as StorageUpdateStorageResponse
31023102
from clientapi_pve.models.version_version_response import VersionVersionResponse as VersionVersionResponse
31033103
from clientapi_pve.models.version_version_response_data import VersionVersionResponseData as VersionVersionResponseData
3104-
3104+
from clientapi_pve.client import Client as Client
3105+
from clientapi_pve.pve import Pve as Pve

0 commit comments

Comments
 (0)