From f9d189cc969d7e692af326eb575daecba5577172 Mon Sep 17 00:00:00 2001 From: rrooij Date: Sat, 6 Apr 2019 15:56:08 +0200 Subject: [PATCH] Preperation for new version - Fixed the missing main method, which caused problems when building the debian files - Added version number --- Makefile | 2 +- debian/control | 2 +- sd3save_editor/gui/__main__.py | 8 ++++---- setup.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index aa231f8..86f4ffd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.5.2 +VERSION=0.5.3 PACKAGE_NAME=python3-sd3save-editor_$(VERSION)_all .PHONY: package_deb diff --git a/debian/control b/debian/control index a9b58ab..7bc837b 100644 --- a/debian/control +++ b/debian/control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 9), python3, dh-virtualenv (>= 0.8), python3-pyqt5 Standards-Version: 3.9.5 Package: python3-sd3save-editor -Version: 0.5.2 +Version: 0.5.3 License: GPL-3.0 Vendor: none Architecture: all diff --git a/sd3save_editor/gui/__main__.py b/sd3save_editor/gui/__main__.py index a5f18c2..4953668 100644 --- a/sd3save_editor/gui/__main__.py +++ b/sd3save_editor/gui/__main__.py @@ -5,7 +5,7 @@ from PyQt5.QtWidgets import QApplication from sd3save_editor.gui.mainwindow import MainWindow - -app = QApplication(sys.argv) -mainwindow = MainWindow() -sys.exit(app.exec_()) +def main(): + app = QApplication(sys.argv) + mainwindow = MainWindow() + sys.exit(app.exec_()) diff --git a/setup.py b/setup.py index bc5ea44..1e3dfd4 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ author='rrooij', author_email='rderooij685@gmail.com', url='https://github.com/rrooij/sd3save_editor', - version='0.5.2', + version='0.5.3', license="GPL-3.0", description='Seiken Densetsu 3 Save Editor', packages=find_packages(), @@ -14,7 +14,7 @@ 'sd3save_editor_cli = sd3save_editor.__main__:main' ], 'gui_scripts': [ - 'sd3save_editor_gui = sd3save_editor.gui.__main__.py' + 'sd3save_editor_gui = sd3save_editor.gui.__main__.py:main' ] }, install_requires=['construct', 'scalpl']