Skip to content

Commit

Permalink
fix: make a beetsplug namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Sep 13, 2021
1 parent 59d68b3 commit ea4d865
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion beetsplug/summarize/__init__.py → beetsplug/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from .summarize import parse_stat, show_summary, summarize
__version__ = '0.1.0'
from pkgutil import extend_path

__version__ = '0.2.0'
__all__ = ['parse_stat', 'show_summary', 'summarize']
__path__ = extend_path(__path__, __name__)
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def find_version():
with open(os.path.join(os.path.dirname(__file__), "summarize", "__init__.py")) as fp:
with open(os.path.join(os.path.dirname(__file__), "beetsplug", "__init__.py")) as fp:
version_file = fp.read()

version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
Expand Down Expand Up @@ -52,7 +52,7 @@ def find_version():
license="MIT license",
long_description=readme + '\n\n' + history,
name='summarize',
packages=find_packages(where='beetsplug', include=['summarize']),
packages=find_packages(include=['beetsplug']),
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
Expand Down

0 comments on commit ea4d865

Please sign in to comment.