diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..44e9072 --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +#!/usr/bin/python3 + +import setuptools +from pathlib import Path + +# use readme file as long description +this_directory = Path(__file__).parent +long_description = (this_directory / "README.md").read_text() + +setuptools.setup( + name="Wobuzz", + version="0.0", + description="An audio player made by The Wobbler", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://teapot.informationsanarchistik.de/Wobbl/Wobuzz", + author="The Wobbler", + author_email="emil@i21k.de", + packages=["wobuzz"], + package_data={"": ["*.txt"]}, + install_requires=[ + "PyQt6", + "wobbl_tools @ git+https://teapot.informationsanarchistik.de/Wobbl/wobbl_tools@main#egg=wobbl_tools" + ], + entry_points={ + "console_scripts": ["wobuzz=wobuzz.command_line"], + } +) diff --git a/wobuzz/command_line.py b/wobuzz/command_line.py index 48e7ab2..605db72 100644 --- a/wobuzz/command_line.py +++ b/wobuzz/command_line.py @@ -2,8 +2,7 @@ import sys import argparse -from main import Wobuzz -from player.playlist import Playlist +from .main import Wobuzz description = "A music player made by The Wobbler." diff --git a/wobuzz/gui.py b/wobuzz/gui.py index b36d5a4..6f019f3 100644 --- a/wobuzz/gui.py +++ b/wobuzz/gui.py @@ -2,7 +2,7 @@ from PyQt6.QtCore import Qt from PyQt6.QtWidgets import QDockWidget -from ui.main_window import MainWindow +from .ui.main_window import MainWindow class GUI: diff --git a/wobuzz/library/library.py b/wobuzz/library/library.py index c065b31..53cf314 100644 --- a/wobuzz/library/library.py +++ b/wobuzz/library/library.py @@ -3,9 +3,9 @@ from PyQt6.QtCore import Qt from PyQt6.QtGui import QIcon from PyQt6.QtWidgets import QTabWidget, QTreeWidgetItem, QAbstractItemView -from player.playlist import Playlist -from ui.library_dock import LibraryDock -from ui.playlist import PlaylistView +from ..player.playlist import Playlist +from ..ui.library_dock import LibraryDock +from ..ui.playlist import PlaylistView class Library: diff --git a/wobuzz/main.py b/wobuzz/main.py index 1e1de44..d666301 100644 --- a/wobuzz/main.py +++ b/wobuzz/main.py @@ -3,12 +3,12 @@ import sys from PyQt6.QtWidgets import QApplication from wobbl_tools.data_file import load_dataclass_json -from settings import Settings -from utils import Utils -from player.player import Player -from library.library import Library -from gui import GUI -from gui_communication.gui_communication import GUICommunication +from .settings import Settings +from .utils import Utils +from .player.player import Player +from .library.library import Library +from .gui import GUI +from .gui_communication.gui_communication import GUICommunication class Wobuzz: