diff --git a/README.md b/README.rst similarity index 67% rename from README.md rename to README.rst index 57184cc..9840fe5 100644 --- a/README.md +++ b/README.rst @@ -1,3 +1,4 @@ -# Playtypus +Playtypus +========= Playtpus is a desktop Funkwhale client. diff --git a/playtypus/__init__.py b/playtypus/__init__.py index e69de29..09b64eb 100644 --- a/playtypus/__init__.py +++ b/playtypus/__init__.py @@ -0,0 +1,10 @@ +from PyQt5 import QtWidgets +from playtypus.mainwindow import MainWindow + + +def main(): + """Main""" + app = QtWidgets.QApplication([]) + main_window = MainWindow() + main_window.show() + return app.exec() diff --git a/playtypus/__main__.py b/playtypus/__main__.py index c290c55..7c55a93 100644 --- a/playtypus/__main__.py +++ b/playtypus/__main__.py @@ -1,14 +1,3 @@ -from PyQt5 import QtWidgets -from mainwindow import MainWindow +from playtypus import main - -def main(): - """Main""" - app = QtWidgets.QApplication([]) - main_window = MainWindow() - main_window.show() - return app.exec() - - -if __name__ == '__main__': - main() +main() diff --git a/run_playtypus.py b/run_playtypus.py new file mode 100755 index 0000000..bf999da --- /dev/null +++ b/run_playtypus.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python3 +from playtypus import main + +main() diff --git a/setup.cfg b/setup.cfg index 230aaad..b9974e3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,15 +2,25 @@ name = Playtypus version = 0.1.0 description = A desktop client for Funkwhale +long_description = file: README.rst +long_description_content_type = text/x-rst [options] -packages = find: - = src +packages = + playtypus install_requirements = PyQt5 requests funksnake QtAwesome +python_requires = >=3.7 + +[options.entry_points] +gui_scripts = + playtypus = playtypus + +[bdist_wheel] +universal = 1 [flake8] max-line-length = 120