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.1.0.dev0 #11089

Merged
merged 4 commits into from
Oct 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ release_notes = """
'1.29.x': 'src/python/pants/notes/1.29.x.rst',
'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',
}
"""

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.0.0rc0
2.1.0.dev0
14 changes: 0 additions & 14 deletions src/python/pants/backend/project_info/list_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ def register_options(cls, register):
"--provides-columns."
),
)
register(
"--provides-columns",
default="address,artifact_id",
help=(
"Display these columns when --provides is specified. Available columns are: "
"address, artifact_id, repo_name, repo_url, push_db_basedir"
),
removal_version="2.0.1.dev0",
removal_hint=(
"The option `--provides-columns` no longer does anything. It was specific to the "
"JVM backend, so no longer makes sense with Pants 2.0 initially only supporting "
"Python."
),
)
Comment on lines -30 to -43
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, thanks.

register(
"--documented",
type=bool,
Expand Down
158 changes: 158 additions & 0 deletions src/python/pants/notes/2.1.x.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
2.1.x Stable Releases
=====================

This document describes releases leading up to the ``2.1.x`` ``stable`` series.

See https://www.pantsbuild.org/v2.1/docs/release-notes-2-1 for an overview of the changes in this release.

2.1.0.dev0 (10/30/2020)
-----------------------

User API Changes
~~~~~~~~~~~~~~~~

* Do not error if `./pants package` does not match any targets (#11051)
`PR #11051 <https://github.com/pantsbuild/pants/pull/11051>`_

* Deprecate the `compatibility` field in favor of `interpreter_constraints` (#11074)
`PR #11074 <https://github.com/pantsbuild/pants/pull/11074>`_

* Remove deprecated `awslambda`, `binary`, and `setup-py` goals in favor of `package` (#11048)
`PR #11048 <https://github.com/pantsbuild/pants/pull/11048>`_

* Rename pex-binary/python-distribution to avoid naming collisions. (#11007)
`PR #11007 <https://github.com/pantsbuild/pants/pull/11007>`_

* Remove deprecated `--{fmt,lint}-per-target-caching` in favor of `--per-file-caching` (#11062)
`PR #11062 <https://github.com/pantsbuild/pants/pull/11062>`_

* Remove post_stats from RunTracker (#11068)
`PR #11068 <https://github.com/pantsbuild/pants/pull/11068>`_

* Remove stats_version in runtracker (#11065)
`PR #11065 <https://github.com/pantsbuild/pants/pull/11065>`_

* Remove deprecated `--lang` and `--lc-all` options in favor of `--env-vars` (#11066)
`PR #11066 <https://github.com/pantsbuild/pants/pull/11066>`_

* Remove deprecated `--protoc-runtime-targets` option (#11083)
`PR #11083 <https://github.com/pantsbuild/pants/pull/11083>`_

* Remove deprecated `--interpreter-constraints` option for some Python tools (#11082)
`PR #11082 <https://github.com/pantsbuild/pants/pull/11082>`_

* Remove deprecated `runtime_binary_dependencies` field (#11079)
`PR #11079 <https://github.com/pantsbuild/pants/pull/11079>`_

* Remove deprecated `--spec-file` option in favor of `--spec-files` (#11076)
`PR #11076 <https://github.com/pantsbuild/pants/pull/11076>`_

* Remove deprecated `[basic-auth]`, `[reporter]`, and `[run-tracker]` options (#11078)
`PR #11078 <https://github.com/pantsbuild/pants/pull/11078>`_

* Remove deprecated `--print-exception-stacktrace` in favor of `--print-stacktrace` (#11085)
`PR #11085 <https://github.com/pantsbuild/pants/pull/11085>`_

* Remove unused global options (#11077)
`PR #11077 <https://github.com/pantsbuild/pants/pull/11077>`_

* Remove deprecated `python_requirement` BUILD file symbol (#11055)
`PR #11055 <https://github.com/pantsbuild/pants/pull/11055>`_

* Deprecate the `platforms` field allowing a bare string (#11073)
`PR #11073 <https://github.com/pantsbuild/pants/pull/11073>`_
Comment on lines +62 to +63
Copy link
Contributor

Choose a reason for hiding this comment

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

User API change


* Deprecate several unused options (#11041)
`PR #11041 <https://github.com/pantsbuild/pants/pull/11041>`_

* Deprecate unused `run-tracker` options (#11038)
`PR #11038 <https://github.com/pantsbuild/pants/pull/11038>`_

* Remove deprecated `python-setup` options (#10984)
`PR #10984 <https://github.com/pantsbuild/pants/pull/10984>`_

* Remove deprecated `Subsystem.get_options()` in favor of `Subsystem.options` (#10986)
`PR #10986 <https://github.com/pantsbuild/pants/pull/10986>`_

* Remove deprecated global options like `--v2` and `--backend-packages2` (#10985)
`PR #10985 <https://github.com/pantsbuild/pants/pull/10985>`_

* Remove deprecated `--changed-*` options (#10982)
`PR #10982 <https://github.com/pantsbuild/pants/pull/10982>`_

* Remove deprecated `./pants filter` options (#10983)
`PR #10983 <https://github.com/pantsbuild/pants/pull/10983>`_

New Features
~~~~~~~~~~~~
Comment on lines +86 to +87
Copy link
Member

Choose a reason for hiding this comment

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

Would put both New Features and Bugfixes above API Changes in future.


* Add `[python-setup].resolver_http_cache_ttl` option (#10997)
`PR #10997 <https://github.com/pantsbuild/pants/pull/10997>`_

* Add new `py-constraints` goal through new `pants.backend.python.mixed_interpreter_constraints` backend (#11075)
`PR #11075 <https://github.com/pantsbuild/pants/pull/11075>`_

* Add `:my_func` shorthand for the `entry_point` field (#11064)
`PR #11064 <https://github.com/pantsbuild/pants/pull/11064>`_

* Add new EngineAware method metadata() (#11030)
`PR #11030 <https://github.com/pantsbuild/pants/pull/11030>`_

* remote caching support (#10960)
`PR #10960 <https://github.com/pantsbuild/pants/pull/10960>`_

* Store per-run logs on RunTracker (#11025)
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably internal only?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Any pants plugin writer can make use of this feature, even if it's only toolchain using it at the moment.

`PR #11025 <https://github.com/pantsbuild/pants/pull/11025>`_

* Allow changing the URL to download tools like PEX and Protoc (#11013)
`PR #11013 <https://github.com/pantsbuild/pants/pull/11013>`_

* Add mechanism to deprecate target types and fields (#10966)
Copy link
Contributor

Choose a reason for hiding this comment

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

Internal only

`PR #10966 <https://github.com/pantsbuild/pants/pull/10966>`_

Bugfixes
~~~~~~~~

* remote caching: upload stdout/stderr content to remote cache (#11049)
`PR #11049 <https://github.com/pantsbuild/pants/pull/11049>`_

* Fix PEX to always write to `named_caches_dir`, rather than `~/.pex` (#11040)
`PR #11040 <https://github.com/pantsbuild/pants/pull/11040>`_

* Fix `setup_py().with_binaries()` to use the default entry point (#11021)
`PR #11021 <https://github.com/pantsbuild/pants/pull/11021>`_

* Fix resource leak warning with stdio (#10995)
`PR #10995 <https://github.com/pantsbuild/pants/pull/10995>`_

* Fix `./pants repl` to use global constrains when no targets specified (#10991)
`PR #10991 <https://github.com/pantsbuild/pants/pull/10991>`_

* Fix overly verbose `FieldSet` in stack traces (#10978)
`PR #10978 <https://github.com/pantsbuild/pants/pull/10978>`_

* Fix several bad usages of `itertools.groupby()` (#10976)
`PR #10976 <https://github.com/pantsbuild/pants/pull/10976>`_
`PR #10974 <https://github.com/pantsbuild/pants/pull/10974>`_

* Fix bug with linter targets being skipped (#10974)
`PR #10974 <https://github.com/pantsbuild/pants/pull/10974>`_

* Fix config validation not erroring on global options in wrong scope (#10950)
`PR #10950 <https://github.com/pantsbuild/pants/pull/10950>`_

* Automatically set setuptools interpreter constraints if unspecified (#10951)
`PR #10951 <https://github.com/pantsbuild/pants/pull/10951>`_


Documentation
~~~~~~~~~~~~~

* Improve error message for invalid input in `Get()`s (#11081)
`PR #11081 <https://github.com/pantsbuild/pants/pull/11081>`_

* Improve several help messages (#11029)
`PR #11029 <https://github.com/pantsbuild/pants/pull/11029>`_

* Fold target help into the help system. (#11022)
`PR #11022 <https://github.com/pantsbuild/pants/pull/11022>`_
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.1.0.dev0",
removal_version="2.1.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.1.0.dev0",
removal_version="2.1.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.1.0.dev0",
removal_version="2.1.0.dev1",
deprecated_entity_description="the property PantsResult.stderr_data",
hint="Use `PantsResult.stderr` instead.",
)
Expand Down Expand Up @@ -381,7 +381,7 @@ def run_pants_with_workdir_without_waiting(
**kwargs: Any,
) -> PantsJoinHandle:
warn_or_error(
removal_version="2.1.0.dev0",
removal_version="2.1.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 @@ -409,7 +409,7 @@ def run_pants_with_workdir(
**kwargs: Any,
) -> PantsResult:
warn_or_error(
removal_version="2.1.0.dev0",
removal_version="2.1.0.dev1",
deprecated_entity_description="PantsIntegrationTest.run_pants_with_workdir()",
hint=(
"Use the top-level function `run_pants_with_workdir()`. "
Expand Down Expand Up @@ -437,7 +437,7 @@ def run_pants(
**kwargs: Any,
) -> PantsResult:
warn_or_error(
removal_version="2.1.0.dev0",
removal_version="2.1.0.dev1",
deprecated_entity_description="PantsIntegrationTest.run_pants()",
hint=(
"Use the top-level function `run_pants()`. `PantsIntegrationTest` is deprecated."
Expand All @@ -456,7 +456,7 @@ def run_pants(
@staticmethod
def assert_success(pants_run: PantsResult, msg: Optional[str] = None) -> None:
warn_or_error(
removal_version="2.1.0.dev0",
removal_version="2.1.0.dev1",
deprecated_entity_description="PantsIntegrationTest.assert_success()",
hint="Use `PantsResult.assert_success()`. `PantsIntegrationTest` is deprecated.",
)
Expand All @@ -465,7 +465,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.1.0.dev0",
removal_version="2.1.0.dev1",
deprecated_entity_description="PantsIntegrationTest.assert_failure()",
hint="Use `PantsResult.assert_failure()`. `PantsIntegrationTest` is deprecated.",
)
Expand All @@ -474,7 +474,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.1.0.dev0",
removal_version="2.1.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/pants_run_integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
from pants.testutil.pants_integration_test import PantsResult as PantsResult # noqa: F401

deprecated_module(
removal_version="2.1.0.dev0", hint_message="Use pants.testutil.pants_integration_test"
removal_version="2.1.0.dev1", hint_message="Use pants.testutil.pants_integration_test"
)
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.1.0.dev0",
removal_version="2.1.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