-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
How to forcibly include a directory? #243
Comments
What I had expected to work was: [tool.hatch.build]
artifacts = [
"ipyparallel/labextension/**/*.*"
] |
We have the same problem in jupyter/notebook#6425 as well ( |
Ah, I got it working with: [tool.hatch.build.force-include]
"./ipyparallel/labextension" = "ipyparallel/labextension" Seems like a reasonable solution if you want to close this one. |
Artifacts should work, can you paste an example path? >>> import pathspec
>>> pathspec.PathSpec.from_lines(pathspec.patterns.GitWildMatchPattern, ['ipyparallel/labextension/**/*.*']).match_file('ipyparallel/labextension/foo/bar.txt')
True |
|
I do that for performance. I'll fix and put that behind a "fast" option. |
I ran into this too, and resorted to |
Excellent, thank you! |
We have generated files in
ipyparallel
that we'd like to include in the sdist and the wheel. The entire folder (ipyparallel/labextension
) is ignored by.gitignore
. I tried usinginclude
andartifacts
config to include files in the directory but they are not ending up in the dist files. I suspect it is because the folder has already been ignored by the time the include/artifact pattern is checked.The text was updated successfully, but these errors were encountered: