sig-cloud-control 0.3.1__tar.gz → 0.3.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/CHANGELOG.md +7 -0
  2. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/Justfile +1 -0
  3. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/PKG-INFO +1 -1
  4. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/pyproject.toml +1 -1
  5. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/cli_app/main.py +9 -3
  6. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_show_config.py +2 -1
  7. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/uv.lock +1 -1
  8. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/.github/workflows/ci.yml +0 -0
  9. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/.github/workflows/release.yml +0 -0
  10. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/.gitignore +0 -0
  11. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/.python-version +0 -0
  12. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/CLAUDE.md +0 -0
  13. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/GEMINI.md +0 -0
  14. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/LICENSE +0 -0
  15. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/README.md +0 -0
  16. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/config.sample.toml +0 -0
  17. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/__init__.py +0 -0
  18. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/_encryption.py +0 -0
  19. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/cli_app/__init__.py +0 -0
  20. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/cli_app/actions.py +0 -0
  21. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/cli_app/config.py +0 -0
  22. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/cli_app/constants.py +0 -0
  23. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/cli_app/setup.py +0 -0
  24. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/client/__init__.py +0 -0
  25. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/client/cache.py +0 -0
  26. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/client/core.py +0 -0
  27. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/client/exceptions.py +0 -0
  28. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/src/sig_cloud_control/models.py +0 -0
  29. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/__init__.py +0 -0
  30. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_cli.py +0 -0
  31. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_client.py +0 -0
  32. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_config_loading.py +0 -0
  33. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_meta.py +0 -0
  34. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_models.py +0 -0
  35. {sig_cloud_control-0.3.1 → sig_cloud_control-0.3.2}/tests/test_station_id.py +0 -0
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.2](https://github.com/lawther/sig-cloud-control/compare/v0.3.1...v0.3.2) (2026-04-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **cli:** correct path highlighting in show-config command ([d915a55](https://github.com/lawther/sig-cloud-control/commit/d915a55141b8852aeb6ff9973c4e887d9d05d9f5))
9
+
3
10
  ## [0.3.1](https://github.com/lawther/sig-cloud-control/compare/v0.3.0...v0.3.1) (2026-04-22)
4
11
 
5
12
 
@@ -46,6 +46,7 @@ precommit:
46
46
  set -e
47
47
  just _lint-justfile
48
48
  just lint
49
+ git add $(git diff --cached --name-only)
49
50
  just test
50
51
  ) > "$tmpfile" 2>&1
51
52
  status=$?
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sig-cloud-control
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Control Sigenergy battery via Sigen Cloud
5
5
  Project-URL: Homepage, https://github.com/lawther/sig-cloud-control
6
6
  Project-URL: Repository, https://github.com/lawther/sig-cloud-control
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sig-cloud-control"
7
- version = "0.3.1"
7
+ version = "0.3.2"
8
8
  description = "Control Sigenergy battery via Sigen Cloud"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -3,6 +3,7 @@ from pathlib import Path
3
3
  from typing import Annotated
4
4
 
5
5
  import typer
6
+ from rich.markup import escape
6
7
 
7
8
  from .actions import _run_command_action, console
8
9
  from .config import SigenEnvVar, _resolve_config_path, _try_load_config
@@ -113,15 +114,20 @@ def show_config(
113
114
  set_vars = ", ".join(sorted(env_vars_present))
114
115
  console.print(f" Environment vars: {set_vars} set, but insufficient")
115
116
  local_status = "[yellow]not found[/yellow]" if not local_config.exists() else "found"
116
- console.print(f" Local config: ./config.toml — {local_status}")
117
+ console.print(f" Local config: [repr.path]./config.toml[/repr.path] — {local_status}", highlight=False)
117
118
  default_status = "[yellow]not found[/yellow]" if not _DEFAULT_CONFIG_PATH.exists() else "found"
118
- console.print(f" Default config: {_DEFAULT_CONFIG_PATH} — {default_status}")
119
+ console.print(
120
+ f" Default config: [repr.path]{escape(str(_DEFAULT_CONFIG_PATH))}[/repr.path] — {default_status}",
121
+ highlight=False,
122
+ )
119
123
  console.print("\nRun [bold]sig-cloud-control setup[/bold] to create a configuration file.")
120
124
  raise typer.Exit(code=1)
121
125
 
122
126
  console.print("\n[bold]Sources:[/bold]")
123
127
  if sources.config_file is not None:
124
- console.print(f" Config file: {sources.config_file}")
128
+ console.print(
129
+ f" Config file: [repr.path]{escape(str(sources.config_file))}[/repr.path]", highlight=False
130
+ )
125
131
  else:
126
132
  console.print(" Config file: [dim](not used — env vars were sufficient)[/dim]")
127
133
 
@@ -122,7 +122,8 @@ def test_show_config_local_file_present_shows_found() -> None:
122
122
  runner.invoke(app, ["show-config"])
123
123
 
124
124
  output = _console_output(mock_console)
125
- assert "config.toml — found" in output
125
+ assert "./config.toml" in output
126
+ assert "found" in output
126
127
  assert str(_DEFAULT_CONFIG_PATH) in output
127
128
  assert "not found" in output # default path still not found
128
129
 
@@ -508,7 +508,7 @@ wheels = [
508
508
 
509
509
  [[package]]
510
510
  name = "sig-cloud-control"
511
- version = "0.3.0"
511
+ version = "0.3.2"
512
512
  source = { editable = "." }
513
513
  dependencies = [
514
514
  { name = "cryptography" },