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

Wheel/.toml mismatch #1711

Open
BeepJz opened this issue Sep 5, 2024 · 0 comments
Open

Wheel/.toml mismatch #1711

BeepJz opened this issue Sep 5, 2024 · 0 comments

Comments

@BeepJz
Copy link

BeepJz commented Sep 5, 2024

I just ran the example hatch-demo. When attempting to import the .whl into python, it throws an error that the package doesn't appear to be a python package: neither pyproject.toml nor setup.py is present. I find that I can force including the README.md, pyproject.toml, and LICENSE.txt, but then an error "no file src/pkg/about.py exists" results. This is from the dynamic versioning callout in the .toml file. If I use static versioning, everything works out fine. The issue appears to be that hatch changes the source tree to eliminate the "src" directory so that if the same .toml file is included in the .whl, python will fail to find about.py. How should I get around this issue?

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