forked from M-Labs/thermostat
PyThermostat: Use pyproject
This commit is contained in:
parent
bfbe8b79a7
commit
a0bc119ffb
@ -61,6 +61,7 @@
|
|||||||
pythermostat = pkgs.python3Packages.buildPythonPackage {
|
pythermostat = pkgs.python3Packages.buildPythonPackage {
|
||||||
pname = "pythermostat";
|
pname = "pythermostat";
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
|
format = "pyproject";
|
||||||
src = "${self}/pythermostat";
|
src = "${self}/pythermostat";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.qt6.wrapQtAppsHook ];
|
nativeBuildInputs = [ pkgs.qt6.wrapQtAppsHook ];
|
||||||
|
19
pythermostat/pyproject.toml
Normal file
19
pythermostat/pyproject.toml
Normal file
@ -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"
|
@ -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",
|
|
||||||
]
|
|
||||||
},
|
|
||||||
)
|
|
Loading…
Reference in New Issue
Block a user