WIP: GUI: Thermostat Control Panel #147

Draft
atse wants to merge 10 commits from atse/thermostat:GUI into master
3 changed files with 19 additions and 2 deletions
Showing only changes of commit 3893645646 - Show all commits

View File

@ -64,15 +64,22 @@
format = "pyproject";
src = "${self}/pythermostat";
nativeBuildInputs = [ pkgs.qt6.wrapQtAppsHook ];
propagatedBuildInputs =
with pkgs.python3Packages; [
[ pkgs.qt6.qtbase ]
++ (with pkgs.python3Packages; [
numpy
matplotlib
pyqtgraph
pyqt6
qasync
pglive
];
]);
dontWrapQtApps = true;
postFixup = ''
wrapQtApp "$out/bin/thermostat_qt"
'';
};
pglive = pkgs.python3Packages.buildPythonPackage rec {
@ -96,6 +103,11 @@
default = thermostat;
};
apps.x86_64-linux.thermostat_gui = {
type = "app";
program = "${self.packages.x86_64-linux.pythermostat}/bin/thermostat_qt";
};
hydraJobs = {
inherit thermostat;
};

4
pythermostat/MANIFEST.in Normal file
View File

@ -0,0 +1,4 @@
graft examples
include pythermostat/gui/resources/artiq.svg
atse marked this conversation as resolved Outdated
Outdated
Review

Isn't .ico an ancient Windows thing?

Isn't .ico an ancient Windows thing?
Outdated
Review

Yup. Used SVG instead in force-push to 851b29e328.

Yup. Used SVG instead in force-push to 851b29e328.
include pythermostat/gui/view/param_tree.json
include pythermostat/gui/view/MainWindow.ui

View File

@ -12,6 +12,7 @@ license = {text = "GPLv3"}
[project.gui-scripts]
thermostat_plot = "pythermostat.plot:main"
thermostat_qt = "pythermostat.thermostat_qt:main"
[project.scripts]
thermostat_autotune = "pythermostat.autotune:main"