From 76f9f0491c28f590cf0b9ca229afe9be842231fa Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 5 Jan 2015 11:25:09 +0100 Subject: tox: add py3_patch --- doc/changelog.rst | 1 + doc/status.rst | 23 +++++------------------ doc/using.rst | 3 ++- tox.ini | 18 +++++++++++++++--- 4 files changed, 23 insertions(+), 22 deletions(-) diff --git a/doc/changelog.rst b/doc/changelog.rst index 8aaeaa8..39b3db5 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -10,6 +10,7 @@ Changelog * tox now also run the aiotest test suite * Rename the project from ``aiogreen`` to ``aioeventlet`` * Rename the ``link_future()`` function to :func:`yield_future` +* Running tests with eventlet monkey-patching now works with Python 3. 2014-11-23: version 0.3 ----------------------- diff --git a/doc/status.rst b/doc/status.rst index 5c4302a..7e8d33e 100644 --- a/doc/status.rst +++ b/doc/status.rst @@ -14,22 +14,6 @@ To do - subprocesses * experiment running an event loop in a thread different than the main thread -* tox.ini: test Python 3.3 with monkey-patching, see eventlet bug: - https://github.com/eventlet/eventlet/pull/168 - - -eventlet issues -=============== - -* eventlet monkey patching on Python 3 is incomplete. The most blocking issue - is in the importlib: the thread module is patched to use greenthreads, but - importlib really need to work on real threads. Pull request: - https://github.com/eventlet/eventlet/pull/168 -* eventlet.tpool.setup() seems to be broken on Windows in eventlet 0.15. - Pull request: - https://github.com/eventlet/eventlet/pull/167 -- merged! -* hub.debug_blocking is implemented with signal.alarm() which is is not - available on Windows. .. _eventlet-py3: @@ -37,8 +21,11 @@ eventlet issues eventlet and Python 3 ===================== -eventlet 0.15 is the first release supporting Python 3. Python 3 is only -supported if monkey-patching is not used. +eventlet 0.16 or newer is recommanded for Python 3 when monkey-patching is +enabled. + +eventlet 0.15 is the first release supporting Python 3, its monkey-patching +does not work with Python 3. Python 3 pull requests: diff --git a/doc/using.rst b/doc/using.rst index fed66bf..e310766 100644 --- a/doc/using.rst +++ b/doc/using.rst @@ -317,7 +317,8 @@ To run tests against other Python versions: trollius * ``py32``: Python 3.2 * ``py33``: Python 3.3 -* ``py33_old``: Python 3.3 with the oldest supported versions of eventlet and +* ``py3_patch``: Python 3 with eventlet monkey patching +* ``py3_old``: Python 3 with the oldest supported versions of eventlet and tulip * ``py34``: Python 3.4 diff --git a/tox.ini b/tox.ini index 37896ba..a71209e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.4 -envlist = py26,py27,py27_old,py27_patch,py32,py33,py33_old,py34,py35 +envlist = py26,py27,py27_old,py27_patch,py32,py33,py3_patch,py3_old,py34,py35 [testenv] commands= @@ -66,8 +66,20 @@ deps= asyncio eventlet -[testenv:py33_old] -basepython = python3.3 +[testenv:py3_patch] +basepython = python3 +setenv = + PYTHONASYNCIODEBUG = 1 +deps= + aiotest + asyncio + eventlet +commands= + python runtests.py -r -m + python run_aiotest.py -r -m + +[testenv:py3_old] +basepython = python3 setenv = PYTHONASYNCIODEBUG = 1 deps= -- cgit v1.2.1