Skip to content

Astropy test suite#5091

Open
MMesch wants to merge 4 commits intoemscripten-forge:mainfrom
MMesch:astropy-tests
Open

Astropy test suite#5091
MMesch wants to merge 4 commits intoemscripten-forge:mainfrom
MMesch:astropy-tests

Conversation

@MMesch
Copy link
Copy Markdown
Contributor

@MMesch MMesch commented Mar 11, 2026

  • adds back test and dist folders
  • adds astropy tests

@MMesch
Copy link
Copy Markdown
Contributor Author

MMesch commented Mar 11, 2026

This is related to #5088 and calling parts of the original astropy test suite. I am unsure whether this is a good approach and thus curious to hear opinions.

- '**/*.pyx'
- '**/__pycache__/**'
- '**/*.pyc'
- '**/test_*.py'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although I do agree running the full test suite may be a good idea, I'd love for us to not ship the test suite as part of the package.

The filtering here reduced the package size from 9.12MB to 2.5MB for astropy (when it was not a metapackage)

Copy link
Copy Markdown
Member

@martinRenou martinRenou Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be possible to specify the test-suite as being extra assets for the test run, without shipping the tests in the package itself

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this would be the best approach. I just don't know how to do it with emscripten forge. Do you have an example somewhere?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure exactly, but the tests entry has a files: entry where we could list the files needed for testing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any way to distinguish between build/testing and what gets actually shipped?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants