sanic/sanic
L. Kärkkäinen 230941ff4f
Fix reloader on OSX py38 and Windows (#1827)
* Fix watchdog reload worker repeatedly if there are multiple changed files

* Simplify autoreloader, don't need multiprocessing.Process. Now works on OSX py38.

* Allow autoreloader with multiple workers and run it earlier.

* This works OK on Windows too.

* I don't see how cwd could be different here.

* app.run and app.create_server argument fixup.

* Add test for auto_reload (coverage not working unfortunately).

* Reloader cleanup, don't use external kill commands and exit normally.

* Strip newlines on test output (Windows-compat).

* Report failures in test_auto_reload to avoid timeouts.

* Use different test server ports to avoid binding problems on Windows.

* Fix previous commit

* Listen on same port after reload.

* Show Goin' Fast banner on reloads.

* More robust testing, also -m sanic.

* Add a timeout to terminate process

* Try a workaround for tmpdir deletion on Windows.

* Join process also on error (context manager doesn't).

* Cleaner autoreloader termination on Windows.

* Remove unused code.

* Rename test.

* Longer timeout on test exit.

Co-authored-by: Hùng X. Lê <lexhung@gmail.com>
Co-authored-by: L. Kärkkäinen <tronic@users.noreply.github.com>
Co-authored-by: Adam Hopkins <admhpkns@gmail.com>
2020-06-03 16:45:07 +03:00
..
__init__.py fix: #1631: linter fix and tox platform selector 2019-07-13 21:48:26 +05:30
__main__.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
__version__.py release 20.3.0 (#1844) 2020-05-12 16:58:42 -07:00
app.py Fix reloader on OSX py38 and Windows (#1827) 2020-06-03 16:45:07 +03:00
asgi.py Swap out requests-async for httpx (#1728) 2019-12-20 19:23:52 -08:00
blueprint_group.py Add a type checking pipeline (#1682) 2019-09-22 13:55:36 -07:00
blueprints.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
compat.py Fix Ctrl+C and tests on Windows. (#1808) 2020-03-25 21:42:46 -07:00
config.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
constants.py run black against sanic module 2018-10-13 17:55:33 -07:00
cookies.py HTTP1 header formatting moved to headers.format_headers and rewritten. (#1669) 2019-12-23 17:30:45 -06:00
errorpages.py No tracebacks on normal errors and prettier error pages (#1768) 2020-01-20 08:58:14 -06:00
exceptions.py Do not set content-type and content-length headers in exceptions. (#1820) 2020-04-25 20:18:59 -07:00
handlers.py No tracebacks on normal errors and prettier error pages (#1768) 2020-01-20 08:58:14 -06:00
headers.py More robust response datatype handling (#1674) 2020-01-20 10:34:32 -06:00
helpers.py Update helpers.py (#1693) 2019-10-08 16:29:03 -07:00
log.py fix the logger and make it work (#1397) 2018-11-06 08:39:38 -06:00
reloader_helpers.py Fix reloader on OSX py38 and Windows (#1827) 2020-06-03 16:45:07 +03:00
request.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
response.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
router.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
server.py Remove server config args that can be read directly from app. (#1807) 2020-04-08 22:10:58 -07:00
static.py Fix static _handler pickling error. 2020-05-07 11:58:36 +10:00
testing.py Import ASGIDispatch from top-level httpx (#1806) 2020-04-10 12:03:51 -07:00
views.py Replaced str.format() method in core functionality (#1819) 2020-04-06 12:45:25 -07:00
websocket.py Support websockets 8.x as well as 7.x (#1687) 2019-10-01 23:03:09 -07:00
worker.py Add a type checking pipeline (#1682) 2019-09-22 13:55:36 -07:00