Include file from path #8592
Unanswered
keriksson-rosenqvist
asked this question in
Q&A
Replies: 2 comments 2 replies
-
read the docs https://python-poetry.org/docs/pyproject#include-and-exclude |
Beta Was this translation helpful? Give feedback.
2 replies
-
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When defining the packages in a pyproject.toml file, you can specify a
from
path for where to fin the source files, this doesn't seem to work the same with theinclude
andexclude
lists though. Is there a way to achieve this?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
tests
directory, and placing the includedtests
subset at the root level.Beta Was this translation helpful? Give feedback.
All reactions