Skip to content

Support file selection like setuptools and hatch #566

Closed

Description

@paugier

If I understand correctly, meson-python includes all the files in the sdist and it is not possible to exclude some directories or files.

In contrast, setuptools and Hatch support controlling which files are included in the sdist. For Hatch, there are few related options in the pyproject.toml file: https://hatch.pypa.io/latest/config/build/#file-selection

Would it be possible to at least be able to exclude some files with meson-python ?

Activity

  1. dnicolodi commented on Jan 30, 2024

    @dnicolodi
    Member

    meson-python uses meson dist to create sdist. meson dist obeys the export-ignore git attribute. Just mark the files you want to exclude from the sdist with this attribute in a .gitattributes file.

  2. locked and limited conversation to collaborators on Jan 30, 2024
  3. converted this issue into a discussion #567 on Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions