Two pieces of release machinery that have to exist before a first bump, plus the bump: 0.1.0 to 0.2.0. The version was written twice — `pyproject.toml` and `meshterm/__init__.py` — and kept in step by hand. That is a drift waiting to happen, and an unusually visible one here: `__version__` is read by the splash wordmark, the menu mark, the About page, a trace export and the tile-server user agent, so the number a user reads on screen is the package attribute, while the number in a built wheel would have been the `pyproject` literal. `[project] version` is now `dynamic` and hatchling reads the attribute, so there is one place to edit and the two cannot disagree. Verified against hatchling rather than assumed: it resolves `0.2.0`. `CHANGELOG.md` starts in Keep a Changelog form, with the `[Unreleased]` heading that makes release notes a rename rather than an excavation of the log. Its first entry is 0.2.0 and it says plainly that the history before it is not reconstructed — 596 commits of pre-history would be a worse document, not a more complete one. 0.2.0 rather than something nearer the announced 0.9.0: the numbers between here and the release are for real feature sets, and there is no reason to spend them early. 0.9.0 is a number chosen for the launch, not one to be arrived at by counting — landing on 0.7.0 on the day and bumping straight to 0.9.0 is fine. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
69 lines
2.4 KiB
TOML
69 lines
2.4 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "meshterm"
|
|
dynamic = ["version"]
|
|
description = "MeshTerm is a full-featured TUI-based MeshCore client for your terminal. Supports USB, Bluetooth and TCP companion connection. For Windows, macOS and Linux."
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
authors = [{ name = "Jean-Pierre Martineau" }]
|
|
license = { text = "Apache-2.0" }
|
|
keywords = ["meshcore", "lora", "mesh", "radio", "cli"]
|
|
|
|
dependencies = [
|
|
"meshcore>=2.3", # companion-device protocol (serial/BLE/TCP)
|
|
"pycryptodome>=3.20", # AES/HMAC for decrypting overheard channel packets
|
|
"pyserial>=3.5", # serial-port enumeration for device discovery
|
|
"bleak>=0.22", # Bluetooth LE scanning + companion connection
|
|
"typer>=0.12", # scripted CLI; subcommands mirror the menu
|
|
"rich>=13.7", # modern console rendering (progress, tables, panels)
|
|
"markdown-it-py>=3.0", # CommonMark parser behind the written About pages
|
|
"prompt_toolkit>=3.0", # full-screen interactive TUI (terminal, input, resize)
|
|
"PyYAML>=6.0", # the preferences file (meshterm.core.preferences)
|
|
"segno>=1.6", # pure-Python QR codes (channel share links)
|
|
"tomli>=2.0; python_version < '3.11'", # TOML config reader on 3.10
|
|
"tomli-w>=1.0", # TOML writer for device-config backups
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"ruff>=0.4",
|
|
]
|
|
|
|
[project.scripts]
|
|
meshterm = "meshterm.cli:main"
|
|
|
|
# The one place a version is written; `[project] version` is dynamic so the package
|
|
# attribute and the distribution metadata cannot drift apart.
|
|
[tool.hatch.version]
|
|
path = "meshterm/__init__.py"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["meshterm"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py310"
|
|
# Helper scripts for the Claude skills; they are not part of the package.
|
|
extend-exclude = [".claude"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "D"]
|
|
ignore = ["D203", "D213"] # pick one blank-line-before-class / multi-line-summary style
|
|
|
|
[tool.ruff.lint.pydocstyle]
|
|
convention = "google"
|
|
|
|
[tool.ruff.lint.flake8-bugbear]
|
|
# Typer declares CLI parameters by calling these in the default; the objects they
|
|
# return are inert sentinels the command never mutates, which is what B008 guards.
|
|
extend-immutable-calls = ["typer.Argument", "typer.Option"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|