Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anyio dependency is too limited #31

Closed
belm0 opened this issue Jun 2, 2021 · 0 comments · Fixed by #33
Closed

anyio dependency is too limited #31

belm0 opened this issue Jun 2, 2021 · 0 comments · Fixed by #33

Comments

@belm0
Copy link
Member

belm0 commented Jun 2, 2021

purerpc requires anyio 1.x, but anyio is a rapidly evolving API and 2.x is already in use, causing conflicts between purerpc and other application dependencies.

https://github.com/standy66/purerpc/blob/5faa35f2cdf5b36d1398a1aa6a9e681c5344060f/setup.py#L67

purerpc use of anyio is light, so it's probably not hard to support both 1.x and 2.x. (Note that 2.x dropped curio support.)

@belm0 belm0 closed this as completed in #33 Apr 15, 2022
belm0 added a commit that referenced this issue Apr 15, 2022
Upgrade to anyio 3.x API, which implies dropping Curio support.

Along the way:

  * introduce Server.serve_async(). Use of serve() is strongly
     discouraged because it runs a full event loop.
  * add ssl test coverage
  * tests use an ephemeral port
  * update example in README. Don't encourage passing
     backend='uvloop' to anyio.run(), since it relies on runtime
     patching.

Fixes #31
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 a pull request may close this issue.

1 participant