Commit graph

161 commits

Author SHA1 Message Date
Andrew Rabert
cda3e18ac9 Check availability with sys.modules 2022-02-02 17:05:17 -05:00
Andrew Rabert
b9e2c3a7c5 Add optional sentry integration 2022-02-02 11:28:34 -05:00
Andrew Rabert
62dd020d42 Release 2.2.0 2020-09-28 09:27:29 -04:00
Gavin M. Roy
9fdb071247
Merge pull request #42 from nvllsvm/xheaders
Default xheaders to true
2020-09-22 10:04:36 -04:00
Dave Shawley
886b559e4f 2.1.2: Fixes for python 3.9. 2020-09-15 09:21:54 -04:00
Andrew Rabert
7c5f9ca0dd Default xheaders to true 2020-08-31 13:38:59 -04:00
Andrew Rabert
bc19924904
Merge pull request #37 from dave-shawley/py39
asyncio.Task.all_tasks was removed in Python 3.9
2020-07-27 13:32:45 -04:00
Dave Shawley
5c103cde0e Deprecation notice for sprockets.http.run.
sprockets.http.run will only accept sprockets.app.Application instances
in the near future.  I'm doing this so that we can clean up the runner
code significantly as we move to using `async` and `await` instead of
futures.
2020-07-18 16:31:32 -04:00
Dave Shawley
9430941e4a Use asyncio.all_tasks if it exists.
Python 3.9 removed ``asyncio.Task.all_tasks`` so I switched to using
``asyncio.all_tasks`` instead.  The ``all_tasks`` function was added
in 3.7 and ``Task.all_tasks`` was deprecated then.
2020-07-18 08:50:20 -04:00
Dave Shawley
de6bfb3261 Update travis CI config.
https://config.travis-ci.com/explore
2020-07-18 07:59:21 -04:00
Dave Shawley
46d0326954 2.1.1: Fix testing with on stop methods. 2020-02-19 10:14:08 -05:00
cknave
07e6f0975a
Merge pull request #35 from dave-shawley/fix-testing
Use loop-specific create_task in Application.stop.
2020-02-19 09:14:31 -05:00
Dave Shawley
e81c4cefb4 Use loop-specific create_task in Application.stop.
Calling asyncio.create_task() requires a running event loop which we
cannot guarantee.  The event loop is not running when stop is called in
the testing.SprocketsHttpTestCase.
2020-02-19 06:37:58 -05:00
Dave Shawley
fd67c42a6a Release 2.1.0 2019-10-09 11:05:19 -04:00
Gavin M. Roy
39ac13d253
Merge pull request #33 from dave-shawley/require-log-config
Require log config
2019-09-12 11:52:04 -04:00
Dave Shawley
e6ef43c050 Deprecate calling run without a logging config. 2019-09-03 07:29:20 -04:00
Dave Shawley
b7b787ee31 Add _ShutdownHandler tests. 2019-09-03 07:05:09 -04:00
Dave Shawley
3c71ae0313 Add missing tests for top-level 2019-09-03 07:05:09 -04:00
Gavin M. Roy
fe4f4a7e38
Merge pull request #32 from dave-shawley/add-testing
Add testing module.
2019-09-02 22:10:51 -04:00
Dave Shawley
c800f9a00f Advertise support for python 3.8 2019-09-02 17:05:52 -04:00
Dave Shawley
cd478d0a3d Add sprockets.http.testing 2019-09-02 08:09:34 -04:00
Dave Shawley
7991f99807 Make shutdown timings configurable. 2019-09-02 08:01:09 -04:00
Dave Shawley
eab16f5f2a Update LICENSE year. 2019-09-02 07:57:24 -04:00
Dave Shawley
d2a1171279 Update development tool versions. 2019-09-02 07:56:11 -04:00
Andrew Rabert
474d4b268b Fix docs 2019-08-30 16:11:17 -04:00
dave-shawley
8baa4cdc1f
Merge pull request #31 from gmr/tornado6
Change pinning of Tornado to include Tornado 6
2019-03-05 14:23:35 -05:00
Gavin M. Roy
33e4ceb704 Change pinning of Tornado to include Tornado 6 2019-03-05 14:17:31 -05:00
Andrew Rabert
ef74068dd4 Update RTD conf 2018-11-29 17:19:25 -05:00
Andrew Rabert
d2c0d4a43d Release version 2.0.0 2018-11-27 17:33:28 -05:00
Andrew Rabert
a6305bedd8
Merge pull request #29 from nvllsvm/tornado5
Add support for Tornado >= 5
2018-11-27 17:27:23 -05:00
Andrew Rabert
63bf39cf4a Simplify doc config 2018-11-26 19:38:35 -05:00
Andrew Rabert
49195dd75a Ensure flake8 compliance in CI 2018-11-26 19:31:40 -05:00
Andrew Rabert
0cdbcd28d8 Add missing changelog link 2018-11-26 19:31:04 -05:00
Andrew Rabert
c68e5e1762 Ensure docs build in CI 2018-11-26 19:30:55 -05:00
Andrew Rabert
c6cfc2bc82 Simplify setup.py 2018-11-26 19:26:34 -05:00
Andrew Rabert
a981861bf1 Use python 3 super 2018-11-26 19:24:30 -05:00
Andrew Rabert
11bc7079c0 Remove explicit object inheritance 2018-11-26 19:03:37 -05:00
Andrew Rabert
78e063963d Remove mock and update tests 2018-11-26 19:03:37 -05:00
Andrew Rabert
234fb6d479 Support only tornado>=5.0
- Drop support for all versions of tornado prior to 5.0. This negates
the need for version-aware conditionals that previous existed.
- Update tox to test Tornado 5.0 and the unpinned latest version.
2018-11-26 19:03:37 -05:00
Andrew Rabert
8dfb33d6cc Drop pypy support 2018-11-26 19:03:37 -05:00
Andrew Rabert
3b30dbb8e2 Drop support for Python < 3.5 2018-11-26 19:03:37 -05:00
Andrew Rabert
378207f331 Reorganize and update requirements
- Move test deps to testing.txt
- Move doc deps to docs.txt. IMO - keeps things clearer
- Unpin flake8
- Require sprockets.http installation in edit mode
2018-11-26 19:03:21 -05:00
Andrew Rabert
008e5d51be Pin Tornado based on Python version 2018-11-26 19:03:21 -05:00
Andrew Rabert
74aaf7bf01 Add support for Tornado >= 5 2018-11-26 19:03:21 -05:00
Andrew Rabert
3a434d43c3
Merge pull request #26 from dave-shawley/signal-safe
Runner: remove logging from signal handler.
2018-08-21 10:51:43 -04:00
Andrew Rabert
c30343e8df Add Python 3.6 and 3.7 to Travis 2018-08-08 15:55:38 -04:00
Dave Shawley
3321987dfc Runner: remove logging from signal handler.
It turns out that logging.Logger SHOULD NOT be used in signal handlers.
We are running into this elsewhere in the system so that is absolutely
no reason to risk it here.

ref: https://docs.python.org/3/library/logging.html#thread-safety
2018-03-15 07:34:09 -04:00
Gavin M. Roy
1868d40e63 Bump the version, license year 2018-01-29 11:27:56 -05:00
Gavin M. Roy
7ef88a34ae
Merge pull request #19 from nvllsvm/master
Avoid RecursionError in test
2018-01-29 11:26:43 -05:00
Gavin M. Roy
615577e092
Merge pull request #24 from dave-shawley/reuse-that-address
Reuse the listening socket address
2018-01-29 11:26:21 -05:00