Skip to content

[SPT-1668] Report the SDK version in the User-Agent and __version__ - #1041

Open
justinpolygon wants to merge 1 commit into
masterfrom
justin/user-agent-version
Open

justinpolygon wants to merge 1 commit into
masterfrom
justin/user-agent-version

Conversation

@justinpolygon

Copy link
Copy Markdown
Collaborator

Every request sent User-Agent: Massive.com PythonClient/unknown, because the version was looked up for massive-api-client (an unofficial third-party wrapper) instead of massive. And massive.__version__ was the importlib.metadata.version function rather than the version string. Both now report the installed version.

Verified with a wheel built the way the release workflow does (poetry version 2.9.1): it sends Massive.com PythonClient/2.9.1 and massive.__version__ == "2.9.1". Published 2.9.0 sends /unknown. Tests are included.

The version was looked up for the "massive-api-client" package, an
unofficial third-party wrapper, instead of "massive". The User-Agent
was "Massive.com PythonClient/unknown" for everyone (or the wrapper's
version if it was installed). massive.__version__ was also set to the
importlib.metadata.version function instead of the version string.
@justinpolygon
justinpolygon marked this pull request as ready for review October 16, 2026 20:17
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