Skip to content

fix: quick-win batch — env-dependent test, theme default, packaging, docs - #70

Merged
falbany merged 1 commit into
mainfrom
fix/quick-wins-36-37-38-47
Nov 1, 2026
Merged

falbany merged 1 commit into
mainfrom
fix/quick-wins-36-37-38-47

Conversation

@falbany

@falbany falbany commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Groups four small, independently-verified fixes into one PR:

#36 — env-dependent test_main_without_npm

The test patched shutil.which, but since the Node.js fallback commit main() resolves npm through _build_env(), which probes npm by running npm --version via subprocess — so on any machine with a working npm on PATH the test returned 0. The test now patches _npm_runs and points _NODE_FALLBACK_DIRS at an empty temp dir, plus a new test_build_env_falls_back_to_node_dirs covering the rescue path itself.

#37 — theme default drift (light vs auto)

AppConfig.theme default is now "auto", matching Defaults.theme in the schema and the starter template. Docs tables (EN/FR) updated. New regression test pins that no config file and config without a theme key resolve to the same value.

#38 — packaging

  • Removed the force-include block that shipped the entire package a second time as profiles_app/ inside the wheel (verified: wheel contents now contain zero profiles_app/ paths; py.typed and web/dist still ship).
  • Removed the dead [tool.setuptools.packages.find] / [tool.setuptools.package-data] sections (hatchling is the build backend; setuptools never runs).
  • utils/shortcut.py imports ctypes.wintypes properly, letting the profiles.utils.shortcut pylint ignore be dropped.

#47 — docs accuracy sweep

  • docs/network-server-guide.en.md fully translated to English; the port section now lists the verified defaults (src/profiles/app.py:36, desktop/lifecycle.py:35/63, desktop/launcher.py:65) instead of a phantom app.py _DEFAULT_PORT pointer, and notes there is no --port CLI flag.
  • docs/operations/log-format.md: COMMAND_OUTPUT added to the event catalogue, example versions switched to SemVer with a CalVer note, two stale spec links removed.
  • READMEs: removed the non-existent "Bulk launch" claim; launch/ package added to all three architecture trees (README.md, README.fr.md, docs/README.md).
  • pyproject: removed the two references to spec files that don't exist.
  • .pre-commit-config.yaml: removed the stale mkdocs.yml exclude (no such file).

Verification

Fixes #36, fixes #37, fixes #38, fixes #47

…docs (#36, #37, #38, #47)

- #36: test_main_without_npm now patches _npm_runs/_NODE_FALLBACK_DIRS (the
  shutil.which patch never reached _build_env, which probes npm via
  subprocess); also covers the fallback-dir rescue path.
- #37: AppConfig.theme default aligned to "auto" (schema + template already
  agreed); docs tables updated; regression test pins that a missing config
  file and a config without a theme key resolve identically.
- #38: drop the wheel force-include that shipped the package twice
  (profiles_app) and the dead setuptools config; import ctypes.wintypes
  properly in utils/shortcut.py and narrow pylint ignored-modules.
- #47: translate network-server-guide.en.md to English with verified port
  defaults; document COMMAND_OUTPUT + SemVer examples in log-format.md and
  drop stale spec pointers; remove the Bulk launch README claim; add
  launch/ to the architecture trees; drop stale mkdocs.yml pre-commit
  exclude and stale pyproject spec references.

Fixes #36, fixes #37, fixes #38, fixes #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment