Include tests in PyPI tarballs

Issue #1308 wontfix
Louis Sautier created an issue


We at Gentoo usually download the Python package sources from PyPI, but for openpyxl, we have to download Bitbucket snapshots because PyPI doesn't include tests. Would it be possible to do something like that to so that future PyPI tarballs contain tests?

graft openpyxl/tests
graft openpyxl/*/tests
graft openpyxl/*/*/tests
global-exclude __pycache__
global-exclude *.py[co]

Comments (1)

  1. CharlieC

    No, the tests are deliberately excluded from the package as they are not relevant for client code. Anyone who wants them can just get the source.

  2. Log in to comment