Skip to content

Apply sdist.exclude to top-level files - #61

Merged
AbrilRBS merged 4 commits into
conan-io:mainfrom
czoido:czoido/sdist-exclude-toplevel
Aug 21, 2026
Merged

Apply sdist.exclude to top-level files#61
AbrilRBS merged 4 commits into
conan-io:mainfrom
czoido:czoido/sdist-exclude-toplevel

Conversation

@czoido

@czoido czoido commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

should_exclude() was only called in the directory branch of the include loop, so
exclude could not remove pyproject.toml, CMakeLists.txt, meson.build, the
READMEs, LICENSE or the conanfile. examples/basic-pybind11 demonstrates the
option and did not work: it declares exclude = ["README.md"] and shipped the README
anyway.

@czoido czoido changed the title Apply sdist.exclude to top-level files Apply sdist.exclude to top-level files Aug 21, 2026
@czoido czoido added this to the 0.6.2 milestone Aug 21, 2026
@czoido
czoido requested a review from davidsanfal August 21, 2026 12:31
@AbrilRBS
AbrilRBS merged commit 7ff2a53 into conan-io:main Aug 21, 2026
22 checks passed
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.

3 participants