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

Deprecate --python-setup-resolver-version option. #11611

Merged
merged 2 commits into from Feb 27, 2021

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Feb 27, 2021

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]

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"):
Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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]
@jsirois jsirois merged commit 6e37df8 into pantsbuild:master Feb 27, 2021
@jsirois jsirois deleted the deprecations/pip-legacy-resolver branch February 27, 2021 03:46
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.

None yet

2 participants