Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove whitespace from captured command output #18

Open
dalito opened this issue Feb 22, 2022 · 1 comment
Open

Remove whitespace from captured command output #18

dalito opened this issue Feb 22, 2022 · 1 comment

Comments

@dalito
Copy link

dalito commented Feb 22, 2022

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?

@dalito dalito changed the title Remove whitespace ad trailing newlines from captured command output Remove whitespace from captured command output Feb 22, 2022
@dalito
Copy link
Author

dalito commented Nov 7, 2022

For the specific problem using poetry-dynamic-versioning is a much better solution now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant