Skip to content

TST: avoid collecting setup_package module for reproject#45

Merged
astrofrog merged 1 commit into
astropy:mainfrom
neutrinoceros:tst/exclude-setup-package
May 12, 2026
Merged

TST: avoid collecting setup_package module for reproject#45
astrofrog merged 1 commit into
astropy:mainfrom
neutrinoceros:tst/exclude-setup-package

Conversation

@neutrinoceros
Copy link
Copy Markdown
Contributor

Fix a problem I found in #43.

The problem was that this build-only module, which has a dependency on setuptools (not a runtime dependency) is collected from, as all modules, when doctest is enabled (and it always is, here). It used to pass silently in Python 3.11 and older because these versions shipped setuptools alongside the standard library, but 3.12 and newer don't.

This build-only module has to ship as part of a source install, and setuptools has no good way (that I know of) of excluding files just from wheels. So, even though there's no good reason to include it in wheels, it's understandable that this is the current state of affairs.

@astrofrog astrofrog merged commit 2185ff3 into astropy:main May 12, 2026
17 of 19 checks passed
@neutrinoceros neutrinoceros deleted the tst/exclude-setup-package branch May 12, 2026 15:48
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