Skip to content

Tests not included in sdist #20

@jayvdb

Description

@jayvdb

The sdist (tarball) at PyPI doesnt contain the test files. i.e. https://files.pythonhosted.org/packages/26/60/4e49c18caf0ba7b7222da47ea6143f4f1ea3993f043be7bdf4ae409e544d/pytest-datafiles-2.0.1.tar.gz

Not including the tests makes it harder to package this for distros.

I notice that #10 is currently in flight, so it may be better to do that first, as poetry has its own way of recording which .py and data files need to be included in the sdist.

for reference, poetry needs something like the following in pyproject.toml:

packages = [
    { include = "pytest_datafiles.py"},  # not sure about this line
    { include = "tests", format = "sdist" },  # this is the voodoo, but maybe something extra is needed to ensure the _fixture_files is also included
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions