diff --git a/.gitignore b/.gitignore index ed8ebf5..e016846 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -__pycache__ \ No newline at end of file +__pycache__ +dist +build +*.egg-info \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..cc43652 --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +import musicutil.__main__ \ No newline at end of file diff --git a/musicutil/__main__.py b/musicutil/__main__.py index d174e18..865f71b 100644 --- a/musicutil/__main__.py +++ b/musicutil/__main__.py @@ -2,12 +2,12 @@ import argparse -from musicutil.commands.genhtml_command import GenHTMLCommand, add_genhtml_command, get_genhtml_args - +from .commands.genhtml_command import GenHTMLCommand, add_genhtml_command, get_genhtml_args from .commands.process_command import ProcessCommand, add_process_command, get_process_args from .commands.copy_command import CopyCommand, add_copy_command, get_copy_args from .commands.transcode_command import TranscodeCommand, add_transcode_command, get_transcode_args + parser = argparse.ArgumentParser( description="chaos's musicutil") subparsers = parser.add_subparsers(dest="subparser_name") diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..4e5462f --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +from setuptools import setup + +setup( + name='musicutil', + version='1.0', + description='A utility for managing a music library', + author='Chaos', + author_email='chaoticryptidz@owo.monster', + url='https://gitlab.com/ChaotiCryptidz/musicutil', + packages=['musicutil'], + entry_points = {'console_scripts': ['musicutil = musicutil.__main__:main'],}, +) \ No newline at end of file