Skip to content

Commit

Permalink
skeleton for chipstream GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Nov 10, 2023
1 parent dc1d4b8 commit 5258bc5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions chipstream/gui/__init__.py
Original file line number Diff line number Diff line change
@@ -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.")
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5258bc5

Please sign in to comment.