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 defaulting to pip legacy resolver #11497

Merged
merged 1 commit into from Jan 25, 2021

Conversation

Eric-Arellano
Copy link
Contributor

Before deprecating the option entirely, we must first change the default behavior to do what we want.

[ci skip-rust]
[ci skip-build-wheels]

…resolver

# 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]
Copy link
Member

@jsirois jsirois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up.

def resolver_version(self) -> ResolverVersion:
if self.options.is_default("resolver_version"):
warn_or_error(
removal_version="2.4.0.dev0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional? The removal is 2.5.0.dev0 per the language below. 2.4.0.dev0 is only the default flip.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this deprecation is solely for the default. Then in 2.4, we will remove this deprecation and flip the default, and deprecate the option entirely.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm - OK. A bit unfortunate assuming the word removal shows up in help output - since that is not true. But thats the infra we have. SG.

@Eric-Arellano Eric-Arellano merged commit 6f0ba91 into pantsbuild:master Jan 25, 2021
@Eric-Arellano Eric-Arellano deleted the resolver-deprecation branch January 25, 2021 22:22
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