Skip to content

Allow building sdist and wheel with different files #1067

@Cito

Description

@Cito

Poetry has an include setting in pyproject.toml that allows specifying additional files to be included in the distribution (e.g. tests, docs, config files). This works, but it seems what you specify here will be included in both the source distribution and the wheel.

A common practice is to put stuff like tests into the source distribution only, but not into the wheel. You can achieve this with distutils by putting this additional stuff into MANIFEST.in which will be used only for the source distribution. I currently see no way to achieve the same with poetry. Can this be added as a feature? Or am I overlooking something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/build-systemRelated to PEP 517 packaging (see poetry-core)kind/featureFeature requests/implementations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions