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

Prepare 2.2.0.dev0 #11239

Merged
merged 3 commits into from
Nov 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions build-support/bin/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def prepare_sha(sha: str) -> str:
pr_num = pr_num_match.groups()[0]
pr_url = f"https://github.com/pantsbuild/pants/pull/{pr_num}"
subject_with_url = subject.replace(f"(#{pr_num})", f"([#{pr_num}]({pr_url}))")
return f"* {subject_with_url.capitalize()}"
return f"* {subject_with_url}"


def instructions(new_version: str) -> str:
Expand All @@ -72,24 +72,24 @@ def instructions(new_version: str) -> str:

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

# {new_version} ({date})
## {new_version} ({date})

## New Features
### New Features


## User API Changes
### User API Changes


## Plugin API Changes
### Plugin API Changes


## Bug fixes
### Bug fixes


## Documentation
### Documentation


## Internal only (Copy into the PR description, rather than the release notes)
### Internal only (Copy into the PR description, rather than the release notes)


--------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ release_notes = """
'1.30.x': 'src/python/pants/notes/1.30.x.rst',
'2.0.x': 'src/python/pants/notes/2.0.x.rst',
'2.1.x': 'src/python/pants/notes/2.1.x.rst',
'2.2.x': 'src/python/pants/notes/2.2.x.md',
}
"""

Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0rc0
2.2.0.dev0
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def compute_value(
if isinstance(raw_value, str) and not address.is_file_target:
warn_or_error(
deprecated_entity_description=f"Using a bare string for the `{cls.alias}` field",
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
hint=(
f"Using a bare string for the `{cls.alias}` field for {address}. Please "
f"instead use a list of strings, i.e. use `[{raw_value}]`."
Expand Down
59 changes: 59 additions & 0 deletions src/python/pants/notes/2.2.x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 2.1.x Stable Releases
Copy link
Member

Choose a reason for hiding this comment

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

2.2.x


This is the first release to require having a Python 3.7 or 3.8 interpreter to run Pants. Run `curl -L -o ./pants
https://raw.githubusercontent.com/pantsbuild/setup/2f079cbe4fc6a1d9d87decba51f19d7689aee69e/pants` to update your
`./pants` script to choose the correct interpreter.

## 2.2.0.dev0 (Nov 24, 2020)

### New Features

* Add dependency inference for Protobuf <-> Protobuf imports ([#11205](https://github.com/pantsbuild/pants/pull/11205))

* Add dependency inference for Python imports of Protobuf/gRPC ([#11195](https://github.com/pantsbuild/pants/pull/11195))

* Allow setting the entry point for a `pex_binary` to `<none>` ([#11199](https://github.com/pantsbuild/pants/pull/11199))

* Add support for filtering file vs BUILD targets ([#11126](https://github.com/pantsbuild/pants/pull/11126))

* Cancel sessions rather than killing pantsd ([#11123](https://github.com/pantsbuild/pants/pull/11123))

* Remoting: allow timeout parameters to be configured ([#11125](https://github.com/pantsbuild/pants/pull/11125))

### User API Changes

* Require Python 3.7 or 3.8 to run Pants ([#11135](https://github.com/pantsbuild/pants/pull/11135))

* Deprecate `mypy_source_plugin` and `pylint_source_plugin` targets in favor of `python_library` ([#11233](https://github.com/pantsbuild/pants/pull/11233))

* Remove deprecated `compatibility` field in favor of `interpreter_constraints` ([#11225](https://github.com/pantsbuild/pants/pull/11225))

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

### Plugin API Changes

* Remove `PrimitiveField` and align `AsyncField` with `Field` ([#11231](https://github.com/pantsbuild/pants/pull/11231))

* Change `AsyncField` to be `AsyncFieldMixin` ([#11232](https://github.com/pantsbuild/pants/pull/11232))

* Deprecate `TransitiveTargetsRequestLite` and `DependenciesRequestLite` now that graph cycle is fixed ([#11188](https://github.com/pantsbuild/pants/pull/11188))

### Bug fixes

* Set the soft ulimit value more conservatively to fix macOS Big Sur issue ([#11194](https://github.com/pantsbuild/pants/pull/11194))

* Move graph cycle detection to Rust to fix recursion limit. ([#11202](https://github.com/pantsbuild/pants/pull/11202))

* Fix relative imports in dependency inference ([#11181](https://github.com/pantsbuild/pants/pull/11181))

* Remove extraneous info level log line ([#11228](https://github.com/pantsbuild/pants/pull/11228))

* Fix Coverage not finding resource files when generating a report ([#11129](https://github.com/pantsbuild/pants/pull/11129))

* Fix `test` results showing up twice by removing `TargetsWithOrigin` ([#11128](https://github.com/pantsbuild/pants/pull/11128))

* Make a few minor reliability fixes to remote caching code ([#11130](https://github.com/pantsbuild/pants/pull/11130))

### Documentation

* Improve error message for no applicable targets ([#11215](https://github.com/pantsbuild/pants/pull/11215))
4 changes: 2 additions & 2 deletions src/python/pants/option/global_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def register_bootstrap_options(cls, register):
"`src.python.project/app.pex`, rather than `app.pex`. Use the field `output_path` "
"to override these default values."
),
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
removal_hint=(
"The pre-2.0 naming scheme for artifacts built with `./pants package` is being "
"removed because it often resulted in ambiguity and overwriting other artifacts. "
Expand Down Expand Up @@ -777,7 +777,7 @@ def register_bootstrap_options(cls, register):
register(
"--remote-execution-process-cache-namespace",
advanced=True,
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
removal_hint="Use the `--process-execution-cache-namespace` option instead.",
help="The cache namespace for remote process execution. "
"Bump this to invalidate every artifact's remote execution. "
Expand Down
18 changes: 9 additions & 9 deletions src/python/pants/testutil/pants_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PantsResult:
@property
def returncode(self) -> int:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="the property PantsResult.returncode",
hint="Use `PantsResult.exit_code` instead.",
)
Expand All @@ -47,7 +47,7 @@ def returncode(self) -> int:
@property
def stdout_data(self) -> str:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="the property PantsResult.stdout_data",
hint="Use `PantsResult.stdout` instead.",
)
Expand All @@ -56,7 +56,7 @@ def stdout_data(self) -> str:
@property
def stderr_data(self) -> str:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="the property PantsResult.stderr_data",
hint="Use `PantsResult.stderr` instead.",
)
Expand Down Expand Up @@ -383,7 +383,7 @@ def run_pants_with_workdir_without_waiting(
**kwargs: Any,
) -> PantsJoinHandle:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="PantsIntegrationTest.run_pants_with_workdir_without_waiting()",
hint=(
"Use the top-level function `run_pants_with_workdir_without_waiting()`. "
Expand Down Expand Up @@ -411,7 +411,7 @@ def run_pants_with_workdir(
**kwargs: Any,
) -> PantsResult:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="PantsIntegrationTest.run_pants_with_workdir()",
hint=(
"Use the top-level function `run_pants_with_workdir()`. "
Expand Down Expand Up @@ -439,7 +439,7 @@ def run_pants(
**kwargs: Any,
) -> PantsResult:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="PantsIntegrationTest.run_pants()",
hint=(
"Use the top-level function `run_pants()`. `PantsIntegrationTest` is deprecated."
Expand All @@ -458,7 +458,7 @@ def run_pants(
@staticmethod
def assert_success(pants_run: PantsResult, msg: Optional[str] = None) -> None:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="PantsIntegrationTest.assert_success()",
hint="Use `PantsResult.assert_success()`. `PantsIntegrationTest` is deprecated.",
)
Expand All @@ -467,7 +467,7 @@ def assert_success(pants_run: PantsResult, msg: Optional[str] = None) -> None:
@staticmethod
def assert_failure(pants_run: PantsResult, msg: Optional[str] = None) -> None:
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="PantsIntegrationTest.assert_failure()",
hint="Use `PantsResult.assert_failure()`. `PantsIntegrationTest` is deprecated.",
)
Expand All @@ -476,7 +476,7 @@ def assert_failure(pants_run: PantsResult, msg: Optional[str] = None) -> None:
@staticmethod
def temporary_workdir(cleanup: bool = True):
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="PantsIntegrationTest.temporary_workdir()",
hint=(
"Use the top-level function `temporary_workdir`. `PantsIntegrationTest` is "
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/testutil/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def setUp(self):
def setUpClass(cls) -> None:
super().setUpClass()
warn_or_error(
removal_version="2.2.0.dev0",
removal_version="2.2.0.dev1",
deprecated_entity_description="pants.testutil.test_base.TestBase",
hint=(
"Use `pants.testutil.rule_runner.RuleRunner` instead, which uses a Pytest fixture "
Expand Down