Skip to content

Commit 644f97d

Browse files
jdrumgooleclaude
andcommitted
Drop runtime dependency on invoke
The \`invoke\` package was in \`[project] dependencies\`, but nothing in \`src/solisdash/\` imports it — it's only used by the repo-root \`tasks.py\` (developer admin tasks) which isn't shipped in the wheel. That made \`pip install solisdash\` pull a dependency end users never exercise. - \`pyproject.toml\`: move \`invoke>=2.2\` to \`[project.optional-dependencies] dev\`. - \`src/solisdash/cli.py\`: drop the misleading module-docstring line that pointed installed users at \`uv run python -m invoke …\` commands they don't have. The CLI is a pure Python entry point installed by the wheel — no \`uv\` / \`invoke\` / external tooling at runtime. Bump to 0.6.2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ef19fcc commit 644f97d

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "solisdash"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "Self-hosted dashboard for the SolisCloud (Ginlong Solis) platform"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -29,7 +29,6 @@ dependencies = [
2929
"pydantic>=2.9",
3030
"pydantic-settings>=2.6",
3131
"python-dotenv>=1.0",
32-
"invoke>=2.2",
3332
"pymongo>=4.13",
3433
"bcrypt>=4.2",
3534
"itsdangerous>=2.2",
@@ -45,6 +44,7 @@ dev = [
4544
"ruff>=0.7",
4645
"mypy>=1.13",
4746
"tomli>=2", # `tomllib` is stdlib from 3.11; install tomli everywhere for dev so the mypy ignore stays unconditional
47+
"invoke>=2.2", # only used by repo-root `tasks.py`, not shipped in the wheel
4848
]
4949

5050
[project.scripts]

‎src/solisdash/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.6.1"
1+
__version__ = "0.6.2"

‎src/solisdash/cli.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
- (no subcommand) / `run` — open the dashboard inside a pywebview window
55
- `add-user` — seed an account (the only path before login works)
66
7-
Both end up calling the same `solisdash.app` and `solisdash.auth` code that
8-
`uv run python -m invoke …` uses; they're just here so anyone who installed
9-
the package from PyPI doesn't need a dev checkout to bootstrap.
7+
Pure-Python entry point installed by the wheel. No `uv` / `invoke` /
8+
external tooling at runtime — just `pip install solisdash && solisdash`.
109
"""
1110

1211
from __future__ import annotations

‎uv.lock‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)