Skip to content

fix(nox): install a self-reference's extras in test_distributions - #625

Merged
leoschwarz merged 1 commit into
mainfrom
fix/test-distributions-extras
Aug 25, 2026
Merged

fix(nox): install a self-reference's extras in test_distributions#625
leoschwarz merged 1 commit into
mainfrom
fix/test-distributions-extras

Conversation

@leoschwarz

Copy link
Copy Markdown
Member
  • Fix nox -s test_distributions dropping a package's own test extras, so a bfabric-only release preview no longer fails collection with No module named 'tusclient'

_collect_test_deps drops test dependencies that point at a package under
test, so bfabric's own "bfabric[transfer]" test dependency was dropped
whole and tuspy never got installed. Every release so far also shipped
bfabric_scripts, whose runtime dependency is bfabric[transfer], so the
extra arrived transitively and hid this; a bfabric-only release fails
collection with ModuleNotFoundError: No module named 'tusclient'.

Keep the extras of such a self-reference and append them to the wheel
install (bfabric-1.22.0-py3-none-any.whl[transfer]), which uv and pip
both accept.
@leoschwarz

Copy link
Copy Markdown
Member Author

Found in #624

@leoschwarz
leoschwarz merged commit a15fd7b into main Aug 25, 2026
23 checks passed
@leoschwarz
leoschwarz deleted the fix/test-distributions-extras branch August 25, 2026 14:49
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.

1 participant