Skip to main content

Test support for writing Pants plugins.

Project description

Pants is an Apache2 licensed build tool written in Python.

The latest documentation can be found at pantsbuild.

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.1rc0 (11/20/2020)

User API Changes

  • Revert premature deprecation of sources field for python_awslambda (#11217) PR #11217

Bugfixes

  • Move graph cycle detection to Rust to fix recursion limit. (cherrypick of #11202) (#11204) PR #11204

  • Set the soft ulimit value more conservatively to fix macOS Big Sur issue (cherrypick of #11194) (#11197) PR #11197

2.1.0 (11/17/2020)

The first stable release of the 2.1.x series, with no changes since the previous release candidate.

2.1.0rc3 (11/16/2020)

Bugfixes

  • Fix relative imports in dependency inference (Cherry-pick of #11181) (#11189) PR #11189

2.1.0rc2 (11/13/2020)

New Features

  • Remoting: allow timeout parameters to be configured (Cherry-pick of #11125) (#11158) PR #11158

User API Changes

  • Deprecate running Pants with Python 3.6 (#11173) PR #11173

  • Deprecate the sources field for python_awslambda (Cherry-pick of #11176) (#11178) PR #11178

Bugfixes

  • make a few minor reliability fixes to remote caching code (Cherry-pick of #11130) (#11159) PR #11159

2.1.0rc1 (11/11/2020)

Bugfixes

  • Upgrade to Pex 2.1.21 (Cherry-pick of #11131) (#11134) PR #11134

  • Fix Coverage not finding resource files when generating a report (Cherry-pick of #11129) (#11138) PR #11138

2.1.0rc0 (11/9/2020)

New Features

  • Add export-codegen goal (#11107) PR #11107

  • Add ./pants py-constraints –summary for project overview (#11099) PR #11099

  • Add ./pants help subsystems (#11088) PR #11088

  • Improve performance of dependency inference (#11094) PR #11094

User API Changes

  • Change default for –pants-distdir-legacy-paths and deprecate it (#11096) PR #11096

  • Clarify that process cache namespacing works for all runners (#11095) PR #11095

  • Deprecate target names containing slashes and colons (#11115) PR #11115

Plugin API Changes

  • Rename SourcesSnapshot to SpecsSnapshot (#11114) PR #11114

Bugfixes

  • Fix logs for test, lint, fmt, and typecheck to always print, even if cached (#11111) PR #11111

  • Fix pytest.pex leaking into coverage data (#11110) PR #11110

  • Fix –pex-verbosity to work with the interpreter selection PEX (#11108) PR #11108

  • Fix !! transitive excludes when used multiple times in a repo (#11103) PR #11103

  • Fix setup_py.with_provides() to respect the :func entry-point shorthand (#11093) PR #11093

  • Include a host fingerprint in pantsd’s identity (#11092) PR #11092

Documentation

2.1.0.dev0 (10/30/2020)

User API Changes

  • Do not error if ./pants package does not match any targets (#11051) PR #11051

  • Deprecate the compatibility field in favor of interpreter_constraints (#11074) PR #11074

  • Remove deprecated awslambda, binary, and setup-py goals in favor of package (#11048) PR #11048

  • Rename pex-binary/python-distribution to avoid naming collisions. (#11007) PR #11007

  • Remove deprecated –{fmt,lint}-per-target-caching in favor of –per-file-caching (#11062) PR #11062

  • Remove post_stats from RunTracker (#11068) PR #11068

  • Remove stats_version in runtracker (#11065) PR #11065

  • Remove deprecated –lang and –lc-all options in favor of –env-vars (#11066) PR #11066

  • Remove deprecated –protoc-runtime-targets option (#11083) PR #11083

  • Remove deprecated –interpreter-constraints option for some Python tools (#11082) PR #11082

  • Remove deprecated runtime_binary_dependencies field (#11079) PR #11079

  • Remove deprecated –spec-file option in favor of –spec-files (#11076) PR #11076

  • Remove deprecated [basic-auth], [reporter], and [run-tracker] options (#11078) PR #11078

  • Remove deprecated –print-exception-stacktrace in favor of –print-stacktrace (#11085) PR #11085

  • Remove unused global options (#11077) PR #11077

  • Remove deprecated python_requirement BUILD file symbol (#11055) PR #11055

  • Deprecate the platforms field allowing a bare string (#11073) PR #11073

  • Deprecate several unused options (#11041) PR #11041

  • Deprecate unused run-tracker options (#11038) PR #11038

  • Remove deprecated python-setup options (#10984) PR #10984

  • Remove deprecated Subsystem.get_options() in favor of Subsystem.options (#10986) PR #10986

  • Remove deprecated global options like –v2 and –backend-packages2 (#10985) PR #10985

  • Remove deprecated –changed-* options (#10982) PR #10982

  • Remove deprecated ./pants filter options (#10983) PR #10983

New Features

  • Add [python-setup].resolver_http_cache_ttl option (#10997) PR #10997

  • Add new py-constraints goal through new pants.backend.python.mixed_interpreter_constraints backend (#11075) PR #11075

  • Add :my_func shorthand for the entry_point field (#11064) PR #11064

  • Add new EngineAware method metadata() (#11030) PR #11030

  • remote caching support (#10960) PR #10960

  • Store per-run logs on RunTracker (#11025) PR #11025

  • Allow changing the URL to download tools like PEX and Protoc (#11013) PR #11013

  • Add mechanism to deprecate target types and fields (#10966) PR #10966

Bugfixes

  • remote caching: upload stdout/stderr content to remote cache (#11049) PR #11049

  • Fix PEX to always write to named_caches_dir, rather than ~/.pex (#11040) PR #11040

  • Fix setup_py().with_binaries() to use the default entry point (#11021) PR #11021

  • Fix resource leak warning with stdio (#10995) PR #10995

  • Fix ./pants repl to use global constrains when no targets specified (#10991) PR #10991

  • Fix overly verbose FieldSet in stack traces (#10978) PR #10978

  • Fix several bad usages of itertools.groupby() (#10976) PR #10976 PR #10974

  • Fix bug with linter targets being skipped (#10974) PR #10974

  • Fix config validation not erroring on global options in wrong scope (#10950) PR #10950

  • Automatically set setuptools interpreter constraints if unspecified (#10951) PR #10951

Documentation

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pantsbuild.pants.testutil-2.1.1rc0-py36.py37.py38-none-any.whl (24.7 kB view hashes)

Uploaded Python 3.6 Python 3.7 Python 3.8

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page