fix entry point
All checks were successful
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in -41s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped

This commit is contained in:
Brendan Haines 2024-12-18 23:55:06 -07:00
parent 919101b339
commit 5c4f7e5c97
2 changed files with 14 additions and 7 deletions

View File

@ -5,7 +5,6 @@ from typing import Callable, List, Tuple
import matplotlib as mpl import matplotlib as mpl
import numpy as np import numpy as np
import xarray as xr import xarray as xr
from gui_helpers import FlowLayout
from matplotlib import pyplot as plt from matplotlib import pyplot as plt
from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg from matplotlib.backends.backend_qtagg import FigureCanvasQTAgg
from matplotlib.ticker import EngFormatter from matplotlib.ticker import EngFormatter
@ -23,7 +22,9 @@ from PySide6.QtWidgets import (
QWidget, QWidget,
) )
from skrf import plotting as rf_plt from skrf import plotting as rf_plt
from util import db20, s2vswr
from charon_vna.gui_helpers import FlowLayout
from charon_vna.util import db20, s2vswr
# from vna import Charon # from vna import Charon
@ -201,9 +202,14 @@ class MainWindow(QMainWindow):
# TODO: load config # TODO: load config
app = QApplication(sys.argv) def main() -> None:
app = QApplication(sys.argv)
window = MainWindow() window = MainWindow()
window.show() window.show()
app.exec() app.exec()
if __name__ == "__main__":
main()

View File

@ -29,7 +29,8 @@ dynamic = ["version"]
homepage = "https://git.brendanhaines.com/brendanhaines/charon" homepage = "https://git.brendanhaines.com/brendanhaines/charon"
[project.scripts] [project.scripts]
# charon = "charon.charon:main" # charon-cli = "charon_vna.cli:main"
charon-gui = "charon_vna.gui:main"
[tool.setuptools_scm] [tool.setuptools_scm]
version_file = "charon_vna/_version.py" version_file = "charon_vna/_version.py"