Test support for writing Pants plugins.
Project description
Pants is an Apache2 licensed build tool written in Python and Rust.
The latest documentation can be found at pantsbuild.org.
2.9.x Release Series
2.9.0.dev1 (Nov 13, 2021)
New Features
-
Add
instructions
field todocker_image
to support generating the Dockerfile (#13386) -
Add
--unowned-dependency-behavior
option for Python (#13491)
User API Changes
- Upgrade default pylint to v2.11.1 (#13585)
Plugin API Changes
- [plugin-api] Add
default_glob_match_error_behavior
toSourcesField
. (#13578)
Bug fixes
- Fix
--no-print-stacktrace
. (#13539)
Performance
-
Do not invalidate parent paths when only file content has changed (#13566)
-
Fix caching of binary lookups and avoid re-running
pytest
setup for environment changes (#13559) -
Fix slow performance from recursive
__repr__
and__hash__
for Go (#13492) -
Go: improve performance of first-party package analysis (#13476)
Documentation
- Fix
tailor
confusion with macros vs. targets (#13574)
2.9.0.dev0 (Nov 03, 2021)
New Features
-
Add overrides to python_requirements and poetry_requirements (#13458)
-
Add
--tailor-check
(#13432) -
An option to not clean up the binary chroot for the run goal. (#13427)
-
Add
[tailor].ignore_paths
and[tailor].ignore_adding_targets
(#13422) -
Validate that
[tailor].build_file_name
is compatible with[GLOBAL].build_patterns
(#13420)
User API Changes
-
Remove deprecated
pex_binary
fields. (#13479) -
Remove deprecated --pants-supportdir. (#13473)
-
Remove setup_py_commands from python_distribution. (#13450)
-
Remove deprecated
InferredDependencies.sibling_dependencies_inferrable
kwarg (#13440) -
CheckResults
no longer accepts deprecatedtypechecker_name
kwarg (#13434) -
Remove deprecated
[pytest].junit_xml_dir
option. (#13444) -
Remove deprecated
--list-provides
option (#13441) -
Remove deprecated
module_mapping
andtype_stubs_module_mapping
fields (#13442) -
Remove
entry_point=<none>
forpex_binary
in favor of leaving off the field (#13443) -
Remove deprecated
Sources
type in favor ofSourcesField
(#13439) -
Remove deprecated
requirements_relpath
frompython_requirements
macro (#13437) -
Remove deprecated
protobuf_library
,python_library
,shell_library
, andpython_requirement_library
target aliases (#13429) -
Remove deprecated
--peek-output
(#13433) -
Remove dependencies goal deprecated --type option. (#13431)
-
Remove dependees
--output-format
option. (#13430) -
Validate
python_test
andpython_tests
targets not used forconftest.py
andtest_foo.pyi
(#13436) -
Move
[python] interpreter_search_paths
to[python-bootstrap] search_path
, and add support for sandboxed Python scripts in@rule
s (#13340)
Plugin API Changes
-
Fix
fmt
,lint
,test
, andcheck
plugins having to usesources
FieldSet
value (#13456) -
Add support for extracting
.gz
files. (#13335)
Bug fixes
-
[bugfix] Do not cache Docker invocations between pants runs. Fixes #13461. (#13464)
-
Fix Python bootstrap interpreter search. (#13278)
-
Upgrade to Pex 2.1.54. (#13426)
-
Upgrade to Pex 2.1.53. (#13423)
-
Consume the
go
directive when compiling (#13387) -
Don't error for invalid Go third-party packages unless building them (#13405)
-
assume version 1 for older lockfiles without
version
key (#13399) -
Removes leading whitespace when
tailor
ing BUILD files without header text (#13375) -
Go: don't error for unsupported third-party sources with project introspection (#13377)
-
Fix missing field for
tffmt
inlint
. (#13355) -
Use strict resolves by default for the JVM (#13353)
-
Parse SSH git requirements in poetry config. (#13344)
Performance
-
Check for
@rule
graph cycles asynchronously (#13370) -
Use
--layout=packed
for all monolithic resolves. (#13400)
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
Built Distribution
Hashes for pantsbuild.pants.testutil-2.9.0.dev1-py37.py38.py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75143f4bb6a59885904452d3da4b328bdcb0876e9c70c68d47e7506e4948799a |
|
MD5 | a2cf47b354bf4a78516c8203b492d439 |
|
BLAKE2b-256 | 9ebb328478de4ab712550baa62f22f5183f9b3721725fab1c186d42a53176be2 |