From 73c820da82701e560b51e3a0d29128bffcc28528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Thu, 8 Dec 2022 01:32:38 +0100 Subject: [PATCH] Explicitly declare the package in setup.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Setuptools recently added automatic discovery of packages and namespaces within given source trees/projects, however isrcsubmit’s current layout does not play well with this autodiscovery. Explicitly declaring which Python package is being touched by using this setup.py is probably the easiest and quickest way to remedy this. We may want to switch to another solution down the line, but this should work okay for the time being. See https://setuptools.pypa.io/en/latest/userguide/package_discovery.html for more details. Fixes https://github.com/JonnyJD/musicbrainz-isrcsubmit/issues/140 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 9115b1e..8451f14 100755 --- a/setup.py +++ b/setup.py @@ -102,6 +102,7 @@ def run(self): url="https://github.com/JonnyJD/musicbrainz-isrcsubmit", requires=["discid(>=1.0.0)", "musicbrainzngs(>=0.4)"], python_requires='>=3.7', + packages=["isrcsubmit"], scripts=["isrcsubmit.py"], license="GPLv3+", classifiers=[