Skip to content

Commit 39f79e3

Browse files
authored
Merge pull request python-trio#87 from pquentin/smurfix-upstream
Updates for Trio 0.15
2 parents 2440c92 + f677d95 commit 39f79e3

File tree

21 files changed

+171
-82
lines changed

21 files changed

+171
-82
lines changed

.appveyor.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ os: Visual Studio 2015
44

55
environment:
66
matrix:
7-
#- PYTHON: "C:\\Python35"
8-
#- PYTHON: "C:\\Python35-x64"
97
- PYTHON: "C:\\Python36"
108
- PYTHON: "C:\\Python36-x64"
119
- PYTHON: "C:\\Python37"
1210
- PYTHON: "C:\\Python37-x64"
11+
# The Windows Python 3.8 tests currently fail on
12+
# test_asyncio.test_windows_events.ProactorLoopCtrlC where `get_event_loop`
13+
# fails to start a new loop
14+
# https://ci.appveyor.com/project/smurfix/trio-asyncio/builds/33592418/job/06yddkw8wy9y6j1h
15+
# - PYTHON: "C:\\Python38"
16+
# - PYTHON: "C:\\Python38-x64"
1317

1418
build_script:
1519
- "git --no-pager log -n2"
@@ -26,5 +30,5 @@ test_script:
2630
- "cd empty"
2731
# Make sure it's being imported from where we expect
2832
- "python -c \"import os, trio_asyncio; print(os.path.dirname(trio_asyncio.__file__))\""
29-
- "python -u -m pytest -W error -ra -v -s --cov=trio_asyncio --cov-config=../.coveragerc ../tests"
33+
- "python -u -m pytest -ra -v -s --cov=trio_asyncio --cov-config=../.coveragerc ../tests"
3034
- "codecov"

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ dist: xenial
33

44
matrix:
55
include:
6-
- python: 3.5
76
- python: 3.6
87
- python: 3.7
98
- python: 3.7-dev
@@ -12,7 +11,13 @@ matrix:
1211
- python: nightly
1312
- os: osx
1413
language: generic
15-
env: MACPYTHON=3.6.3
14+
env: MACPYTHON=3.6.8 # last binary release
15+
- os: osx
16+
language: generic
17+
env: MACPYTHON=3.7.7 # last binary release
18+
- os: osx
19+
language: generic
20+
env: MACPYTHON=3.8.3
1621
- python: 3.6
1722
env: CHECK_DOCS=1
1823
- python: 3.6

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
**trio-asyncio** is a re-implementation of the ``asyncio`` mainloop on top of
2727
Trio.
2828

29-
trio-asyncio requires at least Python 3.5.3. It is tested on recent versions of
30-
3.5, 3.6, 3.7, 3.8, and nightly.
29+
Trio-Asyncio requires at least Python 3.6. It is tested on recent versions of
30+
3.6, 3.7, 3.8, and nightly.
3131

3232
+++++++++++
3333
Rationale

ci/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -ex
66
YAPF_VERSION=0.20.0
77

88
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
9-
curl -Lo macpython.pkg https://www.python.org/ftp/python/${MACPYTHON}/python-${MACPYTHON}-macosx10.6.pkg
9+
curl -Lo macpython.pkg https://www.python.org/ftp/python/${MACPYTHON}/python-${MACPYTHON}-macosx10.9.pkg
1010
sudo installer -pkg macpython.pkg -target /
1111
ls /Library/Frameworks/Python.framework/Versions/*/bin/
1212
PYTHON_EXE=/Library/Frameworks/Python.framework/Versions/*/bin/python3

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ asyncio libraries such as ``home-assistant``.
5151
Helpful facts:
5252

5353
* Supported environments: Linux, MacOS, or Windows running some kind of Python
54-
3.5.3-or-better (either CPython or PyPy3 is fine). \*BSD and illumOS likely
54+
3.6-or-better (either CPython or PyPy3 is fine). \*BSD and illumOS likely
5555
work too, but are untested.
5656

5757
* Install: ``python3 -m pip install -U trio-asyncio`` (or on Windows, maybe

docs/source/principles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Most *synchronous* asyncio or Trio functions (:meth:`trio.Event.set`,
8181
asyncio or Trio context, and work equally well regardless of the
8282
flavor of function calling them. The exceptions are functions that
8383
access the current task (:func:`asyncio.current_task`,
84-
:func:`trio.hazmat.current_task`, and anything that calls them),
84+
:func:`trio.lowlevel.current_task`, and anything that calls them),
8585
because there's only a meaningful concept of the current *foo* task
8686
when a *foo*-flavored function is executing. For example, this means
8787
context managers that set a timeout on their body (``with

newsfragments/82.misc.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``trio-asyncio`` now requires Trio 0.15.
2+
3+
Support for Python < 3.6 has been removed.

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ max-line-length=99
55
ignore=E402,E731,E127,E502,E123,W503
66
[tool:pytest]
77
addopts = -p no:asyncio
8+
filterwarnings =
9+
error
10+
ignore:The loop argument is deprecated*:DeprecationWarning

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
code (asyncio: ~8000) but passes the complete Python 3.6 test suite with no
4444
errors.
4545
46-
``trio_asyncio`` requires Python 3.5.3 or better.
46+
``trio_asyncio`` requires Python 3.6 or better.
4747
4848
Author
4949
======
@@ -53,12 +53,12 @@
5353
"""
5454

5555
install_requires = [
56-
"trio >= 0.12.0",
57-
"async_generator >= 1.6",
56+
"trio >= 0.15.0",
5857
"outcome",
5958
]
6059
if sys.version_info < (3, 7):
6160
install_requires.append("contextvars >= 2.1")
61+
install_requires.append("async_generator >= 1.6")
6262

6363
setup(
6464
name="trio_asyncio",
@@ -74,10 +74,10 @@
7474
# This means, just install *everything* you see under trio/, even if it
7575
# doesn't look like a source file, so long as it appears in MANIFEST.in:
7676
include_package_data=True,
77-
python_requires=">=3.5.2", # temporary, for RTD
77+
python_requires=">=3.6", # temporary, for RTD
7878
keywords=["async", "io", "trio", "asyncio", "trio-asyncio"],
7979
setup_requires=['pytest-runner'],
80-
tests_require=['pytest', 'outcome'],
80+
tests_require=['pytest >= 5.4', 'pytest-trio >= 0.6', 'outcome'],
8181
classifiers=[
8282
"Development Status :: 4 - Beta",
8383
"Intended Audience :: Developers",

tests/aiotest/test_callback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ async def test_close(self, loop, config):
4545
await loop.stop().wait()
4646
loop.close()
4747

48-
@config.asyncio.coroutine
49-
def test():
48+
async def test():
5049
pass
5150

5251
func = lambda: False

0 commit comments

Comments
 (0)