From 18a41fe53611d059e1f76d190e0819c728d31b39 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sat, 21 Nov 2026 21:17:24 +0000 Subject: [PATCH 1/5] [bot] Release v1.2 --- CHANGES.txt | 28 ++++++++++++++++++++++++++++ aiohttp_devtools/__init__.py | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 818a6cfd..6906ed03 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,33 @@ .. towncrier release notes start +1.2 (2026-11-21) +================ + +* Changed the servers to listen on ``localhost`` by default, instead of on all network + interfaces. Added a ``-b/--bind`` option (``AIO_BIND_ADDRESS`` env variable) to + ``runserver`` and ``serve`` to listen on another address, e.g. ``--bind 0.0.0.0`` + for the previous behaviour. +* Added HTTPS support to ``runserver``. ``--ssl-context-factory`` names a function in the + app's module which returns the ``ssl.SSLContext`` to serve with, and ``--ssl-rootcert`` + gives the root certificate to trust when a self-signed certificate is used. +* Added support for Python 3.12, 3.13, 3.14 and 3.15, and dropped support for Python 3.8, + 3.9 and 3.10. +* Enabled asyncio's debug mode when running the app, which reports problems such as code + blocking the event loop. +* Updated ``livereload.js`` from v2.2.1 to v4.0.3. It is now served with an ``ETag``, so + that browsers don't keep using a copy cached from a previous version. +* Fixed a 500 error when a static file which doesn't exist is requested with aiohttp 3.10+. +* Fixed the file watcher crashing when a file other than a ``.py`` file changed while + ``--static`` was not used, after which nothing was reloaded or restarted. +* Fixed live reload not working when ``adev serve`` is given a relative path, or serves on + port 80 or 443. +* Fixed a change to a static file prompting two reloads when the static directory is inside + the project. +* Fixed the app being imported from the wrong place when a module with the same name comes + earlier in ``sys.path``. +* Fixed connections being reset while the dev server is starting. +* Fixed the name of the env variable in the help for ``--static`` (``AIO_STATIC_PATH``). + 1.1.2 (2023-12-07) ================== diff --git a/aiohttp_devtools/__init__.py b/aiohttp_devtools/__init__.py index 72f26f59..b2a95f90 100644 --- a/aiohttp_devtools/__init__.py +++ b/aiohttp_devtools/__init__.py @@ -1 +1 @@ -__version__ = "1.1.2" +__version__ = "1.2" From 08d8a53eb5615e34c9617f029e576e0865b75a7a Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 22 Nov 2026 20:39:22 +0000 Subject: [PATCH 2/5] [bot] Add the shutdown fixes to the 1.2 changelog --- CHANGES.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 6906ed03..171222c3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,6 @@ .. towncrier release notes start -1.2 (2026-11-21) +1.2 (2026-11-22) ================ * Changed the servers to listen on ``localhost`` by default, instead of on all network @@ -16,6 +16,12 @@ blocking the event loop. * Updated ``livereload.js`` from v2.2.1 to v4.0.3. It is now served with an ``ETag``, so that browsers don't keep using a copy cached from a previous version. +* Fixed the app's cleanup (``on_shutdown``, ``on_cleanup`` and cleanup contexts) being + cancelled when ``runserver`` is stopped with Ctrl+C, and being skipped when the app is + stopped or restarted while its code is running, e.g. during a request. The app is now + asked to stop serving instead of being interrupted with ``KeyboardInterrupt``, so code + which blocks the event loop delays the stop. As before, the app is killed if it has not + stopped after 5 seconds. * Fixed a 500 error when a static file which doesn't exist is requested with aiohttp 3.10+. * Fixed the file watcher crashing when a file other than a ``.py`` file changed while ``--static`` was not used, after which nothing was reloaded or restarted. From e217be246a61dadd587e9416ace1c01239ecc1a8 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 22 Nov 2026 21:02:52 +0000 Subject: [PATCH 3/5] Apply suggestions from code review --- CHANGES.txt | 7 +------ aiohttp_devtools/__init__.py | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 171222c3..ce2830b4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,18 +10,13 @@ * Added HTTPS support to ``runserver``. ``--ssl-context-factory`` names a function in the app's module which returns the ``ssl.SSLContext`` to serve with, and ``--ssl-rootcert`` gives the root certificate to trust when a self-signed certificate is used. -* Added support for Python 3.12, 3.13, 3.14 and 3.15, and dropped support for Python 3.8, - 3.9 and 3.10. * Enabled asyncio's debug mode when running the app, which reports problems such as code blocking the event loop. * Updated ``livereload.js`` from v2.2.1 to v4.0.3. It is now served with an ``ETag``, so that browsers don't keep using a copy cached from a previous version. * Fixed the app's cleanup (``on_shutdown``, ``on_cleanup`` and cleanup contexts) being cancelled when ``runserver`` is stopped with Ctrl+C, and being skipped when the app is - stopped or restarted while its code is running, e.g. during a request. The app is now - asked to stop serving instead of being interrupted with ``KeyboardInterrupt``, so code - which blocks the event loop delays the stop. As before, the app is killed if it has not - stopped after 5 seconds. + stopped or restarted while its code is running, e.g. during a request. * Fixed a 500 error when a static file which doesn't exist is requested with aiohttp 3.10+. * Fixed the file watcher crashing when a file other than a ``.py`` file changed while ``--static`` was not used, after which nothing was reloaded or restarted. diff --git a/aiohttp_devtools/__init__.py b/aiohttp_devtools/__init__.py index b2a95f90..c68196d1 100644 --- a/aiohttp_devtools/__init__.py +++ b/aiohttp_devtools/__init__.py @@ -1 +1 @@ -__version__ = "1.2" +__version__ = "1.2.0" From 5e038c7de86156cf681da750a556e27c04b467db Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 22 Nov 2026 21:03:12 +0000 Subject: [PATCH 4/5] Update aiohttp_devtools/__init__.py --- aiohttp_devtools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp_devtools/__init__.py b/aiohttp_devtools/__init__.py index c68196d1..b2a95f90 100644 --- a/aiohttp_devtools/__init__.py +++ b/aiohttp_devtools/__init__.py @@ -1 +1 @@ -__version__ = "1.2.0" +__version__ = "1.2" From 9510437682a483d4f768d22c06489905540d0f46 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 22 Nov 2026 21:03:56 +0000 Subject: [PATCH 5/5] Apply suggestions from code review --- CHANGES.txt | 4 ++-- aiohttp_devtools/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index ce2830b4..8401700c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,7 +1,7 @@ .. towncrier release notes start -1.2 (2026-11-22) -================ +1.2.0 (2026-11-22) +================== * Changed the servers to listen on ``localhost`` by default, instead of on all network interfaces. Added a ``-b/--bind`` option (``AIO_BIND_ADDRESS`` env variable) to diff --git a/aiohttp_devtools/__init__.py b/aiohttp_devtools/__init__.py index b2a95f90..c68196d1 100644 --- a/aiohttp_devtools/__init__.py +++ b/aiohttp_devtools/__init__.py @@ -1 +1 @@ -__version__ = "1.2" +__version__ = "1.2.0"