From 3e68158b67cc145caffe4135d998a39ac63e10c3 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 20 Apr 2022 18:40:05 -0400 Subject: [PATCH] Explicitly set packages in setup.py This is generally a good practice instead of relying on autodiscovery, plus it's what the other securedrop- packages do. Also it fixes a weird bug with reprotest, in which it can't determine the correct package. Fixes https://github.com/freedomofpress/securedrop-debian-packaging/issues/298. --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index efbe8f282..0d3ccec97 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,10 @@ license="GPLv3+", install_requires=[], python_requires=">=3.5", + packages=setuptools.find_packages(exclude=["docs", "tests"]), + package_data={ + 'securedrop_log': ['VERSION'], + }, url="https://github.com/freedomofpress/securedrop-log", classifiers=[ "Development Status :: 3 - Alpha",