Skip to content

env.requires does not support context formatting #1756

Open
@soulmerge

Description

@soulmerge

I want to install an environment plugin from the local file system. My pyproject.toml contains the following:

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.env]
requires = [
  "my-hatch-plugin @ {root:uri}/tools/my-hatch-plugin",
]

But it seems the env.requires value does not support context formatting.

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