Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env.requires does not support context formatting #1756

Open
soulmerge opened this issue Oct 15, 2024 · 1 comment
Open

env.requires does not support context formatting #1756

soulmerge opened this issue Oct 15, 2024 · 1 comment

Comments

@soulmerge
Copy link

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.

@soulmerge
Copy link
Author

I have also seen this other issue #1199 related to context formatting, which also has an open pull request #1472. I would be willing to contribute a PR for this issue here, using the changes in the other PR as reference.

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

No branches or pull requests

1 participant