Skip to content

Conversation

@pronovic
Copy link
Owner

Due to limitations in Poetry's [tool.poetry] configuration block, there's no simple way to include docs/ in the sdist, while also excluding the generated files in docs/_build. The cleanest workaround is to remove docs/_build before running the poetry build command. That's clearly a hack, but there's apparently no other alternative. Technically, this is only necessary for projects that build docs, but it's easiest to just always do the cleanup.

@pronovic pronovic changed the title Exclude generated files in docs/_build from the Python sdist Exclude generated files in docs/_build from the Python sdist Sep 18, 2025
@pronovic pronovic merged commit 8f8e996 into main Sep 18, 2025
16 checks passed
@pronovic pronovic deleted the run-script-updates branch September 18, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants