MIL-003 Console interface. - Add calculator() with recursive restart: y continues with the result, n starts a new calculation, q quits - Show one ASCII title at start: a calculator with the lettering to its right - Re-prompt on invalid numbers, operations and answers; restart on division by zero - Add __main__.py for python -m calc and the calc console script - Add interface tests with input() fed through monkeypatch Closes #22 Closes #23 Closes #24 Closes #25 Task: MIL-003#1 Task: MIL-003#2 Task: MIL-003#3 Task: MIL-003#4
26 lines
527 B
TOML
26 lines
527 B
TOML
[build-system]
|
|
requires = ["setuptools>=69"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "calc"
|
|
version = "0.1.0"
|
|
description = "A console calculator (Udemy 100 Days of Code, day 10)."
|
|
readme = "README.md"
|
|
requires-python = ">=3.13"
|
|
license = { text = "AGPL-3.0-or-later" }
|
|
dependencies = []
|
|
|
|
[project.optional-dependencies]
|
|
dev = ["pytest>=8"]
|
|
|
|
[project.scripts]
|
|
calc = "calc.calculator:main"
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
pythonpath = ["src"]
|