Skip to content

Remove test files when publishing package #158

@dosisod

Description

@dosisod

I was poking around my .venv folder and noticed h11 includes the test/ folder in it's published packages. Is this intentional? The setup.py and MANIFEST.in file seem to indicate that the tests should be added, but I don't see any explanation as to why:

h11/setup.py

Lines 18 to 20 in cdccbef

# This means, just install *everything* you see under h11/, even if it
# doesn't look like a source file, so long as it appears in MANIFEST.in:
include_package_data=True,

and in the manifest file:

recursive-include h11/tests/data *

Normally tests are only for development purposes and have no use to the client, so including the test folder just takes up space. Unless I am missing something, I think we can remove this folder (I wouldn't mind opening a PR for this, just though I would ask before doing so).

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