Skip to content

Stop depending on deprecated PyPI curio in tests#58

Closed
l46983284-cpu wants to merge 1 commit into
python-trio:masterfrom
l46983284-cpu:fix/stop-curio-test-dep
Closed

Stop depending on deprecated PyPI curio in tests#58
l46983284-cpu wants to merge 1 commit into
python-trio:masterfrom
l46983284-cpu:fix/stop-curio-test-dep

Conversation

@l46983284-cpu

Copy link
Copy Markdown

Summary

Stop installing the unmaintained PyPI curio package in the test dependency group.

Curio no longer publishes releases, so the test extra fails for environments that try to install it. Runtime detection for curio is unchanged; the test now exercises that path with a tiny sys.modules stub of curio.meta.curio_running.

Fixes #34

Test plan

  • pip install --group test . without curio on PyPI install path
  • pytest -W error -ra -v --pyargs sniffio → 4 passed (including new stubbed curio detection test)

Curio no longer publishes to PyPI, so the optional test dependency
breaks installs and CI that try to pull it. Keep the runtime curio
detection path, but cover it with a tiny module stub instead of
installing the unmaintained package.

Fixes python-trio#34

Signed-off-by: Alex Chen <l46983284@gmail.com>
@A5rocks

A5rocks commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What's the point?

@A5rocks A5rocks closed this Jul 16, 2026
@l46983284-cpu

Copy link
Copy Markdown
Author

Curio on PyPI is unmaintained and breaks a clean test install (pip install --group test .). The PR dropped that test dep and kept the detection path covered with a tiny stub, without installing the real package.

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.

Vendor curio in tests? It is deprecated on PyPI

2 participants