Skip to content

Remove whitespace from captured command output #18

@dalito

Description

@dalito

I wanted to construct a filename containing the version info from poetry:

allowlist_externals = poetry
setenv =
    PKGVER=`poetry version -s`
commands =
    python -m zipfile -c dist/myname-{env:PKGVER}.doc.zip {toxinidir}/docs/_build/html/*

This resulted in a filename "myname-0.1.0 .doc.zip".

Would you be open to remove whitespace/newlines from the output of the backticks-command?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions