Four different one-liners were in circulation: the repository's "interactive, scriptable CLI toolkit", the README's "full-screen terminal companion", the About page's "client that lives in your terminal", and the package summary's "TUI-based client ... companion connection". JP picked one: A full-featured TUI MeshCore client for your terminal It now opens the README, the About page, the package summary, meshterm.__doc__ and the `meshterm --help` header, which cli.py already says must stay the same as the summary. The summary's second sentence loses its grammar slip on the way: "Connects to a companion over USB, Bluetooth or TCP." CLAUDE.md opens with the same line. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
# SPDX-License-Identifier: Apache-2.0
|
|
"""MeshTerm is a full-featured TUI MeshCore client for your terminal.
|
|
|
|
Connects to a companion over USB, Bluetooth or TCP. For Windows, macOS and Linux.
|
|
"""
|
|
|
|
from datetime import datetime
|
|
|
|
__version__ = "0.9.0"
|
|
__author__ = "Jean-Pierre Martineau"
|
|
|
|
#: The year MeshTerm was first published; the copyright span starts here.
|
|
COPYRIGHT_START_YEAR = 2026
|
|
|
|
|
|
def copyright_notice() -> str:
|
|
"""The one canonical copyright line, dated from :data:`COPYRIGHT_START_YEAR` to now.
|
|
|
|
A single publication year collapses to just that year ("Copyright © 2026 …"); once
|
|
time has moved on it becomes a span ("Copyright © 2026-2027 …"). Every splash and
|
|
screen that shows a copyright draws it from here so the wording, holder, and span can
|
|
never drift apart.
|
|
"""
|
|
year = datetime.now().year
|
|
span = (
|
|
str(COPYRIGHT_START_YEAR)
|
|
if year <= COPYRIGHT_START_YEAR
|
|
else f"{COPYRIGHT_START_YEAR}-{year}"
|
|
)
|
|
return f"Copyright © {span} {__author__}"
|