From: 
Subject: Debian changes

The Debian packaging of python-bellows is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-bellows
    % cd python-bellows
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-bellows`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/pyproject.toml b/pyproject.toml
index 84074ac..0c7a772 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -21,6 +21,7 @@ dependencies = [
 ]
 
 [tool.setuptools.packages.find]
+include = ["bellows", "bellows.*"]
 exclude = ["tests", "tests.*"]
 
 [project.optional-dependencies]
diff --git a/tests/test_thread.py b/tests/test_thread.py
index 235507f..9296c87 100644
--- a/tests/test_thread.py
+++ b/tests/test_thread.py
@@ -116,6 +116,15 @@ async def test_thread_already_stopped(thread):
     thread.force_stop()
 
 
+async def test_thread_loop_already_closed():
+    loop = asyncio.new_event_loop()
+    thread = EventLoopThread()
+    thread.loop = loop
+
+    loop.close()
+    thread.force_stop()
+
+
 async def test_thread_run_coroutine_threadsafe(thread):
     inner_loop = None
 
