August 2019
Beginner
482 pages
12h 56m
English
If your package needs to include something besides the Python files—for example, a small dataset or a query template—you'll need to add it explicitly as part of the package in pyproject.toml, as here:
[tool.poetry]include = ["*.sql"]
In some cases, you may not want to include some Python scripts in the actual package (for example, some support scripts). For that, you need to add a similar exclude line in the same section:
[tool.poetry]include = ["*.sql"]exclude = ["wikiwwii/uploader.py"]
We don't have any files to add or exclude in the package we're building—at least right now—so we won't have this section in the .toml file.
Read now
Unlock full access