Skip to content

Commit

Permalink
Prepare 2.12.0.dev1 (#15011)
Browse files Browse the repository at this point in the history
[ci skip-rust]
  • Loading branch information
Eric-Arellano committed Apr 5, 2022
1 parent a49bb9e commit c9bb934
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/python/pants/VERSION
@@ -1 +1 @@
2.12.0.dev0
2.12.0.dev1
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/subsystems/setup.py
Expand Up @@ -345,7 +345,7 @@ def generate_lockfiles_with_pex(self) -> bool:
"""Else, generate with Poetry."""
if self.options.is_default("lockfile_generator"):
warn_or_error(
"2.12.0.dev1",
"2.12.0.dev2",
"`[python].lockfile_generator` defaulting to 'poetry'",
softwrap(
f"""
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/backend/scala/subsystems/scalac.py
Expand Up @@ -30,7 +30,7 @@ class Scalac(Subsystem):
"set `[scalac].plugins_global_lockfile`."
),
advanced=True,
removal_version="2.12.0.dev1",
removal_version="2.12.0.dev2",
removal_hint="Use `--scalac-plugins-for-resolve` instead to use user resolves",
)

Expand All @@ -54,7 +54,7 @@ class Scalac(Subsystem):
"`[scalac].plugins_global`."
),
advanced=True,
removal_version="2.12.0.dev1",
removal_version="2.12.0.dev2",
removal_hint="Use `--scalac-plugins-for-resolve` instead, which will add plugin dependencies to JVM user resolves.",
)

Expand Down
6 changes: 3 additions & 3 deletions src/python/pants/engine/target.py
Expand Up @@ -830,7 +830,7 @@ def maybe_warn_dependencies_as_copied_field(tgt_type: type[TargetGenerator]) ->
]
if copied_dependencies_field_types:
warn_or_error(
removal_version="2.12.0.dev1",
removal_version="2.12.0.dev2",
entity=(
f"using a `Dependencies` field subclass ({copied_dependencies_field_types}) "
"as a `TargetGenerator.copied_field`"
Expand Down Expand Up @@ -894,7 +894,7 @@ def validate(self) -> None:
if self.has_field(MultipleSourcesField) and not self[MultipleSourcesField].value:
sources_field = self[MultipleSourcesField]
warn_or_error(
removal_version="2.12.0.dev1",
removal_version="2.12.0.dev2",
entity=(
f"specifying an empty `{sources_field.alias}` field for target generator type "
f"`{self.alias}`"
Expand Down Expand Up @@ -1013,7 +1013,7 @@ def __init__(self, *args, **kwargs):
# argument, so that callers are forced to cast / check subtyping before calling.
deprecated_conditional(
lambda: not issubclass(tgt_cls, TargetGenerator),
removal_version="2.12.0.dev0",
removal_version="2.12.0.dev2",
entity="`GenerateTargetsRequest.generate_from` types which do not subclass `TargetGenerator`",
hint=(
f"The generate_from type of `{request.__name__}` was `{tgt_cls.__name__}`, "
Expand Down
46 changes: 45 additions & 1 deletion src/python/pants/notes/2.12.x.md
@@ -1,6 +1,50 @@
# 2.12.x Release Series

---------------------------------------------------------------------
## 2.12.0.dev1 (Apr 05, 2022)

### New Features

* Support restricting specific requirements to just wheels or just sdists. ([#14985](https://github.com/pantsbuild/pants/pull/14985))

* Add support for Helm unittest ([#14849](https://github.com/pantsbuild/pants/pull/14849))

* Add support for parsing address parameters to CLI specs parsing ([#14949](https://github.com/pantsbuild/pants/pull/14949))

### User API Changes

* Merge list values across config files. ([#14850](https://github.com/pantsbuild/pants/pull/14850))

* Write test reports to a standard location under the distdir. ([#14929](https://github.com/pantsbuild/pants/pull/14929))

* Upgrade Pex to 2.1.76. ([#14992](https://github.com/pantsbuild/pants/pull/14992))

* Upgrade coursier to v2.1.0-M5-18-gfebf9838c ([#14978](https://github.com/pantsbuild/pants/pull/14978))

### Plugin API Changes

* "Unify" `fmt` and `lint` rules for formatters ([#14903](https://github.com/pantsbuild/pants/pull/14903))

* Refactor `prior_formatter_result` and its usage ([#14987](https://github.com/pantsbuild/pants/pull/14987))

* Deprecate not implementing `TargetGenerator` in `GenerateTargetsRequest` implementors. ([#14959](https://github.com/pantsbuild/pants/pull/14959))

### Bug fixes

* add go protobuf backend to init/BUILD ([#14979](https://github.com/pantsbuild/pants/pull/14979))

* Fix Pylint config check strings ([#14946](https://github.com/pantsbuild/pants/pull/14946))

* Fix missing `check` output by allowing disabled workunits to re-enable themselves ([#14934](https://github.com/pantsbuild/pants/pull/14934))

* Fix unrecognized field error and `update-build-files` to handle target generator moved fields ([#14847](https://github.com/pantsbuild/pants/pull/14847))

### Performance

* Make PEX lockfile subsetting incremental ([#14944](https://github.com/pantsbuild/pants/pull/14944))

### Documentation

* Don't warn if no relevant targets in glob or --changed. ([#14904](https://github.com/pantsbuild/pants/pull/14904))

## 2.12.0.dev0 (Mar 25, 2022)

Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/option/subsystem.py
Expand Up @@ -99,7 +99,7 @@ def get_scope_info(cls) -> ScopeInfo:

@classmethod
@deprecated(
removal_version="2.12.0.dev1",
removal_version="2.12.0.dev2",
hint=(
"Options are now registered by declaring class attributes using the types in "
f"pants/option/option_types.py. See {doc_url('plugin-upgrade-guide')}"
Expand Down

0 comments on commit c9bb934

Please sign in to comment.