BUILD: Remove tests folder in package distribution #60606
Labels
Build
Library building on various platforms
Needs Triage
Issue that has not been reviewed by a pandas team member
Installation check
Platform
macOS-15.1-x86_64-i386-64bit
Installation Method
pip install
pandas Version
2.2.3
Python Version
3.11.9
Installation Logs
I discovered that the
tests
folder is included in the package distribution, which I believe is not a good practice.Consider this real scenario: I use
pandas
in an AWS Lambda function, where the layer size limitation is 250 MB. This means all dependencies must be smaller than this limit, necessitating a reduction in the package size.Here is what
setuptools
says,How to reproduce it
Reference
AWS Lambda limitation: 250 MB The maximum size of the contents of a deployment package, including layers and custom runtimes. (unzipped)
Python setup tool: exclude tests
The text was updated successfully, but these errors were encountered: