Added entry-points.

This commit is contained in:
jupfi 2023-07-03 20:26:51 +02:00
parent 10c2d9b80f
commit 3439afca27
5 changed files with 29 additions and 2 deletions

View file

@ -7,7 +7,7 @@ allow-direct-references = true
[project] [project]
name = "nqrduck-spectrometer-limenqr" name = "nqrduck-spectrometer-limenqr"
version = "0.0.2" version = "0.0.3"
authors = [ authors = [
{ name="Julia Pfitzer", email="git@jupfi.me" }, { name="Julia Pfitzer", email="git@jupfi.me" },
] ]
@ -26,4 +26,7 @@ classifiers = [
dependencies = [ dependencies = [
"nqrduck-spectrometer", "nqrduck-spectrometer",
"pyqt5", "pyqt5",
] ]
[project.entry-points."nqrduck"]
"nqrduck-spectrometer-limenqr" = "nqrduck_spectrometer_limenqr.limenqr:LimeNQR"

View file

@ -0,0 +1,6 @@
from nqrduck.module.module_controller import ModuleController
class LimeNQRController(ModuleController):
def __init__(self, module):
super().__init__(module)

View file

@ -0,0 +1,6 @@
from nqrduck.module.module import Module
from nqrduck_spectrometer_limenqr.model import LimeNQRModel
from nqrduck_spectrometer_limenqr.view import LimeNQRView
from nqrduck_spectrometer_limenqr.controller import LimeNQRController
Spectrometer = Module(LimeNQRModel, LimeNQRView, LimeNQRController)

View file

@ -0,0 +1,12 @@
import logging
from nqrduck.module.module_model import ModuleModel
logger = logging.getLogger(__name__)
class LimeNQRModel(ModuleModel):
def __init__(self, module) -> None:
super().__init__(module)
def is_spectrometer(self):
return True

View file