Skip to content

Add support to pyproject.toml dynamic values, i.e. "version" #294

@set-soft

Description

@set-soft

Describe the solution you'd like
The setuptools supports reading the version from the source code itself, avoiding repetition and sync problems, like this:

[project]
name = "image-misc"
description = """
Miscellaneous nodes for image manipulation.
Currently just download image with bypass, so you can create workflows including image examples.
No extra dependencies, just an internal module.
"""
dynamic = ["version"]
license = "GPL-3.0-or-later"
dependencies = ["seconohe"]

[project.urls]
Repository = "https://github.com/set-soft/ComfyUI-ImageMisc"

[tool.comfy]
PublisherId = "set-soft"
DisplayName = "Image Misc"

[tool.setuptools.dynamic]
version = {attr = "nodes.__version__"}

But when using it comfy-cli fails to find the version.

In the specs example it looks like the dependencies can be dynamic. So I think dynamic version should also be supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions