From: 
Subject: Debian changes

The Debian packaging of python-momonga 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-momonga
    % cd python-momonga
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-momonga`, 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/tests/test_conventions_unit.py b/tests/test_conventions_unit.py
index 9fe8dde..501e37f 100644
--- a/tests/test_conventions_unit.py
+++ b/tests/test_conventions_unit.py
@@ -22,7 +22,8 @@ import momonga
 
 from tests._timebox import TimeBoxedTestCase
 
-SOURCES = sorted(pathlib.Path('momonga').glob('*.py'))
+PACKAGE = pathlib.Path(momonga.__file__).parent
+SOURCES = sorted(PACKAGE.glob('*.py'))
 LOG_METHODS = ('debug', 'info', 'warning', 'error', 'critical', 'exception')
 
 
@@ -57,9 +58,7 @@ class TestThePackageNamesWhatItExports(TimeBoxedTestCase):
                     self.assertIn(name, momonga.__all__)
 
     def test_the_marker_is_there_and_ships(self):
-        self.assertTrue(pathlib.Path('momonga/py.typed').is_file())
-        self.assertIn("package_data={'momonga': ['py.typed']}",
-                      pathlib.Path('setup.py').read_text())
+        self.assertTrue((PACKAGE / 'py.typed').is_file())
 
 
 class TestALogLineIsBuiltOnlyWhenItIsWanted(TimeBoxedTestCase):
diff --git a/tests/test_exception_groups_unit.py b/tests/test_exception_groups_unit.py
index 474c7cf..e3c84b7 100644
--- a/tests/test_exception_groups_unit.py
+++ b/tests/test_exception_groups_unit.py
@@ -85,8 +85,9 @@ class TestGroupingClassesAreOnlyForCatching(TimeBoxedTestCase):
     @staticmethod
     def _raised_directly(name):
         import pathlib as _p
+        import momonga as _momonga
         return sum(src.read_text().count('raise %s(' % name)
-                   for src in _p.Path('momonga').glob('*.py'))
+                   for src in _p.Path(_momonga.__file__).parent.glob('*.py'))
 
     def test_no_grouping_class_is_raised_on_its_own(self):
         for name in self.GROUPING:
diff --git a/tests/test_getter_parse_failures_unit.py b/tests/test_getter_parse_failures_unit.py
index a59a0e6..d771dc9 100644
--- a/tests/test_getter_parse_failures_unit.py
+++ b/tests/test_getter_parse_failures_unit.py
@@ -89,7 +89,7 @@ class TestThereAreTypedGettersToCheck(TimeBoxedTestCase):
     def test_none_of_them_calls_its_parser_directly(self):
         """A getter added the old way would be outside every handler the
         manual describes, and nothing else here would notice."""
-        source = pathlib.Path('momonga/momonga.py').read_text()
+        source = pathlib.Path(momonga.__file__).with_name('momonga.py').read_text()
 
         self.assertNotIn('return EchonetDataParser.parse_', source)
 
