From: 
Subject: Debian changes

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

(If you have dgit, use `dgit clone pytest-logdog`, 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/pytest_logdog/__init__.py b/pytest_logdog/__init__.py
index 04a3d63..23247f8 100644
--- a/pytest_logdog/__init__.py
+++ b/pytest_logdog/__init__.py
@@ -1,7 +1,7 @@
-from pkg_resources import get_distribution, DistributionNotFound
+from importlib.metadata import version, PackageNotFoundError
 
 
 try:
-    __version__ = get_distribution(__name__).version
-except DistributionNotFound:
+    __version__ = version(__name__)
+except PackageNotFoundError:
     pass
diff --git a/tests.py b/tests.py
index 9c8991c..dad2b94 100644
--- a/tests.py
+++ b/tests.py
@@ -6,9 +6,6 @@ from time import sleep
 import pytest
 
 
-pytest_plugins = ["pytest_logdog"]
-
-
 def test_it_works(logdog):
     with logdog(level=logging.INFO) as pile:
         logging.info("Test")
