Skip to content

Conversation

dbitouze
Copy link

Since recent changes in hatch, the "ValueError: At least one file selection option must be defined" prevented the installation of the set of plugins.

@paulduf
Copy link

paulduf commented Apr 24, 2024

This does not work for me, running the test example I get

*** Error while highlighting:
ModuleNotFoundError: No module named 'example_lexer'
   (file "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked)
*** If this is a bug you want to report, please rerun with -v.

I tried changing it for

[tool.hatch.build.targets.wheel]
packages = ["example_lexer", "example_style", "example_filter", "example_formatter"]

But it still does not succeed.

The related issue is pypa/hatch#1113

@joapuiib
Copy link

I've added this line to the end of pyproject.toml and now it seems to be working:

[tool.hatch.build.targets.wheel]
packages = ["."]

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

Successfully merging this pull request may close these issues.

3 participants