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 install with hatchling >= 1.19.0 #3

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Dec 15, 2023

Explicitly specify the top-level package name in order to fix installing with hatchling >= 1.19.0. These new versions default to installing packages that match the project name only, and fail if one cannot be found.

mgorny and others added 2 commits December 15, 2023 10:01
Explicitly specify the top-level package name in order to fix installing
with hatchling >= 1.19.0.  These new versions default to installing
packages that match the project name only, and fail if one cannot
be found.
Copy link
Contributor

@justinmayer justinmayer left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, Michał. I reproduced it by running invoke setup, which then failed when PDM tried to install the project as an editable package:

ValueError: Unable to determine which files to ship inside the wheel using the following heuristics: https://hatch.pypa.io/latest/plugins/builder/wheel/#default-file-selection

At least one file selection option must be defined in the `tool.hatch.build.targets.wheel` table, see: https://hatch.pypa.io/latest/config/build/

@justinmayer justinmayer merged commit ff61160 into pelican-plugins:main Dec 15, 2023
7 checks passed
@mgorny
Copy link
Contributor Author

mgorny commented Dec 15, 2023

Thanks!

@mgorny mgorny deleted the hatchling branch December 15, 2023 10:06
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.

2 participants