Include file from path #8592
-
When defining the packages in a pyproject.toml file, you can specify a I want to achieve a built package that includes only some of the files from a patch but located at the top level. Example pyproject.toml file
That would generate this package
Excluding all other directories and files in the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
read the docs https://python-poetry.org/docs/pyproject#include-and-exclude |
Beta Was this translation helpful? Give feedback.
-
Is there someone who actually knows an answer to the above question? Namely, how to specify an inclusion is relative to a [tool.poetry]
...
include = [ { path = "resources", from = "src" } ] |
Beta Was this translation helpful? Give feedback.
The answer is: "You can't" (until someone implements
from
andto
forinclude
/exclude
, which should not be too difficult because there already is an implementation forpackages
)