Issue
I was hitting a bunch of issues trying to include resource files in my Poetry build using the include key. It turns out that despite the docs saying that
If no format is specified, it will default to include both sdist and wheel.
It in fact seems to default to only sdist. The workaround was to change
to
include = [
{ path = "my_folder", format = ["sdist", "wheel"] }
]
In addition to this, I find the documentation unclear / challenging in terms of understanding how to access these files when pulling the package in as a dependency. If the files aren't included in the module, I am struggling to get importlib.resources to work.
If it is required that files the package needs to access live inside the package folder, please could this be added to the documentation? If not, could you add some guidance on this?
Issue
I was hitting a bunch of issues trying to include resource files in my Poetry build using the
includekey. It turns out that despite the docs saying thatIt in fact seems to default to only
sdist. The workaround was to changeto
In addition to this, I find the documentation unclear / challenging in terms of understanding how to access these files when pulling the package in as a dependency. If the files aren't included in the module, I am struggling to get
importlib.resourcesto work.If it is required that files the package needs to access live inside the package folder, please could this be added to the documentation? If not, could you add some guidance on this?