Skip to content

Tests in Distribution Files #30833

@npikall

Description

@npikall

This may be a stupid question, but I don't see the reason why this is the case.

I was running the following (essentially checking out matplotlib in a venv)

uv init example
cd example
uv add matplotlib

This created a new repo with a virtual environment.
When I was checking out example/.venv/lib/python3.13/site-packages/matplotlib I found the tests directory with a bunch of pytest files.
Basically, these files seem to be distributed.
I then ran du -h and found out that the tests alone amass to just about 2MB.
This seems to be a lot of wasted disk space.

Therefore, my questions.

  • Are these tests actually used in the distributed package?
  • Would it make sense to exclude them from the distribution, if they are not used by any user anyway?

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