Skip to content

Commit

Permalink
Prepare 2.12.0.dev0. (pantsbuild#14919)
Browse files Browse the repository at this point in the history
[ci skip-rust]
  • Loading branch information
benjyw authored Mar 26, 2022
1 parent d469e80 commit 2229d78
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Created by running `./pants run build-support/bin/contributors.py`.
+ Antoine Tollenaere
+ Asher Foa
+ Bardur Arantsson
+ Bastian Wegge
+ Benjy Weinberger
+ Bill Farner
+ Billy "Hyun Joon" Seol
Expand Down Expand Up @@ -193,6 +194,7 @@ Created by running `./pants run build-support/bin/contributors.py`.
+ Paul Phillips
+ Paul Yau
+ Peiyu Wang
+ Peter A. I. Forsyth
+ Peter Seibel
+ Peter Vlugter
+ Pierre Chevalier
Expand Down
1 change: 1 addition & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,4 @@ master = "src/python/pants/notes/master.rst"
"2.9.x" = "src/python/pants/notes/2.9.x.md"
"2.10.x" = "src/python/pants/notes/2.10.x.md"
"2.11.x" = "src/python/pants/notes/2.11.x.md"
"2.12.x" = "src/python/pants/notes/2.12.x.md"
2 changes: 1 addition & 1 deletion src/python/pants/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.11.0rc0
2.12.0.dev0
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/subsystems/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,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.dev0",
"2.12.0.dev1",
"`[python].lockfile_generator` defaulting to 'poetry'",
softwrap(
f"""
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/backend/scala/subsystems/scalac.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Scalac(Subsystem):
"set `[scalac].plugins_global_lockfile`."
),
advanced=True,
removal_version="2.12.0.dev0",
removal_version="2.12.0.dev1",
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.dev0",
removal_version="2.12.0.dev1",
removal_hint="Use `--scalac-plugins-for-resolve` instead, which will add plugin dependencies to JVM user resolves.",
)

Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/engine/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,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.dev0",
removal_version="2.12.0.dev1",
entity=(
f"using a `Dependencies` field subclass ({copied_dependencies_field_types}) "
"as a `TargetGenerator.copied_field`"
Expand Down Expand Up @@ -883,7 +883,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.dev0",
removal_version="2.12.0.dev1",
entity=(
f"specifying an empty `{sources_field.alias}` field for target generator type "
f"`{self.alias}`"
Expand Down
35 changes: 35 additions & 0 deletions src/python/pants/notes/2.12.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 2.12.x Release Series

---------------------------------------------------------------------

## 2.12.0.dev0 (Mar 25, 2022)

### New Features

* Add Protobuf formatting using buf format ([#14907](https://github.com/pantsbuild/pants/pull/14907))

* add registration for the Go Protobuf backend ([#14874](https://github.com/pantsbuild/pants/pull/14874))

### User API Changes

* Remove `--use-deprecated-python-macros` in favor of always using target generators ([#14842](https://github.com/pantsbuild/pants/pull/14842))

* Add `django-dotenv`, `django-safedelete` and `factory-boy` to default Python module mapping ([#14848](https://github.com/pantsbuild/pants/pull/14848))

* Add cattrs to Python's DEFAULT_MODULE_MAPPING ([#14845](https://github.com/pantsbuild/pants/pull/14845))

* hcl parser 3.0.5 ([#14878](https://github.com/pantsbuild/pants/pull/14878))

### Plugin API Changes

* FmtResult now operates on Snapshots ([#14865](https://github.com/pantsbuild/pants/pull/14865))

### Bug fixes

* add cache key for all Go SDK invocations ([#14897](https://github.com/pantsbuild/pants/pull/14897))

* Unify glob-matching implementations to fix malformed snapshot created by subsetting ([#14889](https://github.com/pantsbuild/pants/pull/14889))

* Adds `ClasspathEntryRequest` classification for codegen target generators ([#14893](https://github.com/pantsbuild/pants/pull/14893))

* Adds `jvm_jdk` field to protobufs when the Scala backend is enabled ([#14891](https://github.com/pantsbuild/pants/pull/14891))
2 changes: 1 addition & 1 deletion src/python/pants/option/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_scope_info(cls) -> ScopeInfo:

@classmethod
@deprecated(
removal_version="2.12.0.dev0",
removal_version="2.12.0.dev1",
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 2229d78

Please sign in to comment.