diff --git a/flake.nix b/flake.nix index c371957..86af98e 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,7 @@ pythermostat = pkgs.python3Packages.buildPythonPackage { pname = "pythermostat"; version = "0.0.0"; + format = "pyproject"; src = "${self}/pythermostat"; nativeBuildInputs = [ pkgs.qt6.wrapQtAppsHook ]; diff --git a/pythermostat/pyproject.toml b/pythermostat/pyproject.toml new file mode 100644 index 0000000..7aeaf7a --- /dev/null +++ b/pythermostat/pyproject.toml @@ -0,0 +1,19 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "pythermostat" +version = "0.0" +authors = [{name = "M-Labs"}] +description = "Control TEC" +urls.Repository = "https://git.m-labs.hk/M-Labs/thermostat" +license = {text = "GPLv3"} + +[project.scripts] +thermostat_autotune = "pythermostat.autotune:main" +thermostat_test = "pythermostat.test:main" + +[project.gui-scripts] +thermostat_plot = "pythermostat.plot:main" +thermostat_qt = "pythermostat.thermostat_qt:main" diff --git a/pythermostat/setup.py b/pythermostat/setup.py deleted file mode 100644 index 0d4c164..0000000 --- a/pythermostat/setup.py +++ /dev/null @@ -1,22 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name="pythermostat", - version="0.0", - author="M-Labs", - url="https://git.m-labs.hk/M-Labs/thermostat", - description="Control TEC", - license="GPLv3", - install_requires=["setuptools"], - packages=find_packages(), - entry_points={ - "gui_scripts": [ - "thermostat_plot = pythermostat.plot:main", - "thermostat_qt = pythermostat.thermostat_qt:main", - ], - "console_scripts": [ - "thermostat_autotune = pythermostat.autotune:main", - "thermostat_test = pythermostat.test:main", - ] - }, -)