jw-pkg/test/unit/python/jw/pkg/cmds/projects
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Lindemann dd2fff17a5
cmds.projects.CmdCreatePkgConfig: Fix Requires lines
__cleanup_requires() replaces every run of whitespace with ", " before
re-pairing the version constraints, so input that is already
comma-separated, e.g. "jw-core >= 1.0, jw-base", comes out with a double
comma, "jw-core >= 1.0,, jw-base". And the Requires line is appended
without a trailing newline, so a following Requires.private line runs
straight into it.

Split the input on commas and whitespace, treating the version constraint
operators as delimiters that are re-paired with the preceding name and the
following version, so that comma- and space-separated input alike comes out
as a clean ", "-joined list. Add the missing newline after the Requires
line.

Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.84.2
Signed-off-by: Jan Lindemann <jan@janware.com>
2026-09-13 22:53:12 +02:00
..
CmdCreateFile cmds.projects.CmdCreateFile: Add --field-separator option 2026-09-13 22:31:25 +02:00
CmdCreatePkgConfig cmds.projects.CmdCreatePkgConfig: Fix Requires lines 2026-09-13 22:53:12 +02:00
lib cmds.projects.lib.templates: Don't replace escaped markers 2026-09-13 21:08:53 +02:00
Makefile cmds.projects.lib.templates: merge_values(): Don't split strings 2026-09-13 21:08:53 +02:00