Commit Graph

83 Commits

Author SHA1 Message Date
Ben Darnell f7a7026c8b build: Enforce flake8-cleanliness in CI 2018-01-06 18:22:41 -05:00
Ben Darnell 1d113d861e netutil: Use a threaded resolver by default
Uses IOLoop.run_in_executor.
concurrent.futures is now required on Python 2.
2017-12-22 21:52:53 -05:00
Ben Darnell 941d6f30d7 asyncio: Drop support for trollius
This package is no longer maintained and was never widely used.
2017-11-05 15:09:50 -05:00
Ben Darnell b7d2a152f9 ioloop: Disallow non-asyncio IOLoops on python 3 2017-11-05 15:09:50 -05:00
Ben Darnell 34c43f4775 Drop support for python 3.3, 3.5.[01] (#2116)
* Drop support for python 3.3

In June 2017, Python 3.3 accounted for 0.2% of Tornado's downloads
from pypi.

* travis.yml: Use trusty, update pypy versions

Get a py35-compatible version of pypy3. Plain "pypy" no longer seems
to work in this environment, so specify a version.

Drop testing of python 2.7.8, which no longer seems to be available.

* gen,queues: Drop the "legacy aiter protocol"

This protocol changed in Python 3.5.2 (after being introduced in
3.5.0). Async iteration now requires that version of Python (or
newer).

Closes #2107

* travis.yml: Only run doctests on one version of python 3

* Get tests passing on latest version of pypy3
2017-09-04 15:32:52 -04:00
Ben Darnell dc7b58d8fe ioloop: Make asyncio the default when available
In addition to changing the configurable default, add a special case
in IOLoop.current() so that the current IOLoop will be backed by
the main asyncio event loop.
2017-06-03 23:43:29 -04:00
Ben Darnell c45e10c9bc tox: Update some configs to use py36
Closes #1926
2017-02-20 17:04:14 -05:00
Eugene Dubovoy 09caeaed52 Add Python 3.6 support 2017-01-08 18:19:30 +02:00
Adam Chainz a591d270ae Convert readthedocs link for their .org -> .io migration for hosted projects
As per their email ‘Changes to project subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-05-29 15:04:33 +01:00
Felix Yan d0c600220a Add monotonic as an alternative to Monotime 2015-11-07 14:01:40 +08:00
Ben Darnell 4d6fef7897 Drop support for Python 3.2.
Remove python 3.2 support from all test configurations and docs,
but do not actively remove code that exists for 3.2 compatibility.
2015-11-06 18:53:11 -05:00
Ben Darnell 02e67efa6b Drop Python 2.6 support.
Remove python 2.6 support from all test configurations and docs,
but do not actively remove code that exists for 2.6 compatibility.
2015-11-06 18:53:11 -05:00
Ben Darnell fe02b565fc Update versions in CI/tox configs. 2015-10-03 11:22:19 -04:00
Ben Darnell 2caffda74a Enable test runs on py35 2015-08-02 21:44:46 -04:00
Ben Darnell b93b8405b3 Make many doc code blocks into sphinx doctests. 2015-02-09 00:19:47 -05:00
Ben Darnell 0f1c6eec62 Enable the sphinx doctest extension. 2015-02-08 16:09:00 -05:00
Ben Darnell 841b2d4de3 Singledispatch and twisted don't work well together on py26.
Only install singledispatch on py27.
2015-01-19 13:50:12 -05:00
Ben Darnell d6a940924b Use functools.singledispatch for convert_yielded when available.
Register a converter for asyncio.Future and add tests.
2015-01-19 10:12:56 -05:00
Marc Schlaich 4d09030b20 tox: add optional pyxx-no-ext environments
These can be run on systems without an available C compiler.
2014-12-12 08:31:13 +01:00
Ben Darnell 34dbe87d8c Fix byte strings as header values in curl_httpclient and python3.
Add the -bb flag to all py3 tests, which uncovered this bug.
2014-10-11 11:47:03 -04:00
Ben Darnell ea943e325a Streamline tox configuration using new features in tox 1.8. 2014-10-11 11:47:03 -04:00
Ben Darnell 625bb0e075 Install sphinx_rtd_theme when running sphinx tests. 2014-07-12 23:07:01 -04:00
Ben Darnell fb246549af Add pypy3 to tox.ini. 2014-06-21 12:47:40 -04:00
Ben Darnell 53e4bad98d Add threadedresolver configuration to tox.ini (it was already in travis) 2014-06-01 18:45:10 -04:00
Ben Darnell 12ba59f967 Run the sphinx tests under py3.4 instead of py2.7. 2014-05-25 23:03:13 -04:00
Ben Darnell e777e6fd6a Add TwistedIOLoop test on python 3 to tox and travis. 2014-05-25 00:48:15 -04:00
Ben Darnell db91773328 Use Resolver instead of socket.getaddrinfo to decide whether localhost is ipv6.
The results can differ with different resolvers.  Add a CaresResolver
configuration to tox (it was already in travis).
2014-05-18 20:34:30 -04:00
Ben Darnell 00d9ac38ab Twisted 14.0.0 is now (partially) installable on python 3, so test with it.
Consolidate the dependency section of the .travis.yml now that more of our
dependencies are cross-version.
2014-05-13 10:39:26 -04:00
Ben Darnell 99474fe89b Refactor unittest/unittest2 imports to fix issues with unittest2 on py3.
Never use unittest2 on python 3 (it appears to not interoperate with
the standard unittest module).  On python 2, use the same logic in
tornado.testing and tornado.test.util to select an implementation.

Fixes #1005.
2014-03-15 00:46:52 -04:00
Ben Darnell 1eb003f2da Add python 3.4 tests to tox 2014-02-18 00:08:09 -05:00
Ben Darnell f2cae31d18 Add a py26-trollius test case and fix a bug with timedelta on 2.6. 2014-02-16 23:41:15 -05:00
Ben Darnell 43f2f4c4c8 Pin sphinx version to 1.2 in tests.
Sphinx 1.2.1 has a bug that breaks our build:
https://bitbucket.org/birkenfeld/sphinx/pull-request/212/fix-an-exception-introduced-by/diff
2014-01-20 11:57:16 -05:00
Ben Darnell 665bd981df Remove some vestigial references to 2to3. 2014-01-19 18:55:53 -05:00
Ben Darnell 7552caed99 Allow and encourage the use of file objects instead of integer fds in IOLoop.
This fixes a problem in tests in which a closing IOLoop would os.close()
all of its file descriptors while socket objects for those fds still
existed.  When those socket objects were garbage collected, they would
close the fd a second time (by which time it may have been reassigned
to a new socket).

Due to subtleties of garbage collection this has only been observed
with the asyncio event loop in tests of curl_httpclient.
2014-01-18 13:09:18 -05:00
Ben Darnell f52976ae24 Add pycares to the -full tox configs and remove custom resolver tests.
The resolvers are tested in netutil_test when their dependencies are
available, and re-running the entire test suite with a different resolver
is unlikely to expose any new problems.  (the resolver tests are still
present in travis.yml for now, though)
2014-01-17 20:57:57 -05:00
Ben Darnell fda31703c2 Require the extension to be built in tox -full runs. 2014-01-16 23:33:00 -05:00
Ben Darnell 5a9194f7f3 Refactor the unwieldy tox.ini file.
Fill in some gaps in the coverage (mostly on the python 3 side, and
using more consistent dependencies throughout) and move the 3.x tests
that don't care about a specific 3.x version to 3.3.

This is still less thorough than the travis.yml, which runs everything for
every python version.
2014-01-14 23:16:26 -05:00
Ben Darnell db93108daa Now that pycurl 7.19.3 with py3 support is out, add it to tox/travis. 2014-01-10 23:19:25 -05:00
Ben Darnell 2b9f7925d3 Add trollius (py2 backport of asyncio) to tox config.
This passes the twisted integration tests but currently has some issues
with pycurl.
2014-01-07 01:14:37 -05:00
Ben Darnell 0f6caf59e1 Disable --pre flag in tox installs to fix environment recreation.
Remove an old hack for monotime package.
2013-12-30 11:32:38 -05:00
Ben Darnell 0ca7fa01d1 Replace cython-based extension module with a hand-written one.
This avoids the complexity of ensuring that cython is installed
at build time.
2013-11-05 17:58:31 -05:00
Ben Darnell e8dc5e427d Add cython-based speedup for websocket mask function.
This optimization is currently activated only if Cython is present
when Tornado is installed.
2013-10-26 22:13:14 -04:00
Ben Darnell 0d0f583544 Add a tox config for the py33 backport of asyncio.
Update some old comments.
2013-10-26 20:00:27 -04:00
Ben Darnell eea50c08ce Update twisted test blacklist for the newly-released 13.1.0. 2013-06-30 20:25:16 -04:00
Ben Darnell d2e57a336d Revert change to use time.strftime (from 3.0).
time.strftime is influenced by the user's locale (if one is set with
locale.setlocale), so it's not what we want.  Go back to the (slower)
email.utils functions.

Fixes #800.
2013-05-24 00:48:44 -04:00
Ben Darnell 5037e3238b Add py27-docs to tox envlist. 2013-05-24 00:19:46 -04:00
Ben Darnell a0c4003a17 Fix a dangling doc reference, and add a doc check to tox and travis. 2013-05-23 22:57:27 -04:00
Ben Darnell 7431ffe1a0 Fix TwistedIOLoop on python 2.6. 2013-03-08 19:03:49 -05:00
Ben Darnell b02c202b92 Add a c-ares-based resolver implementation. 2013-02-24 12:25:04 -05:00
Ben Darnell 0e44baf700 Add a test that runs TwistedIOLoop on top of TornadoReactor.
This exposed a few more small bugs.
2013-02-23 18:46:08 -05:00