Skip to content

Better support for dynamic version #2923

@akhmerov

Description

@akhmerov

Problem description

pyproject.toml allows to specify a dynamic version, which I use with hatch-vcs build backend (see my pyproject.toml here). I have encountered two complications:

  • It seems that in order for this to work well in the docker image, all environments containing the package must also have git, otherwise getting the version fails.
  • I have git = "*" specified in build-dependencies, but that doesn't seem to avoid failures. I tried moving this to host-dependencies, and the problem went away, however it is not at all clear to me whether build-dependencies or host-dependencies are guaranteed to be present when installing pypi-dependencies with { path = ".", editable = true }
  • A cleaner way to integrate this with pixi would be by using pixi build, but as far as I can tell, it does not support dynamic version yet. (And no editable builds I assume?)

Altogether, at this point I am unsure what is the best way to use a package with a dynamic version with pixi, and I would appreciate a clarification or improvement of the available tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions