From b4e6a74d7dbd11a41cac4c0f91fd41b1e6bff3e9 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Sat, 10 Feb 2018 16:03:48 +0000 Subject: [PATCH] remove set_start_method --- HISTORY.rst | 4 ++++ aiohttp_devtools/runserver/main.py | 3 --- aiohttp_devtools/version.py | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index cba987d8..c56981fb 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,10 @@ History ------- +0.8.0 (2018-02-XX) +----------------- +* write for aiohttp >= 3 stop using multiprocessing, #173 + 0.7.1 (2018-02-01) ------------------ * set ``Access-Control-Allow-Origin`` for static files, #169 diff --git a/aiohttp_devtools/runserver/main.py b/aiohttp_devtools/runserver/main.py index 1056a8b5..deef03c5 100644 --- a/aiohttp_devtools/runserver/main.py +++ b/aiohttp_devtools/runserver/main.py @@ -1,7 +1,6 @@ import asyncio import contextlib import os -from multiprocessing import set_start_method from ..logs import rs_dft_logger as logger from .config import Config @@ -39,8 +38,6 @@ def runserver(**config_kwargs): :param config_kwargs: see config.Config for more details :return: tuple (auxiliary app, auxiliary app port, event loop) """ - # force a full reload in sub processes so they load an updated version of code, this must be called only once - set_start_method('spawn') config = Config(**config_kwargs) config.import_app_factory() diff --git a/aiohttp_devtools/version.py b/aiohttp_devtools/version.py index b98dfcb6..14054d8c 100644 --- a/aiohttp_devtools/version.py +++ b/aiohttp_devtools/version.py @@ -2,4 +2,4 @@ __all__ = ['VERSION'] -VERSION = StrictVersion('0.7.1') +VERSION = StrictVersion('0.8.0')