Skip to content

Commit

Permalink
Prepare 2.1.0.dev0 (#11089)
Browse files Browse the repository at this point in the history
Internal-only changes: 

* upgrade to cpython crate v0.5.1 (#11052)
  `PR #11052 <https://github.com/pantsbuild/pants/pull/11052>`_

* Prepare 2.0.0 (#11053)
  `PR #11053 <https://github.com/pantsbuild/pants/pull/11053>`_

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

* Remove deprecated `python_binary` target in favor of `pex_binary` (#11046)
  `PR #11046 <https://github.com/pantsbuild/pants/pull/11046>`_

* Prepare 2.0.0rc3 (#11044)
  `PR #11044 <https://github.com/pantsbuild/pants/pull/11044>`_

* Eagerly validate entry points for `setup_py().with_binaries()` (#11034)
  `PR #11034 <https://github.com/pantsbuild/pants/pull/11034>`_
  `PR #11021 <https://github.com/pantsbuild/pants/pull/11021>`_

* Use Ubuntu Bionic for CI (#11027)
  `PR #11027 <https://github.com/pantsbuild/pants/pull/11027>`_

* Prepare 2.0.0rc2 (#11017)
  `PR #11017 <https://github.com/pantsbuild/pants/pull/11017>`_

* Remove RunTrackerLogger (#11018)
  `PR #11018 <https://github.com/pantsbuild/pants/pull/11018>`_

* Upgrade Pex to 2.1.20 (#11014)
  `PR #11014 <https://github.com/pantsbuild/pants/pull/11014>`_

* Remove more unused code from RunTracker (#11012)
  `PR #11012 <https://github.com/pantsbuild/pants/pull/11012>`_

* Add type annotations to AggregatedTimings (#11009)
  `PR #11009 <https://github.com/pantsbuild/pants/pull/11009>`_

* Increase default `[python-setup].resolver_jobs` to `cpu_count / 2` (#11006)
  `PR #11006 <https://github.com/pantsbuild/pants/pull/11006>`_

* Include `<PYENV>` in `[python-setup].interpreter_search_paths` default (#10998)
  `PR #10998 <https://github.com/pantsbuild/pants/pull/10998>`_

* Remove PantsDaemonStats class wrapper (#11003)
  `PR #11003 <https://github.com/pantsbuild/pants/pull/11003>`_
  `PR #files#r508861045 <https://github.com/pantsbuild/pants/pull/11000/files#r508861045>`_

* Revert using libCST for dep inference due to performance (#10907) (#11001)
  `PR #10907 <https://github.com/pantsbuild/pants/pull/10907>`_
  `PR #11001 <https://github.com/pantsbuild/pants/pull/11001>`_


* Run tracker refactor (#11000)
  `PR #11000 <https://github.com/pantsbuild/pants/pull/11000>`_

* refactor Core::new including command runner setup (#10993)
  `PR #10993 <https://github.com/pantsbuild/pants/pull/10993>`_
  `PR #10960 <https://github.com/pantsbuild/pants/pull/10960>`_

* Allow changing the versioning scheme for `python_distribution` first-party dependencies (#10977)
  `PR #10977 <https://github.com/pantsbuild/pants/pull/10977>`_

* Remove tokio Handle type from Executor::new (#10980)
  `PR #10980 <https://github.com/pantsbuild/pants/pull/10980>`_

* Remove deprecated `Address.parse()` and `Address.reference()` (#10981)
  `PR #10981 <https://github.com/pantsbuild/pants/pull/10981>`_

* Remove project_ methods from the externs module (#10955)
  `PR #10955 <https://github.com/pantsbuild/pants/pull/10955>`_

* Prepare 2.0.0rc1 (#10972)
  `PR #10972 <https://github.com/pantsbuild/pants/pull/10972>`_

* Fix interpreter selection when building a PEX to use `[python-setup].interpreter_search_paths` (#10965)
  `PR #10965 <https://github.com/pantsbuild/pants/pull/10965>`_

* Delete `JsonReporter` (#10964)
  `PR #10964 <https://github.com/pantsbuild/pants/pull/10964>`_

* Fix log (#10959)
  `PR #10959 <https://github.com/pantsbuild/pants/pull/10959>`_

* Expose getattr method for Python-related APIs (#10953)
  `PR #10953 <https://github.com/pantsbuild/pants/pull/10953>`_

* Upgrade tokio package to 0.2.22 (#10949)
  `PR #10949 <https://github.com/pantsbuild/pants/pull/10949>`_

* Use `package` to build Pants's wheels, rather than `setup-py` (#10947)
  `PR #10947 <https://github.com/pantsbuild/pants/pull/10947>`_

* Simplify val_to_str and have it and val_to_log_level use PyObject (#10946)
  `PR #10946 <https://github.com/pantsbuild/pants/pull/10946>`_
  • Loading branch information
gshuflin authored Oct 31, 2020
1 parent 4283b13 commit bf5e789
Show file tree
Hide file tree
Showing 7 changed files with 171 additions and 26 deletions.
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."
),
)
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>`_

* 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
~~~~~~~~~~~~

* 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)
`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)
`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

0 comments on commit bf5e789

Please sign in to comment.