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 the platforms field allowing a bare string #11073

Merged
merged 1 commit into from Oct 28, 2020

Conversation

Eric-Arellano
Copy link
Contributor

StringOrStringSequenceField is a misfeature. It's confusing, and only saves 2 characters between ["foo"] vs. "foo".

We'll remove the only remaining instance, the compatiblity field, as part of #9273.

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

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

Coverage Status

Coverage remained the same at 0.0% when pulling b66dc7b on Eric-Arellano:dep-platforms into 0a04bbc on pantsbuild:master.

Copy link
Contributor

@tdyas tdyas left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +197 to +198
if isinstance(raw_value, str) and address.is_base_target:
warn_or_error(
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Nit: the if+warn_or_error combo is what deprecated_conditional is meant to accomplish. It doesn't really have a great advantage over this usage, other than that it's a bit more obvious that the conditional/if exists only to serve the deprecation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, true. I'll fix in a related followup.

@Eric-Arellano Eric-Arellano merged commit 4379a9b into pantsbuild:master Oct 28, 2020
@Eric-Arellano Eric-Arellano deleted the dep-platforms branch October 28, 2020 20:39
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

4 participants