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

Fix build with hatchling backend #185

Merged

Conversation

martinclaus
Copy link
Collaborator

For some reason, the build process got broken. It seems to be required now to explicitly include the source directory since it is named differently than the package name which make the include heuristics of hatch to fail.

@consideRatio
Copy link
Member

Does this require a modern version of hatchling as used in the build environment, declared in the top of pyproject.toml?

I think maybe we should declare a lower bound on hatching to a recent version so we know it wont cause issues in older versions.

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you also mention hatch or similar in the PR title to help better what this was about in the changelog?

Thank you @martinclaus for your care for this repo!!!

@martinclaus
Copy link
Collaborator Author

Does this require a modern version of hatchling as used in the build environment, declared in the top of pyproject.toml?

According to the hatch docs, the syntax should work as early as version 1.0. I haven't tested it though ;)

@martinclaus martinclaus changed the title Fix build Fix build with hatchling backend Jan 3, 2024
@martinclaus martinclaus merged commit a6c836e into main Jan 3, 2024
16 checks passed
@martinclaus martinclaus deleted the 184-build-fails-with-error-metadata-generation-failed branch January 3, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build fails with error metadata-generation-failed
2 participants