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
Deprecate --python-setup-resolver-version option. #11611
Deprecate --python-setup-resolver-version option. #11611
Conversation
Switch the default --python-setup-resolver-version to the pip-2020-resolver and update warnings for removal of the option in 2.5. [ci skip-rust] [ci skip-build-wheels]
" for more information on the new resolver." | ||
), | ||
) | ||
if not self.options.is_default("resolver_version"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is okay, but it's much better imo to use the official help mechanism for deprecations because it will eagerly warn on a simple ./pants --version
, whereas this setup only warns when the codepath is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if the codepath is unused ... then the warning is noise right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, the warning is solely if you manually configured the option. It doesn't display if you use the default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another reason to use the help system mechanism, it will show up as deprecated in ./pants help-advanced
and on the docsite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Were you aware the help system does not wrap deprecations like it does everything else? I can file an issue or fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I realized last week, but didn't file a ticket. That'd be helpful if you have the time
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
Switch the default --python-setup-resolver-version to the pip-2020-resolver
and update warnings for removal of the option in 2.5.
[ci skip-rust]
[ci skip-build-wheels]