]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
23 months agoRelease notes for 6.3.3 3309/head
Ben Darnell [Fri, 11 Aug 2023 02:38:19 +0000 (22:38 -0400)] 
Release notes for 6.3.3

23 months agoMerge pull request #3306 from bdarnell/fix-ci
Ben Darnell [Fri, 11 Aug 2023 01:48:27 +0000 (21:48 -0400)] 
Merge pull request #3306 from bdarnell/fix-ci

httpserver_test: Add ExpectLog to fix CI

23 months agohttpserver_test: Add ExpectLog to fix CI 3306/head
Ben Darnell [Fri, 11 Aug 2023 01:41:40 +0000 (21:41 -0400)] 
httpserver_test: Add ExpectLog to fix CI

The github security advisory feature lets you make private PRs but
it apparently doesn't support CI so this log failure wasn't caught
until after the PR was merged.

23 months agoMerge pull request from GHSA-qppv-j76h-2rpx
Ben Darnell [Fri, 11 Aug 2023 01:05:53 +0000 (21:05 -0400)] 
Merge pull request from GHSA-qppv-j76h-2rpx

http1connection: Make content-length parsing more strict

23 months agohttp1connection: Make content-length parsing more strict
Ben Darnell [Wed, 9 Aug 2023 01:55:02 +0000 (21:55 -0400)] 
http1connection: Make content-length parsing more strict

Content-length and chunk size parsing now strictly matches the RFCs.
We previously used the python int() function which accepted leading
plus signs and internal underscores, which are not allowed by the
HTTP RFCs (it also accepts minus signs, but these are less problematic
in this context since they'd result in errors elsewhere)

It is important to fix this because when combined with certain proxies,
the lax parsing could result in a request smuggling vulnerability (if
both Tornado and the proxy accepted an invalid content-length but
interpreted it differently). This is known to occur with old versions
of haproxy, although the current version of haproxy is unaffected.

23 months agoMerge pull request #3305 from bdarnell/redirect-test-windows
Ben Darnell [Wed, 9 Aug 2023 00:33:06 +0000 (20:33 -0400)] 
Merge pull request #3305 from bdarnell/redirect-test-windows

web_test: Fix open redirect test on windows

23 months agoweb_test: Fix open redirect test on windows 3305/head
Ben Darnell [Wed, 9 Aug 2023 00:23:19 +0000 (20:23 -0400)] 
web_test: Fix open redirect test on windows

Drive letters in windows absolute paths mess up this test,
so remove them and use a path relative to the drive root instead.

23 months agoMerge pull request #3304 from Alnusjaponica/fix-typo
Ben Darnell [Mon, 7 Aug 2023 01:44:12 +0000 (21:44 -0400)] 
Merge pull request #3304 from Alnusjaponica/fix-typo

Fix syntax error in docstring

23 months agoFix syntax error in docstring 3304/head
Shinichi Hemmi [Fri, 4 Aug 2023 04:40:02 +0000 (13:40 +0900)] 
Fix syntax error in docstring

2 years agoMerge pull request #3303 from bdarnell/type-updates
Ben Darnell [Thu, 27 Jul 2023 02:13:29 +0000 (22:13 -0400)] 
Merge pull request #3303 from bdarnell/type-updates

Update mypy/typeshed, update a few types

2 years agoioloop: Annotate run_in_executor returning Future, not Awaitable 3303/head
Ben Darnell [Thu, 27 Jul 2023 02:00:20 +0000 (22:00 -0400)] 
ioloop: Annotate run_in_executor returning Future, not Awaitable

This required a recent update to typeshed/mypy.

Fixes #3093

2 years agolint: Update mypy
Ben Darnell [Thu, 27 Jul 2023 01:55:12 +0000 (21:55 -0400)] 
lint: Update mypy

2 years agobuild: Upgrade pip-tools
Ben Darnell [Thu, 27 Jul 2023 01:51:56 +0000 (21:51 -0400)] 
build: Upgrade pip-tools

Fixes a conflict between pip-tools and pip.

2 years agobuild: Move linters to python 3.11
Ben Darnell [Thu, 27 Jul 2023 01:48:03 +0000 (21:48 -0400)] 
build: Move linters to python 3.11

2 years agoMerge pull request #3302 from bdarnell/autoreload-updates
Ben Darnell [Thu, 27 Jul 2023 01:39:07 +0000 (21:39 -0400)] 
Merge pull request #3302 from bdarnell/autoreload-updates

autoreload: Various updates

2 years agoautoreload: Modernize type annotations 3302/head
Ben Darnell [Thu, 27 Jul 2023 01:17:34 +0000 (21:17 -0400)] 
autoreload: Modernize type annotations

2 years agoautoreload: Remove some code for MacOS 10.5 compatibility
Ben Darnell [Thu, 27 Jul 2023 01:02:12 +0000 (21:02 -0400)] 
autoreload: Remove some code for MacOS 10.5 compatibility

2 years agoautoreload: Remove some code for compatibility with py3.3
Ben Darnell [Thu, 27 Jul 2023 01:01:35 +0000 (21:01 -0400)] 
autoreload: Remove some code for compatibility with py3.3

2 years agoautoreload: Add --until-success flag
Ben Darnell [Thu, 27 Jul 2023 00:15:12 +0000 (20:15 -0400)] 
autoreload: Add --until-success flag

This flag terminates the autoreload loop after the first successful
run. This makes it possible to cleanly shut down a process that is using
"python -m tornado.autoreload" without printing a traceback.

Fixes #2398

2 years agoMerge pull request #3300 from tornadoweb/dependabot/pip/certifi-2023.7.22
Ben Darnell [Wed, 26 Jul 2023 00:18:21 +0000 (20:18 -0400)] 
Merge pull request #3300 from tornadoweb/dependabot/pip/certifi-2023.7.22

build(deps): bump certifi from 2022.12.7 to 2023.7.22

2 years agobuild(deps): bump certifi from 2022.12.7 to 2023.7.22 3300/head
dependabot[bot] [Tue, 25 Jul 2023 21:07:47 +0000 (21:07 +0000)] 
build(deps): bump certifi from 2022.12.7 to 2023.7.22

Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.12.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2022.12.07...2023.07.22)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoautoreload: Support directories in CLI wrapper
Ben Darnell [Sun, 23 Jul 2023 02:10:18 +0000 (22:10 -0400)] 
autoreload: Support directories in CLI wrapper

A previous commit added support for using autoreload within programs
that were started as directories; this commit supports them when
run with the -m tornado.autoreload wrapper.

This change may have side effects for file mode since we now use
runpy.run_path instead of executing the file by hand (I don't think
the run_path function existed when this code was originally written).

2 years agoautoreload_test: Reduce repetition
Ben Darnell [Sun, 23 Jul 2023 01:42:22 +0000 (21:42 -0400)] 
autoreload_test: Reduce repetition

2 years agoautoreload: Switch to a real option parser
Ben Darnell [Sun, 23 Jul 2023 01:09:36 +0000 (21:09 -0400)] 
autoreload: Switch to a real option parser

This will make it easier to add other options (for #2398)

2 years agoautoreload: Support the ability to run a directory instead of a module
Ben Darnell [Fri, 14 Jul 2023 00:57:11 +0000 (20:57 -0400)] 
autoreload: Support the ability to run a directory instead of a module

Running a directory has some but not all of the behavior of
running a module, including setting __spec__, so we must be careful
not to break things by assuming that __spec__ means module mode.

Fixes #2855

2 years agoMerge pull request #3297 from tornadoweb/dependabot/pip/pygments-2.15.0
Ben Darnell [Sat, 22 Jul 2023 18:20:42 +0000 (14:20 -0400)] 
Merge pull request #3297 from tornadoweb/dependabot/pip/pygments-2.15.0

build(deps): bump pygments from 2.14.0 to 2.15.0

2 years agobuild(deps): bump pygments from 2.14.0 to 2.15.0 3297/head
dependabot[bot] [Thu, 20 Jul 2023 12:05:51 +0000 (12:05 +0000)] 
build(deps): bump pygments from 2.14.0 to 2.15.0

Bumps [pygments](https://github.com/pygments/pygments) from 2.14.0 to 2.15.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.14.0...2.15.0)

---
updated-dependencies:
- dependency-name: pygments
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3295 from bdarnell/remove-asyncio-atexit
Ben Darnell [Sat, 8 Jul 2023 01:26:30 +0000 (21:26 -0400)] 
Merge pull request #3295 from bdarnell/remove-asyncio-atexit

asyncio: Remove atexit hook

2 years agoasyncio: Remove atexit hook 3295/head
Ben Darnell [Sat, 8 Jul 2023 01:19:18 +0000 (21:19 -0400)] 
asyncio: Remove atexit hook

This hook was added because of an only-in-CI issue, but we have since
improved our cleanup of the selector thread. As long as this passes
CI, I think we can remove the atexit hook.

Fixes #3291

2 years agoMerge pull request #3294 from bdarnell/auth-updates
Ben Darnell [Sat, 8 Jul 2023 01:17:46 +0000 (21:17 -0400)] 
Merge pull request #3294 from bdarnell/auth-updates

auth: Various updates

2 years agoauth: Fix doctests 3294/head
Ben Darnell [Sat, 8 Jul 2023 00:46:14 +0000 (20:46 -0400)] 
auth: Fix doctests

2 years agoauth: Copy google mixin comment to top-of-file
Ben Darnell [Sat, 8 Jul 2023 00:31:18 +0000 (20:31 -0400)] 
auth: Copy google mixin comment to top-of-file

2 years agoauth: Use a setting for facebook redirect url
Ben Darnell [Sat, 8 Jul 2023 00:09:36 +0000 (20:09 -0400)] 
auth: Use a setting for facebook redirect url

Matches a change made to the Google auth mixin in a previous commit.

Fixes #756

2 years agoauth: Update facebook scope
Ben Darnell [Sat, 8 Jul 2023 00:04:27 +0000 (20:04 -0400)] 
auth: Update facebook scope

The read_stream scope was replaced with user_posts; this change
was made to demos/facebook/facebook.py in #1674 but the corresponding
comment was not updated. The offline_access scope has also been removed
but seems irrelvant to this comment.

Fixes #1566

2 years agodemos: Add a demo app for google auth
Ben Darnell [Fri, 7 Jul 2023 23:37:45 +0000 (19:37 -0400)] 
demos: Add a demo app for google auth

Add some more detail to app registration docs.

This was done mainly to verify that we don't need to introduce
new parameters as requested in #2140

Closes #2140

2 years agoauth: Deprecate TwitterMixin
Ben Darnell [Mon, 19 Jun 2023 20:12:24 +0000 (16:12 -0400)] 
auth: Deprecate TwitterMixin

It's unclear to what extent this class still works given Twitter's
recent API changes. Deprecate it since I don't intend to track
future changes here.

2 years agoauth: Deprecate unused client_secret parameter
Ben Darnell [Mon, 19 Jun 2023 19:54:01 +0000 (15:54 -0400)] 
auth: Deprecate unused client_secret parameter

OAuth2Mixin.authorize_redirect has never used this argument
and similar methods in this module don't have it.

Closes #1122

2 years agoMerge pull request #3276 from bdarnell/open-redirect-test
Ben Darnell [Thu, 22 Jun 2023 01:33:38 +0000 (21:33 -0400)] 
Merge pull request #3276 from bdarnell/open-redirect-test

test: Add test for open redirect fixed in 6.3.2

2 years agotest: Add test for open redirect fixed in 6.3.2 3276/head
Ben Darnell [Wed, 7 Jun 2023 02:48:05 +0000 (22:48 -0400)] 
test: Add test for open redirect fixed in 6.3.2

2 years agoMerge pull request #3288 from bdarnell/enable-312
Ben Darnell [Thu, 22 Jun 2023 01:15:05 +0000 (21:15 -0400)] 
Merge pull request #3288 from bdarnell/enable-312

Updates for Python 3.12

2 years ago*: Adapt to deprecation of datetime utc methods 3288/head
Ben Darnell [Fri, 9 Jun 2023 02:52:19 +0000 (22:52 -0400)] 
*: Adapt to deprecation of datetime utc methods

Python 3.12 deprecates the utcnow and utcfromtimestamp methods and
discourages the use of naive datetimes to represent UTC. This was
previously the main way that Tornado used datetimes (since it was
the only option available in Python 2 before the introduction
of datetime.timezone.utc in Python 3.2).

- httpclient_test: Test-only change to test that both kinds of datetimes
  are supported in If-Modified-Since (this just calls
  httputil.format_timestamp)
- httputil: No functional changes, but format_timestamp's
  support for both naive and aware datetimes is now tested.
- locale: format_timestamp now supports aware datetimes (in
  addition to the existing support for naive datetimes).
- web: Cookie expirations internally use aware datetimes.
  StaticFileHandler.get_modified_time now supports both and the
  standard implementation returns aware.

It feels fragile that "naive" and "aware" datetimes are not distinct
types but subject to data-dependent behavior. This change uses
"aware" datetimes throughout Tornado, but some operations (comparisons
and subtraction) fail with mixed datetime types and if I missed any
in this change may cause errors if naive datetimes were used (where
previously naive datetimes would have been required). But that's
apparently the API we have to work with.

2 years agobuild: Upgrade tox to support python 3.12
Ben Darnell [Wed, 7 Jun 2023 03:25:38 +0000 (23:25 -0400)] 
build: Upgrade tox to support python 3.12

2 years agoci: Re-enable python 3.12
Ben Darnell [Thu, 22 Jun 2023 00:53:19 +0000 (20:53 -0400)] 
ci: Re-enable python 3.12

Now that python/cpython#105808 is fixed in beta 3.

2 years agoMerge pull request #3284 from bdarnell/asyncio-test
Ben Darnell [Mon, 19 Jun 2023 19:39:00 +0000 (15:39 -0400)] 
Merge pull request #3284 from bdarnell/asyncio-test

asyncio_test: Use inequality when looking for thread leaks

2 years agoasyncio_test: Remove obsolete py3.4 compatibility 3284/head
Ben Darnell [Mon, 19 Jun 2023 19:30:48 +0000 (15:30 -0400)] 
asyncio_test: Remove obsolete py3.4 compatibility

2 years agoasyncio_test: Use inequality when checking thread leaks
Ben Darnell [Mon, 19 Jun 2023 19:28:45 +0000 (15:28 -0400)] 
asyncio_test: Use inequality when checking thread leaks

Sometimes we have a net reduction in the thread count
because there was an extra thread running at the time captured
the starting count, so use inequality instead of exact matches.

2 years agoMerge pull request #3283 from bdarnell/asyncio-types
Ben Darnell [Mon, 19 Jun 2023 19:31:05 +0000 (15:31 -0400)] 
Merge pull request #3283 from bdarnell/asyncio-types

asyncio: Modernize type annotations

2 years agoasyncio: Modernize type annotations 3283/head
Ben Darnell [Mon, 19 Jun 2023 19:24:54 +0000 (15:24 -0400)] 
asyncio: Modernize type annotations

2 years agoMerge pull request #3272 from bdarnell/asyncio-canary
Ben Darnell [Mon, 19 Jun 2023 17:45:41 +0000 (13:45 -0400)] 
Merge pull request #3272 from bdarnell/asyncio-canary

asyncio: Use a canary task to detect end of event loop

2 years agoasyncio: Manage the selector thread with an async generator 3272/head
Ben Darnell [Wed, 17 May 2023 00:57:50 +0000 (20:57 -0400)] 
asyncio: Manage the selector thread with an async generator

Async generators have a special shutdown protocol which allows
us to detect the end of the event loop and stop our thread.
This lets us clean up the thread reliably when the event loop
is started/stopped via the tornado IOLoop interfaces (which
explicitly know about the selector thread), or when the
latest asyncio interfaces are used (asyncio.run or manually
calling shutdown_asyncgens).

The thread is still leaked when older versions of the asyncio
interfaces are used (loop.close *without* shutdown_asyncgens), but
I've been unable to find a solution that does not print leak warnings
even in the event of a clean shutdown. Use of shutdown_asyncgens is
now effectively required for apps combining asyncio and tornado.
This is unfortunate since leaking a thread is relatively expensive
compared to the usual consequences of failing to call
shutdown_asyncgens, but it seems to be the best we can do.

Fixes #3173

2 years agoMerge pull request #3280 from bdarnell/disable-312
Ben Darnell [Thu, 15 Jun 2023 01:41:51 +0000 (21:41 -0400)] 
Merge pull request #3280 from bdarnell/disable-312

ci: Disable Python 3.12 in CI

2 years agoci: Disable Python 3.12 in CI 3280/head
Ben Darnell [Thu, 15 Jun 2023 01:31:32 +0000 (21:31 -0400)] 
ci: Disable Python 3.12 in CI

Current betas have a bug in GzipFile we can't easily work around.
https://github.com/python/cpython/issues/105808

2 years agoMerge pull request #3273 from tornadoweb/dependabot/pip/requests-2.31.0
Ben Darnell [Sat, 27 May 2023 03:00:42 +0000 (23:00 -0400)] 
Merge pull request #3273 from tornadoweb/dependabot/pip/requests-2.31.0

build(deps): bump requests from 2.28.2 to 2.31.0

2 years agobuild(deps): bump requests from 2.28.2 to 2.31.0 3273/head
dependabot[bot] [Tue, 23 May 2023 05:57:30 +0000 (05:57 +0000)] 
build(deps): bump requests from 2.28.2 to 2.31.0

Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoMerge pull request #3029 from minrk/reuse-selector
Ben Darnell [Mon, 15 May 2023 02:15:04 +0000 (22:15 -0400)] 
Merge pull request #3029 from minrk/reuse-selector

separate SelectorThread into its own object

2 years agoMerge branch 'master' into pr/minrk/3029 3029/head
Ben Darnell [Mon, 15 May 2023 02:02:44 +0000 (22:02 -0400)] 
Merge branch 'master' into pr/minrk/3029

2 years agoMerge pull request #3269 from bdarnell/refer-to-all-tasks
Ben Darnell [Mon, 15 May 2023 01:34:12 +0000 (21:34 -0400)] 
Merge pull request #3269 from bdarnell/refer-to-all-tasks

gen: Hold strong references to all asyncio.Tasks

2 years agogen: Hold strong references to all asyncio.Tasks 3269/head
Ben Darnell [Mon, 15 May 2023 01:03:52 +0000 (21:03 -0400)] 
gen: Hold strong references to all asyncio.Tasks

Per the warning in the asyncio documentation, we need to hold a strong
reference to all asyncio Tasks to prevent premature GC. Following
discussions in cpython (https://github.com/python/cpython/issues/91887),
we hold these references on the IOLoop instance to ensure that they are
strongly held but do not cause leaks if the event loop itself is
discarded.

This is expected to fix all of the various "task was destroyed but
it is pending" warnings that have been reported. The
IOLoop._pending_tasks set is expected to become obsolete if
corresponding changes are made to asyncio in Python 3.13.

Fixes #3209
Fixes #3047
Fixes #2763

Some issues involve this warning as their most visible symptom,
but have an underlying cause that should still be addressed.
Updates #2914
Updates #2356

2 years agoMerge pull request #3268 from bdarnell/main-branch-relnotes
Ben Darnell [Sun, 14 May 2023 20:14:31 +0000 (16:14 -0400)] 
Merge pull request #3268 from bdarnell/main-branch-relnotes

Copy version 6.3.2 release notes to main branch

2 years agoVersion 6.3.2 3268/head
Ben Darnell [Sun, 14 May 2023 01:31:48 +0000 (21:31 -0400)] 
Version 6.3.2

2 years agoMerge pull request #3266 from bdarnell/fix-open-redirect
Ben Darnell [Sun, 14 May 2023 01:27:59 +0000 (21:27 -0400)] 
Merge pull request #3266 from bdarnell/fix-open-redirect

web: Fix an open redirect in StaticFileHandler

2 years agoweb: Fix an open redirect in StaticFileHandler 3266/head
Ben Darnell [Sun, 14 May 2023 00:58:52 +0000 (20:58 -0400)] 
web: Fix an open redirect in StaticFileHandler

Under some configurations the default_filename redirect could be exploited
to redirect to an attacker-controlled site. This change refuses to redirect
to URLs that could be misinterpreted.

A test case for the specific vulnerable configuration will follow after the
patch has been available.

2 years agoMerge pull request #3264 from bdarnell/websocket-client-warning
Ben Darnell [Mon, 8 May 2023 01:47:52 +0000 (21:47 -0400)] 
Merge pull request #3264 from bdarnell/websocket-client-warning

websocket: Add warning if client connection isn't closed cleanly

2 years agowebsocket: Add warning if client connection isn't closed cleanly 3264/head
Ben Darnell [Sun, 7 May 2023 21:03:33 +0000 (17:03 -0400)] 
websocket: Add warning if client connection isn't closed cleanly

This gives a warning that is not dependent on GC for the issue
in #3257. This new warning covers all websocket client connections,
while the previous GC-dependent warning only affected those with
ping_interval set. This unfortunately introduces an effective
requirement to close all websocket clients explicitly for those
who are strict about warnings.

2 years agoMerge pull request #3263 from bdarnell/tox-sdist
Ben Darnell [Wed, 3 May 2023 16:52:53 +0000 (12:52 -0400)] 
Merge pull request #3263 from bdarnell/tox-sdist

setup: Include tox.ini in sdist

2 years agosetup: Include tox.ini in sdist 3263/head
Ben Darnell [Wed, 3 May 2023 16:46:28 +0000 (12:46 -0400)] 
setup: Include tox.ini in sdist

Also remove the demos directory from sdist. This inclusion was incomplete
and even if it were incomplete I don't think the sdist is a great way to
distribute these demos.

Fixes #3253

2 years agoMerge pull request #3262 from bdarnell/build-dispatch
Ben Darnell [Tue, 2 May 2023 23:33:28 +0000 (19:33 -0400)] 
Merge pull request #3262 from bdarnell/build-dispatch

ci: Enable manual dispatch for build workflow

2 years agoci: Enable manual dispatch for build workflow 3262/head
Ben Darnell [Tue, 2 May 2023 23:12:04 +0000 (19:12 -0400)] 
ci: Enable manual dispatch for build workflow

Replace the use of a special branch name for testing.

2 years agoMerge pull request #3261 from bdarnell/callback-from-signal
Ben Darnell [Tue, 2 May 2023 17:16:04 +0000 (13:16 -0400)] 
Merge pull request #3261 from bdarnell/callback-from-signal

ioloop: Deprecate add_callback_from_signal

2 years agoioloop: Deprecate add_callback_from_signal 3261/head
Ben Darnell [Tue, 2 May 2023 16:54:20 +0000 (12:54 -0400)] 
ioloop: Deprecate add_callback_from_signal

I don't believe this method is currently working as intended, and I'm
not sure it ever has since the move to asyncio. I think this is
responsible for occasional test failures in CI.

Fixes #3225

2 years agoMerge pull request #3260 from bdarnell/streamline-tests
Ben Darnell [Mon, 1 May 2023 22:02:49 +0000 (18:02 -0400)] 
Merge pull request #3260 from bdarnell/streamline-tests

test: Streamline test configurations

2 years agotest: Streamline test configurations 3260/head
Ben Darnell [Mon, 1 May 2023 21:10:27 +0000 (17:10 -0400)] 
test: Streamline test configurations

- LANG tests were no longer having the intended effect because C locales
  now default to utf8 instead of ascii. There's a new warning we can turn
  on with an env var instead. (after cleaing up some tests)
- The tox install_command issue was reverted in tox 1.9
- Python now guarantees that __file__ is absolute
- Remove some obsolete warning manipulations

2 years agoMerge pull request #3259 from bdarnell/version-bump
Ben Darnell [Mon, 1 May 2023 20:31:54 +0000 (16:31 -0400)] 
Merge pull request #3259 from bdarnell/version-bump

Bump main branch version number to 6.4.dev1

2 years agoBump main branch version number to 6.4.dev1 3259/head
Ben Darnell [Mon, 1 May 2023 20:18:31 +0000 (16:18 -0400)] 
Bump main branch version number to 6.4.dev1

2 years agoMerge pull request #3257 from bdarnell/build-workflow-wstest-warning
Ben Darnell [Mon, 24 Apr 2023 02:56:29 +0000 (22:56 -0400)] 
Merge pull request #3257 from bdarnell/build-workflow-wstest-warning

test: Close a websocket client that causes occasional test failures

2 years agoci: Only run pypi actions from the main repo 3257/head
Ben Darnell [Mon, 24 Apr 2023 00:35:29 +0000 (20:35 -0400)] 
ci: Only run pypi actions from the main repo

These will fail when run from forks because the necessary
credentials aren't available.

2 years agotest: Close a websocket client that causes occasional test failures
Ben Darnell [Sun, 23 Apr 2023 19:15:05 +0000 (15:15 -0400)] 
test: Close a websocket client that causes occasional test failures

These failures occur on the build.yml workflow on the emulated arm64
platform: an ill-timed timer firing during test shutdown can result
in a message being logged and the test failing for dirty logs.

2 years agoMerge pull request #3256 from bdarnell/build-workflow-qemu
Ben Darnell [Sat, 22 Apr 2023 02:03:37 +0000 (22:03 -0400)] 
Merge pull request #3256 from bdarnell/build-workflow-qemu

ci: Update setup-qemu-action version

2 years agoci: Update setup-qemu-action version 3256/head
Ben Darnell [Fri, 21 Apr 2023 23:41:15 +0000 (19:41 -0400)] 
ci: Update setup-qemu-action version

Eliminates some more deprecation warnings

2 years agoMerge pull request #3255 from bdarnell/bump-version-6.3.1 v6.3.1
Ben Darnell [Fri, 21 Apr 2023 20:32:42 +0000 (16:32 -0400)] 
Merge pull request #3255 from bdarnell/bump-version-6.3.1

Bump version to 6.3.1

2 years agoBump version to 6.3.1 3255/head
Ben Darnell [Fri, 21 Apr 2023 20:25:57 +0000 (16:25 -0400)] 
Bump version to 6.3.1

2 years agoMerge pull request #3254 from bdarnell/fix-set-cookie-case
Ben Darnell [Fri, 21 Apr 2023 20:24:15 +0000 (16:24 -0400)] 
Merge pull request #3254 from bdarnell/fix-set-cookie-case

web: Restore case-insensitivity of set_cookie args

2 years agoweb: Restore case-insensitivity of set_cookie args 3254/head
Ben Darnell [Fri, 21 Apr 2023 19:30:07 +0000 (15:30 -0400)] 
web: Restore case-insensitivity of set_cookie args

This was an unintended feature that got broken in #3224. Bring it back
for now but deprecate it for future cleanup.

Fixes #3252

2 years agoMerge pull request #3251 from bdarnell/release-6.3 v6.3.0
Ben Darnell [Tue, 18 Apr 2023 01:13:03 +0000 (21:13 -0400)] 
Merge pull request #3251 from bdarnell/release-6.3

Set version to 6.3 final

2 years agoSet version to 6.3 final 3251/head
Ben Darnell [Tue, 18 Apr 2023 01:06:12 +0000 (01:06 +0000)] 
Set version to 6.3 final

2 years agoMerge pull request #3250 from bdarnell/build-workflow-update
Ben Darnell [Sun, 9 Apr 2023 21:38:26 +0000 (17:38 -0400)] 
Merge pull request #3250 from bdarnell/build-workflow-update

ci: Update build workflow

2 years agoci: Update build workflow 3250/head
Ben Darnell [Sun, 9 Apr 2023 21:31:38 +0000 (21:31 +0000)] 
ci: Update build workflow

Build wheels for Python 3.12 as well.
Update various dependencies. The upload/download artifact actions
were using deprecated versions, and we were using a deprecated
macos build image. While we're at it, update the other OS versions
and cibuildwheel.

2 years agoMerge pull request #3249 from bdarnell/version-6.3b1 v6.3.0b1
Ben Darnell [Sun, 9 Apr 2023 20:45:26 +0000 (16:45 -0400)] 
Merge pull request #3249 from bdarnell/version-6.3b1

Set version number to 6.3b1

2 years agoSet version number to 6.3b1 3249/head
Ben Darnell [Sun, 9 Apr 2023 20:37:45 +0000 (20:37 +0000)] 
Set version number to 6.3b1

2 years agoMerge pull request #3248 from bdarnell/auto-import
Ben Darnell [Sat, 8 Apr 2023 20:04:16 +0000 (16:04 -0400)] 
Merge pull request #3248 from bdarnell/auto-import

typing: Eagerly import all submodules in __init__.pyi

2 years agotyping: Eagerly import all submodules in __init__.pyi 3248/head
Ben Darnell [Sat, 8 Apr 2023 19:42:05 +0000 (19:42 +0000)] 
typing: Eagerly import all submodules in __init__.pyi

This makes the auto-import functionality compatible with mypy
and other typing-based tools such as autocomplete functionality.
Excluding these imports from static typing feels like a premature
optimization and made it much less appealing to make use of the
auto-imports.

This may slow down type checking of applications that use Tornado by
a little, since the type checker must now process all of Tornado and
not only the subset that was imported. However, the increasing use
of long-lived daemons for type checkers should mitigate this cost.

2 years agoMerge pull request #3247 from bdarnell/websocket-update
Ben Darnell [Sat, 8 Apr 2023 19:25:09 +0000 (15:25 -0400)] 
Merge pull request #3247 from bdarnell/websocket-update

websocket: Add resolver argument to websocket_connect

2 years agowebsocket: Remove some obsolete comments 3247/head
Ben Darnell [Sat, 8 Apr 2023 18:29:18 +0000 (18:29 +0000)] 
websocket: Remove some obsolete comments

Old browser versions that do not support websockets have long since
faded from use.

2 years agowebsocket: Add resolver argument to websocket_connect
Ben Darnell [Sat, 8 Apr 2023 18:25:08 +0000 (18:25 +0000)] 
websocket: Add resolver argument to websocket_connect

This is the public interface, but when the resolver argument was added
it was only added to the supporting WebSocketClientConnection class.

2 years agoMerge pull request #3246 from bdarnell/release-notes-6.3
Ben Darnell [Sat, 8 Apr 2023 18:14:55 +0000 (14:14 -0400)] 
Merge pull request #3246 from bdarnell/release-notes-6.3

docs: Add release notes for 6.3

2 years agodocs: Add release notes for 6.3 3246/head
Ben Darnell [Fri, 7 Apr 2023 20:42:18 +0000 (20:42 +0000)] 
docs: Add release notes for 6.3

2 years agoMerge pull request #3245 from vargenau/use-spdx-license-identifier
Ben Darnell [Fri, 31 Mar 2023 14:00:25 +0000 (10:00 -0400)] 
Merge pull request #3245 from vargenau/use-spdx-license-identifier

Use SPDX license identifier

2 years agoUse SPDX license identifier 3245/head
Marc-Etienne Vargenau [Fri, 31 Mar 2023 13:26:28 +0000 (15:26 +0200)] 
Use SPDX license identifier

Use SPDX license identifier: Apache-2.0
This will help tools to produce valid SPDX.

Signed-off-by: Marc-Etienne Vargenau <marc-etienne.vargenau@nokia.com>
2 years agoMerge pull request #3244 from bdarnell/xsrf-rename
Ben Darnell [Thu, 30 Mar 2023 20:54:53 +0000 (16:54 -0400)] 
Merge pull request #3244 from bdarnell/xsrf-rename

web: Support renaming the XSRF cookie

2 years agoweb: Support renaming the XSRF cookie 3244/head
Ben Darnell [Thu, 30 Mar 2023 20:03:28 +0000 (20:03 +0000)] 
web: Support renaming the XSRF cookie

This makes it possible to use the __Host- cookie prefix for increased
security