Skip to content

sdist.include can not work #1105

Open
Open
@ChaoII

Description

@ChaoII

If I don’t specify sdist.include, the source distribution includes only the default files and directories, and it correctly respects the .gitignore file.
However, once I override sdist.include, the source distribution ends up including everything in the project directory — even files and folders that should normally be excluded.
Even when I set sdist.include = ["csrc"], the resulting source distribution still contains all files and directories from the current working directory where I run python -m build --sdist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions