PyThermostat: Replace setup.py with pyproject.toml #160

Merged
sb10q merged 1 commits from atse/thermostat:pyproject into master 2024-11-25 13:28:18 +08:00
3 changed files with 22 additions and 21 deletions
Showing only changes of commit 130bde480e - Show all commits

View File

@ -61,6 +61,7 @@
pythermostat = pkgs.python3Packages.buildPythonPackage {
pname = "pythermostat";
version = "0.0.0";
format = "pyproject";
src = "${self}/pythermostat";
propagatedBuildInputs =

View File

@ -0,0 +1,21 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "pythermostat"
version = "0.0"
authors = [{name = "M-Labs"}]
description = "Control TEC"
atse marked this conversation as resolved
Review

Needs changing

Needs changing
Review

Changed in .

Changed in #161.
urls.Repository = "https://git.m-labs.hk/M-Labs/thermostat"
license = {text = "GPLv3"}
[project.gui-scripts]
thermostat_plot = "pythermostat.plot:main"
[project.scripts]
thermostat_autotune = "pythermostat.autotune:main"
thermostat_test = "pythermostat.test:main"
[tool.setuptools]
packages.find = {}

View File

@ -1,21 +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",
],
"console_scripts": [
"thermostat_autotune = pythermostat.autotune:main",
"thermostat_test = pythermostat.test:main",
]
},
)