-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Bring trio-asyncio into the next decade #66
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ecb8181
[WIP] Attempt to fix CI
oremanj 20f08e2
Run asyncio tests using the installed Python
oremanj 43e8d68
Add missing files
oremanj 41a3397
Use greenlet instead of threading for sync loop; document and update …
oremanj 2798541
Add dependency on greenlet
oremanj e371720
Revert greenlet change; make sync loop close() actually terminate the…
oremanj a46f566
Put warning args in the right order
oremanj 4ef8e3e
Ignore DeprecationWarnings about loop= arg on 3.8
oremanj 0e35011
Reorganize CI matrix
oremanj 1df6bba
Nerf threading_cleanup so tests (esp on 3.8) don't take so long
oremanj 005ac02
xfail two run_coroutine_threadsafe tests on 3.8
oremanj d721247
yapfify
oremanj 32e156a
Add a few more skips; move -Werror into pytest.ini so the particular …
oremanj 79870ec
Don't skip tests that don't exist
oremanj 3ef2f52
Import selectors; don't leak threads
oremanj b609b6b
Don't crash if a test we're trying to skip doesn't exist
oremanj 4a838aa
Prevent crashes in __del__
oremanj 580ac8a
capitalize EPollEventLoop correctly; 3.5 backcompat for async generators
oremanj 39e7eb1
Hopefully-final pass of xfail tweaking
oremanj 18c6429
Clarify versions that encounter SSL errors
oremanj 1a81e4f
Mention new test matrix in the README
oremanj ecffc85
Mention fixing the deprecation errors
oremanj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,22 @@ | ||
language: python | ||
python: | ||
- 3.6 | ||
- 3.6-dev | ||
sudo: false | ||
dist: trusty | ||
dist: xenial | ||
|
||
matrix: | ||
include: | ||
# As of 2018-07-05, Travis's 3.7 and 3.8 builds only work if you | ||
# use dist: xenial AND sudo: required | ||
# See: https://github.com/python-trio/trio/pull/556#issuecomment-402879391 | ||
- python: 3.5 | ||
- python: 3.6 | ||
- python: 3.7 | ||
dist: xenial | ||
sudo: required | ||
- python: 3.7-dev | ||
dist: xenial | ||
sudo: required | ||
- python: 3.8 | ||
- python: 3.8-dev | ||
dist: xenial | ||
sudo: required | ||
# - os: linux | ||
# language: generic | ||
# env: USE_PYPY_RELEASE_VERSION=5.9-beta | ||
# Uncomment if you want to test on pypy nightly | ||
# - os: linux | ||
# language: generic | ||
# env: USE_PYPY_NIGHTLY=1 | ||
- python: nightly | ||
- os: osx | ||
language: generic | ||
env: MACPYTHON=3.6.3 | ||
- python: 3.6 | ||
env: CHECK_DOCS=1 | ||
- python: 3.6 | ||
env: CHECK_FORMATTING=1 | ||
allow_failures: | ||
- python: 3.8-dev | ||
|
||
script: | ||
- ci/travis.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Substantially reorganize monkeypatching for asyncio event loop and | ||
event loop policy accessors, fixing support for Python 3.8. Also, stop | ||
using features deprecated in Trio 0.12. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ | |
""" | ||
|
||
install_requires = [ | ||
"trio >= 0.11.0", | ||
"trio >= 0.12.0", | ||
"async_generator >= 1.6", | ||
"outcome", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[pytest] | ||
filterwarnings = | ||
error | ||
ignore:The loop argument is deprecated since Python 3.8:DeprecationWarning | ||
ignore:"@coroutine" decorator is deprecated since Python 3.8:DeprecationWarning | ||
default:Tried to add marker .* but that test doesn't exist.:RuntimeWarning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +0,0 @@ | ||
import os | ||
from test.support import load_package_tests, import_module | ||
|
||
# Skip tests if we don't have concurrent.futures. | ||
import_module('concurrent.futures') | ||
|
||
|
||
def load_tests(*args): | ||
return load_package_tests(os.path.dirname(__file__), *args) | ||
|
||
|
||
# this code is from | ||
# git@github.com:python/cpython.git | ||
# Revision d48ecebad | ||
# Python 3.6.4 | ||
# | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes -- I created a pytest.ini with a more detailed warnings filter. (The loop= argument is deprecated in several asyncio methods on 3.8+. I didn't think it advisable to remove support for passing the loop just yet.)