From: Ole Streicher <olebole@debian.org>
Date: Tue, 4 Jun 2024 08:52:47 +0200
Subject: Don't install non-package files

Without this patch, files were installed in /usr/lib/python3/doc and other places.

Closes: #1072391
---
 pyproject.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 6bbb7ef..82d7e19 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -42,8 +42,8 @@ Documentation = "https://specreduce.readthedocs.io/"
 [tool.setuptools]
 include-package-data = true
 
-[tool.setuptools.packages]
-find = {}  # Scanning implicit namespaces is active by default
+[tool.setuptools.packages.find]
+include = ["specreduce"]
 
 [tool.setuptools.package-data]
 "specreduce.tests" = ["data/*.fits"]
