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

Use verbosity=Verbosity.VERBOSE for io.write_line #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shawwn
Copy link

@shawwn shawwn commented Aug 17, 2021

This PR ensures that poetry version -s prints the project version number (and nothing else).

Shell scripts often use poetry version -s to get the current project version number. However, poetry-version-plugin breaks this idiom by printing out extra log messages:

$ poetry version -s
poetry-version-plugin: Using __init__.py file at sgap/__init__.py for dynamic version
poetry-version-plugin: Setting package dynamic version to __version__ variable from __init__.py: 0.1.0
0.1.0

After merging this PR:

  • poetry version -s will print just the version number (e.g. 0.1.0)
  • poetry version -s -v will print the extra log messages (since --verbose is specified)

Closes #12.

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 this pull request may close these issues.

Only log informations for commands of interest
1 participant