Skip to content

Library version check functionality#104

Open
palimad wants to merge 3 commits intodevelopfrom
5999-library-version-check
Open

Library version check functionality#104
palimad wants to merge 3 commits intodevelopfrom
5999-library-version-check

Conversation

@palimad
Copy link
Copy Markdown

@palimad palimad commented Mar 25, 2026

https://github.com/polyapi/poly-alpha/issues/5999

  • Runtime version check — Added polyapi/version_check.py that runs at CLI startup before any command, fetches per-instance recommended Python client version from the backend GET /client-versions endpoint, and compares it against the locally installed version.

  • User-facing behavior — In non-interactive mode (env-based config), a warning is printed if the version doesn't match. In interactive mode, the user is prompted to update; on confirm, pip install is run and the process is restarted automatically with original args and preserved Poly url/key config.

  • CI/CD pipeline — Updated .github/workflows/polyapi-update-python-package.yml to support branch-to-instance promotion (develop, main→na1, main→na2, main→eu1), build the package (similarly to TS library), publish to PyPI first, then call POST {BE_URL}/client-versions with { "python": "<version>" } requiring auth (Poly API key).

@palimad palimad requested a review from eupharis March 25, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant