From 2b88af4ed2c957749dc696963d5e0f38fe6c3996 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 9 Jul 2021 20:34:34 +0100 Subject: [PATCH] Prep for 2.7.0.dev0 Internal changes omitted from the release notes: * [internal] `./pants lock` uses transitive closure as inputs ([#12312](https://github.com/pantsbuild/pants/pull/12312)) * [internal] Add experimental `./pants lock` to generate a lockfile with pip-compile ([#12300](https://github.com/pantsbuild/pants/pull/12300)) * upgrade tokio and futures crates ([#12308](https://github.com/pantsbuild/pants/pull/12308)) * upgrade tonic, tower, and hyper crates ([#12294](https://github.com/pantsbuild/pants/pull/12294)) * Set up pants to use the latest version of humbug ([#12302](https://github.com/pantsbuild/pants/pull/12302)) * Refactor BUILD file parsing. ([#12279](https://github.com/pantsbuild/pants/pull/12279)) * Use get_type_hints() to get typed type hints. ([#12287](https://github.com/pantsbuild/pants/pull/12287)) * [internal] Fix parameters of convert_source_to_sources_test ([#12274](https://github.com/pantsbuild/pants/pull/12274)) * Fix assert arguments in a test ([#12273](https://github.com/pantsbuild/pants/pull/12273)) * Introduce a native pants client. ([#11922](https://github.com/pantsbuild/pants/pull/11922)) * Don't run CI in forks ([#12267](https://github.com/pantsbuild/pants/pull/12267)) * Change how we embed docsite links in help text. ([#12261](https://github.com/pantsbuild/pants/pull/12261)) * Add JavacSubsystem and JavacBinary, allowing user-configurable JVM selection ([#12283](https://github.com/pantsbuild/pants/pull/12283)) * Revert "Deprecate unused `--process-execution-local-enable-nailgun` (#11600)" ([#12257](https://github.com/pantsbuild/pants/pull/12257)) --- CONTRIBUTORS.md | 2 ++ pants.toml | 1 + src/python/pants/VERSION | 2 +- .../backend/awslambda/python/target_types.py | 10 ------ src/python/pants/core/goals/lint.py | 14 -------- src/python/pants/notes/2.7.x.md | 35 +++++++++++++++++++ 6 files changed, 39 insertions(+), 25 deletions(-) create mode 100644 src/python/pants/notes/2.7.x.md diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c803ed4a9d4..92ed7966400 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -6,6 +6,7 @@ Created by running `./build-support/bin/contributors.sh`. + Alan Velasco + Alex Schmitt + Alexander Johnson ++ Alexey Tereshenkov + Alyssa Pohahau + Andreas Stenius + Andrew Hamilton @@ -71,6 +72,7 @@ Created by running `./build-support/bin/contributors.sh`. + Gabriel Gonzalez + Garrett Malmquist + Gary M. Josack ++ Gordon Cassie + Greg Shuflin + Guy Marom + Harley Cooper diff --git a/pants.toml b/pants.toml index 89f4e4bd1be..7b8029f79ee 100644 --- a/pants.toml +++ b/pants.toml @@ -137,6 +137,7 @@ release_notes = """ '2.4.x': 'src/python/pants/notes/2.4.x.md', '2.5.x': 'src/python/pants/notes/2.5.x.md', '2.6.x': 'src/python/pants/notes/2.6.x.md', + '2.7.x': 'src/python/pants/notes/2.7.x.md', } """ diff --git a/src/python/pants/VERSION b/src/python/pants/VERSION index 5082ccf227b..ba610dcf02c 100644 --- a/src/python/pants/VERSION +++ b/src/python/pants/VERSION @@ -1 +1 @@ -2.6.0rc0 +2.7.0.dev0 diff --git a/src/python/pants/backend/awslambda/python/target_types.py b/src/python/pants/backend/awslambda/python/target_types.py index 1cf3d6910ec..96392f075c5 100644 --- a/src/python/pants/backend/awslambda/python/target_types.py +++ b/src/python/pants/backend/awslambda/python/target_types.py @@ -8,7 +8,6 @@ from pants.backend.python.dependency_inference.module_mapper import PythonModule, PythonModuleOwners from pants.backend.python.dependency_inference.rules import PythonInferSubsystem, import_rules -from pants.backend.python.target_types import InterpreterConstraintsField from pants.core.goals.package import OutputPathField from pants.engine.addresses import Address from pants.engine.fs import GlobMatchErrorBehavior, PathGlobs, Paths @@ -33,14 +32,6 @@ from pants.util.docutil import doc_url -class DeprecatedAwsLambdaInterpreterConstraints(InterpreterConstraintsField): - removal_version = "2.7.0.dev0" - removal_hint = ( - "The `interpreter_constraints` field does not do anything for `python_awslambda` targets. " - "Use the `runtime` field instead to choose the Python interpreter." - ) - - class PythonAwsLambdaHandlerField(StringField, AsyncFieldMixin, SecondaryOwnerMixin): alias = "handler" required = True @@ -199,7 +190,6 @@ class PythonAWSLambda(Target): core_fields = ( *COMMON_TARGET_FIELDS, OutputPathField, - DeprecatedAwsLambdaInterpreterConstraints, PythonAwsLambdaDependencies, PythonAwsLambdaHandlerField, PythonAwsLambdaRuntime, diff --git a/src/python/pants/core/goals/lint.py b/src/python/pants/core/goals/lint.py index 971d24e6edb..2150bdba973 100644 --- a/src/python/pants/core/goals/lint.py +++ b/src/python/pants/core/goals/lint.py @@ -176,20 +176,6 @@ def register_options(cls, register) -> None: "faster than `--no-per-file-caching` for your use case." ), ) - register( - "--reports-dir", - type=str, - metavar="", - default=None, - advanced=True, - help=( - "Specifying a directory causes linters that support writing report files to write " - "into this directory." - ), - removal_version="2.7.0.dev0", - removal_hint=f"Edit the config file for the linter in question, or set its args via " - f"Pants options, to cause it to write reports under f{REPORT_DIR} .", - ) @property def per_file_caching(self) -> bool: diff --git a/src/python/pants/notes/2.7.x.md b/src/python/pants/notes/2.7.x.md new file mode 100644 index 00000000000..716a43f7d97 --- /dev/null +++ b/src/python/pants/notes/2.7.x.md @@ -0,0 +1,35 @@ +## 2.7.0.dev0 (Jul 09, 2021) + +### New Features + +* Add skimage module mapping for dependency inference ([#12301](https://github.com/pantsbuild/pants/pull/12301)) + +* add experimental terraform plugin with fmt and lint rules ([#11973](https://github.com/pantsbuild/pants/pull/11973)) + +* Add support for MyPy report files ([#12271](https://github.com/pantsbuild/pants/pull/12271)) + +* Support running tailor on subdirs. ([#12262](https://github.com/pantsbuild/pants/pull/12262)) + +* Support building dists from preexisting setup.py. ([#12250](https://github.com/pantsbuild/pants/pull/12250)) + +### User API Changes + +* Don't tailor a python_library for a solitary __init__.py. ([#12288](https://github.com/pantsbuild/pants/pull/12288)) + +* Apply a concurrency limit to remote store/cache/execution gRPC requests ([#12256](https://github.com/pantsbuild/pants/pull/12256)) + +### Bug fixes + +* Fix poetry_requirements: ignore internal projects. ([#12280](https://github.com/pantsbuild/pants/pull/12280)) + +* Fix poetry_requirements handling of python. ([#12278](https://github.com/pantsbuild/pants/pull/12278)) + +* Do not use `[python-setup].resolve_all_constraints` when using `platforms` ([#12268](https://github.com/pantsbuild/pants/pull/12268)) + +* Hotfix for `poetry_requirements` not being recognized as a macro in build files ([#12263](https://github.com/pantsbuild/pants/pull/12263)) + +* Include experimental Go backends in pantsbuild.pants ([#12290](https://github.com/pantsbuild/pants/pull/12290)) + +### Documentation + +* Improve error for out-of-line Gets. ([#12305](https://github.com/pantsbuild/pants/pull/12305))