You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In src/mypkg/__main__:main is the entrypoint to my CLI application. I want to be able to access some JSON files in abi/ via with open("abi/dir/file.json") as file, how do I do this? I've tried all of these so far:
[tool.hatch.build]
include = ["abi/**/*.json"]
[tool.hatch.build.targets.wheel]
packages = ["src/mypkg"]
include = [
"abi/**/*.json",
"src/mypkg/**",
]
[tool.hatch.build.targets.wheel.force-include]
"abi" = "abi"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In
src/mypkg/__main__:main
is the entrypoint to my CLI application. I want to be able to access some JSON files inabi/
viawith open("abi/dir/file.json") as file
, how do I do this? I've tried all of these so far:I always end up with an error like this:
Or this:
Beta Was this translation helpful? Give feedback.
All reactions