Skip to content

Avoid "ValueError: At least one file selection option must be defined" error during installation #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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