You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 38e70f5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): keep user's name form in scaffold READMEs (#139)
`smpy new simple_module_chat` created the directory with underscores
but produced a README header and tree diagram using `simple-module-chat`
(hyphens), because `create_workspace` substituted `{{HOST_NAME}}` with
the PyPI-normalized form everywhere.
Split the template placeholder: `{{HOST_NAME}}` is now the user-typed
display form (used in README heading + tree); `{{HOST_PYPI_NAME}}` is
the kebab-case PEP 503 form (used in `pyproject.toml` and `package.json`
`name` fields). `smpy new` validates the input up front — rejecting
mixed case, leading digits, and mixed `_`/`-` separators that have no
canonical display form — and prints a one-line "Normalizing PyPI name
to ..." notice when the two forms diverge.
0 commit comments