From 5258bc5c3fdad05b683987abe58088b87d85248c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Fri, 10 Nov 2023 15:15:06 +0100 Subject: [PATCH] skeleton for chipstream GUI --- README.rst | 2 +- chipstream/gui/__init__.py | 12 ++++++++++++ pyproject.toml | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 chipstream/gui/__init__.py diff --git a/README.rst b/README.rst index aa47fd3..f7c57a4 100644 --- a/README.rst +++ b/README.rst @@ -42,7 +42,7 @@ If you have installed ChipStream from PyPI, you can start it with # graphical user interface chipstream-gui # command-line interface - chipstream + chipstream-cli Citing ChipStream diff --git a/chipstream/gui/__init__.py b/chipstream/gui/__init__.py new file mode 100644 index 0000000..aa25b5f --- /dev/null +++ b/chipstream/gui/__init__.py @@ -0,0 +1,12 @@ +try: + import PyQt6 +except ImportError: + PyQt6 = None + + +if PyQt6 is None: + def main(*args, **kwargs): + print("Please install 'chipstream[gui]' to access the GUI!") +else: + def main(): + print("This is chipstream.") diff --git a/pyproject.toml b/pyproject.toml index 69706e3..01cfd76 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,8 @@ cli = ["click>=8"] gui = ["pyqt6"] [project.scripts] -chipstream = "chipstream.cli:main" +chipstream-cli = "chipstream.cli:main" +chipstream-gui = "chipstream.gui:main" [project.urls] source = "https://github.com/DC-Analysis/ChipStream"