mirror of
https://github.com/Comfy-Org/comfy-python-sdk.git
synced 2026-11-04 23:37:47 +00:00
[PR #25] [MERGED] fix: derive __version__ from dist metadata instead of hardcoding it #33
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
effort:medium
effort:small
effort:small
effort:trivial
priority:nice-to-have
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-python-sdk#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-python-sdk/pull/25
Author: @robinjhuang
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @wei-hai
Base:
main← Head:fix/version-single-source📝 Commits (2)
665cd76fix: derive version from dist metadata instead of hardcoding it37e38adtest: inject the version instead of asserting against the ambient install📊 Changes
2 files changed (+63 additions, -1 deletions)
View changed files
📝
src/comfy_sdk/__init__.py(+10 -1)➕
tests/test_version.py(+53 -0)📄 Description
publish.ymlstamps the release tag intopyproject.tomlat build time and nowhere else, so the hardcoded__version__ = "0.1.0"incomfy_sdk/__init__.pywould have reported the placeholder on every published release — while the wheel metadata and the User-Agent (which already reads dist metadata) reported the real version.Verified by building with an injected
9.9.9:__version__and the User-Agent now agree, where before__version__stayed0.1.0. Adds a regression test.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.