Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

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

Closed
wants to merge 1 commit into 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.

@tiangolo
Copy link
Owner

tiangolo commented Sep 8, 2024

Thanks for the patience with my reply! 😅

I just marked this project as deprecated, I'm currently not using it and I think these ideas can be achieved in better ways: https://github.com/tiangolo/poetry-version-plugin#-warning-deprecated-

Given that I'll close this one, but thanks for the interest! ☕

@tiangolo tiangolo closed this Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Only log informations for commands of interest
2 participants