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

specify wheel build target for hatch explicitly #832

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

willh-cmyk
Copy link
Contributor

I'm submitting a fix for building wheels for this package.

I'm getting this error when building wheels for my multistage docker build:

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

The most likely cause of this is that there is no directory that matches the name of your project (jupyterhub_kubespawner).

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/

As an example, if you intend to ship a directory named `foo` that resides within a `src` directory located at the root of your project, you can define the following:

[tool.hatch.build.targets.wheel]
packages = ["src/foo"]

Copy link

welcome bot commented Apr 11, 2024

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@willh-cmyk
Copy link
Contributor Author

#831 relevant issue is here

@consideRatio consideRatio merged commit 127647c into jupyterhub:main Apr 24, 2024
9 checks passed
@consideRatio
Copy link
Member

consideRatio commented Apr 24, 2024

Thank you @willh-cmyk! This is a bug I recall running into but never getting down to the details of understanding the fix or what was going on.

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.

2 participants