Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Asyncio Support #299

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

wvonnegut-zz
Copy link

Implement simple client/server for asyncio-based applications. Only TFramedTransport is supported, but both client and server will work with any protocol (both cython and pure python implementations).

Largely inspired by https://github.com/ryanwang520/aiothrift

@wvonnegut-zz
Copy link
Author

I'm a bit stumped on the right way to fix my failing tests, which are only compatible with python>=3.5.

I wasn't able to find a clean way to enforce this in tox.ini, so I added conftest.py to check the current interpreter version and update collect_ignore accordingly.

This works for tox -e py35 - additional dependencies are installed, and tests pass both locally and in travis.

The failures come up when running tox -e py - test_asyncio.py still gets run (python version is python-3.5.1), but the py35 dependencies aren't installed.

Any thoughts on an idiomatic way to solve this?

@julioasotodv
Copy link

I really think that this should be reviewed, given that it would be a major improvement to the library.

Obviously, it doesn't make sense to test anything <= py3.4 in this case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants