From cfda30f795151e25fdc214847b183270519c9386 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 14 Sep 2023 17:33:10 +0800 Subject: [PATCH] Switch to pyproject.toml --- flake.nix | 1 + pytec/pyproject.toml | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 pytec/pyproject.toml diff --git a/flake.nix b/flake.nix index 5c80712..824bf39 100644 --- a/flake.nix +++ b/flake.nix @@ -94,6 +94,7 @@ thermostat_gui = pkgs.python3Packages.buildPythonPackage { pname = "thermostat_gui"; version = "0.0.0"; + format = "pyproject"; src = "${self}/pytec"; nativeBuildInputs = [ pkgs.qt6.wrapQtAppsHook ]; diff --git a/pytec/pyproject.toml b/pytec/pyproject.toml new file mode 100644 index 0000000..668354f --- /dev/null +++ b/pytec/pyproject.toml @@ -0,0 +1,18 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "pytec" +version = "0.0" +authors = [{name = "M-Labs"}] +description = "Control TEC" +urls.Repository = "https://git.m-labs.hk/M-Labs/thermostat" +license = {text = "GPLv3"} + +[project.gui-scripts] +tec_qt = "tec_qt:main" + +[tool.setuptools] +packages.find = {} +py-modules = ["tec_qt", "ui_tec_qt", "autotune", "waitingspinnerwidget"]