File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 31013101from clientapi_pve .models .storage_update_storage_response import StorageUpdateStorageResponse as StorageUpdateStorageResponse
31023102from clientapi_pve .models .version_version_response import VersionVersionResponse as VersionVersionResponse
31033103from 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
You can’t perform that action at this time.
0 commit comments