switch to pdm

This commit is contained in:
Michael Mäder
2025-03-11 14:59:36 +01:00
parent 081cf71454
commit 34c4a80c61
7 changed files with 105 additions and 3 deletions

25
src/pyproject.toml Normal file
View File

@@ -0,0 +1,25 @@
[project]
name = "flask-api-calculator-demo"
version = "0.1.0"
description = "Default template for PDM package"
authors = [
{name = "Michael Mäder", email = "michael.maeder@hefr.ch"},
]
dependencies = [
"pytest>=8.0.2",
"pytest-cov>=4.1.0",
"Flask>=3.0.2",
"flask-wtf>=1.2.1",
]
requires-python = ">3.10"
readme = "README.md"
license = {text = "MIT"}
[tool.pdm]
distribution = false
[tool.pdm.scripts]
flask.cmd = "flask run -p 5000 --debug"
flask.env = {FLASK_ENV = "development"}
shell.cmd = "zsh"