Skip to content

Commit

Permalink
Explicitly declare the package in setup.py
Browse files Browse the repository at this point in the history
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 JonnyJD#140
  • Loading branch information
Freso committed Dec 8, 2022
1 parent 9d8f85b commit 73c820d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 73c820d

Please sign in to comment.