Skip to content

Commit

Permalink
Prepare 2.17.0.dev0 (pantsbuild#18470)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano authored Mar 11, 2023
1 parent 89f4942 commit e338a90
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 17 deletions.
1 change: 1 addition & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -301,3 +301,4 @@ master = "src/python/pants/notes/master.rst"
"2.14.x" = "src/python/pants/notes/2.14.x.md"
"2.15.x" = "src/python/pants/notes/2.15.x.md"
"2.16.x" = "src/python/pants/notes/2.16.x.md"
"2.17.x" = "src/python/pants/notes/2.17.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.16.0a0
2.17.0.dev0
6 changes: 3 additions & 3 deletions src/python/pants/backend/adhoc/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ class AdhocToolOutputDependenciesField(AdhocToolDependenciesField):
supports_transitive_excludes = True
alias: ClassVar[str] = "output_dependencies"
deprecated_alias = "dependencies"
deprecated_alias_removal_version = "2.17.0.dev0"
deprecated_alias_removal_version = "2.17.0.dev1"

help = help_text(
lambda: f"""
Any dependencies that the output artifacts require in order to be effectively consumed.
To enable legacy use cases, if `{AdhocToolExecutionDependenciesField.alias}` is `None`,
these dependencies will be materialized in the execution sandbox. This behavior is
deprecated, and will be removed in version 2.17.0.dev0.
deprecated, and will be removed in version 2.17.0.dev1.
"""
)

Expand Down Expand Up @@ -232,7 +232,7 @@ class AdhocToolOutputRootDirField(StringField):
class AdhocToolTarget(Target):
alias: ClassVar[str] = "adhoc_tool"
deprecated_alias = "experimental_run_in_sandbox"
deprecated_alias_removal_version = "2.17.0.dev0"
deprecated_alias_removal_version = "2.17.0.dev1"
core_fields = (
*COMMON_TARGET_FIELDS,
AdhocToolRunnableField,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def py_constraints(
if py_constraints_subsystem.summary:
if not py_constraints_subsystem.summary_use_new_header:
warn_or_error(
"2.17.0.dev0",
"2.17.0.dev1",
"the old, misleading, `# Dependees` header",
"Set --summary-use-new-header to true to start using the new `# Dependents` header.",
)
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/backend/python/subsystems/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ class PythonSetup(Subsystem):

@memoized_property
def interpreter_constraints(self) -> tuple[str, ...]:
# TODO: In 2.17.0.dev0 we should set the default above to None and tweak the message here
# TODO: In 2.17.0.dev1 we should set the default above to None and tweak the message here
# appropriately.
if self.options.is_default("interpreter_constraints"):
warn_or_error(
"2.17.0.dev0",
"2.17.0.dev1",
"the factory default interpreter constraints value",
softwrap(
f"""\
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/backend/shell/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class ShellCommandOutputsField(StringSequenceField):
"""
)
removal_hint = "To fix, use `output_files` and `output_directories` instead."
removal_version = "2.17.0.dev0"
removal_version = "2.17.0.dev1"


class ShellCommandOutputFilesField(AdhocToolOutputFilesField):
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/core/util_rules/adhoc_process_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class AdhocProcessResult:
class ResolveExecutionDependenciesRequest:
address: Address
execution_dependencies: tuple[str, ...] | None
dependencies: tuple[str, ...] | None # can go away after 2.17.0.dev0 per deprecation
dependencies: tuple[str, ...] | None # can go away after 2.17.0.dev1 per deprecation
runnable_dependencies: tuple[str, ...] | None


Expand Down Expand Up @@ -284,7 +284,7 @@ async def resolve_execution_environment(
# dependencies.
execution_dependencies = Addresses((target_address,))
warn_or_error(
"2.17.0.dev0",
"2.17.0.dev1",
"Using `dependencies` to specify execution-time dependencies for `shell_command` ",
(
"To clear this warning, use the `output_dependencies` and `execution_dependencies`"
Expand Down
6 changes: 3 additions & 3 deletions src/python/pants/engine/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ def __getattr__(name):
return EnvironmentName
if name == "CompleteEnvironment":
warn_or_error(
"2.17.0.dev0",
"2.17.0.dev1",
"`pants.engine.environment.CompleteEnvironment`",
"Use `pants.engine.env_vars.CompleteEnvironmentVars`.",
)
return CompleteEnvironmentVars
if name == "EnvironmentRequest":
warn_or_error(
"2.17.0.dev0",
"2.17.0.dev1",
"`pants.engine.environment.EnvironmentRequest`",
"Use `pants.engine.env_vars.EnvironmentVarsRequest`.",
)
return EnvironmentVarsRequest
if name == "Environment":
warn_or_error(
"2.17.0.dev0",
"2.17.0.dev1",
"`pants.engine.environment.Environment`",
"Use `pants.engine.env_vars.EnvironmentVars`.",
)
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/engine/goal.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class EnvironmentBehavior(Enum):
f"""Indicates that a Goal has been migrated to compute EnvironmentNames to build targets in.
All goals in `pantsbuild/pants` should be migrated before the 2.15.x branch is cut, but end
user goals have until `2.17.0.dev0` to migrate.
user goals have until `2.17.0.dev1` to migrate.
See {doc_url('plugin-upgrade-guide')}.
"""
Expand All @@ -120,7 +120,7 @@ class EnvironmentBehavior(Enum):
def _selects_environments(cls) -> bool:
deprecated_conditional(
lambda: cls.environment_behavior == Goal.EnvironmentBehavior.UNMIGRATED,
"2.17.0.dev0",
"2.17.0.dev1",
f"Setting `Goal.environment_behavior=EnvironmentBehavior.UNMIGRATED` for `Goal` "
f"`{cls.name}`",
hint=f"See {doc_url('plugin-upgrade-guide')}\n",
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/engine/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
def SubsystemRule(subsystem: Type[Subsystem]) -> Rule:
"""Returns a TaskRule that constructs an instance of the subsystem."""
warn_or_error(
removal_version="2.17.0.dev0",
removal_version="2.17.0.dev1",
entity=f"using `SubsystemRule({subsystem.__name__})`",
hint=f"Use `*{subsystem.__name__}.rules()` instead.",
)
Expand Down
27 changes: 27 additions & 0 deletions src/python/pants/notes/2.17.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 2.17.x Release Series

## 2.17.0.dev0 (Mar 10, 2023)

### New Features

* Expose environment information on process metadata ([#18458](https://github.com/pantsbuild/pants/pull/18458))

* Support running `pants` from anywhere in the project. ([#18412](https://github.com/pantsbuild/pants/pull/18412))

### User API Changes

* Audit and update requirements for Python tools. ([#18431](https://github.com/pantsbuild/pants/pull/18431))

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

### Bug fixes

* Preserve environment variables in `pantsd` to allow Docker auth. ([#18465](https://github.com/pantsbuild/pants/pull/18465))

* Only expose the equiv of `from typing import *` in prelude files ([#18452](https://github.com/pantsbuild/pants/pull/18452))

* Support type hints in prelude files. ([#18442](https://github.com/pantsbuild/pants/pull/18442))

* Synthesized lockfile targets should never err on missing lockfiles. ([#18406](https://github.com/pantsbuild/pants/pull/18406))

* Fixes to visualisations for xdot ([#18421](https://github.com/pantsbuild/pants/pull/18421))
2 changes: 1 addition & 1 deletion src/python/pants/util/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def frozen_after_init(cls: C) -> C:
from pants.base.deprecated import deprecated

@deprecated(
removal_version="2.17.0.dev0",
removal_version="2.17.0.dev1",
hint=softwrap(
"""
Use `frozen=True` and remove `unsafe_hash=True` in your dataclass decorator,
Expand Down

0 comments on commit e338a90

Please sign in to comment.