Skip to content

Do not include tests in Astropy wheels (reduce wheel size for AWS Lambda) #16152

Description

@lpsinger

What is the problem this feature will solve?

Astropy is a very heavyweight dependency and is difficult to use in a serverless, space-constrained environment like AWS Lambda. When installed from wheels for Linux aarch64, the astropy directory in site-packages takes up 58 MB. Of that, the astropy/**/tests directories take up 20 MB.

Describe the desired outcome

Move the test directories out of the installed Python package, or exclude them from packaging.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions