-
I'm trying to include some autogenerated .py files into a package generated with 'poetry build'. But because they are mentioned in a .gitignore (I'm not checking them in, I'm building them before doing 'poetry build') they don't get put into the output tarball. Is there a way to include specific files in the built package, even if they are not added to git? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the answer on this via Stackoverflow. For future reference, the solution is to use the include= section in [tool.poetry], as documented here: https://python-poetry.org/docs/pyproject/#include-and-exclude |
Beta Was this translation helpful? Give feedback.
I found the answer on this via Stackoverflow. For future reference, the solution is to use the include= section in [tool.poetry], as documented here: https://python-poetry.org/docs/pyproject/#include-and-exclude