Explain the elaborate include path for docs in pyproject.toml

While it's still fresh in my mind as to why I wrote it like this, comment to
the effect so I'm not surprised by it in the future, or so someone else
reading it can know what the thinking was here.
This commit is contained in:
Dave Pearson 2023-02-08 10:00:48 +00:00
parent fbdbd8928d
commit 35be18f0e6
No known key found for this signature in database
GPG key ID: B413E0EF113D4ABF

View file

@ -24,8 +24,13 @@ classifiers = [
include = [
"src/textual/py.typed",
{ path = "docs/examples", format = "sdist" },
{ path = "docs-offline/**/*", format = "sdist" },
{ path = "tests", format = "sdist" }
{ path = "tests", format = "sdist" },
# The reason for the slightly convoluted path specification here is that
# poetry populates the exclude list with the content of .gitignore, and
# it also seems like exclude tumps include. So here we specify that we
# want to package up the content of the docs-offline directory in a way
# that works around that.
{ path = "docs-offline/**/*", format = "sdist" }
]
[tool.poetry.scripts]