diff --git a/DisplayCAL/__version__.py b/DisplayCAL/__version__.py
new file mode 100644
index 00000000..28eceb81
--- /dev/null
+++ b/DisplayCAL/__version__.py
@@ -0,0 +1,7 @@
+# generated by setup.py
+
+BUILD_DATE = "2022-11-21T22:56:25Z"
+LASTMOD = '2022-11-21T22:55:57Z'
+VERSION = (3, 9, 16)
+VERSION_BASE = (3, 9, 16)
+VERSION_STRING = '3.9.16'
diff --git a/DisplayCAL/setup.py b/DisplayCAL/setup.py
index 27425a18..43b6143b 100644
--- a/DisplayCAL/setup.py
+++ b/DisplayCAL/setup.py
@@ -629,7 +629,6 @@ def setup():
     if not is_rpm_build or doc_layout.startswith("deb"):
         data_files += get_data(doc, "doc", excludes=["LICENSE.txt"])
     if data_files:
-        data_files.append((doc, [os.path.join(pydir, "..", "dist", "copyright")]))
         data_files.append(
             (
                 os.path.join(os.path.dirname(data), "doc-base"),
@@ -659,20 +662,6 @@ def setup():
                 )
             )
 
-    # metainfo / appdata.xml
-    data_files.append(
-        (
-            os.path.join(os.path.dirname(data), "metainfo"),
-            [
-                relpath(
-                    os.path.normpath(
-                        os.path.join(pydir, "..", "dist", f"{appstream_id}.appdata.xml")
-                    ),
-                    source_dir,
-                )
-            ],
-        )
-    )
 
     if sys.platform not in ("darwin", "win32") or do_py2app or do_py2exe:
         # Linux/Unix or py2app/py2exe
diff --git a/pyproject.toml b/pyproject.toml
index b43679f0..89e02aaf 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -65,6 +65,7 @@ include-package-data = false
 
 [tool.setuptools.packages.find]
 where = ["./"]
+exclude = [ "tests", "tests.*"]
 
 [tool.setuptools.package-data]
 DisplayCAL = [
