Skip to content

release(python): make runtime version follow package metadata #326

Description

@NikolayS

Severity

High — release packaging can publish contradictory versions.

Problem

The Python client version is duplicated:

  • clients/python/pyproject.toml
  • clients/python/pgque/__init__.py

The release guide tells the operator to update only pyproject.toml, and release-python.yml validates only that value. The built-wheel smoke merely asserts that distribution metadata has some version; it never compares the workflow input, wheel metadata, and pgque.__version__.

Following the documented release process can therefore publish a 0.3.x distribution whose runtime reports 0.2.0, with CI green.

Expected fix

Prefer deriving __version__ from importlib.metadata.version("pgque-py"), with an intentional source-tree fallback for editable/uninstalled development. Otherwise validate both literals and the built wheel against VERSION.

Update clients/python/RELEASE.md and add source/editable/wheel tests that prove one authoritative version.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions