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.1 (Mar 25, 2022)
The second stable release of the 2.9.x series, with no changes since the previous rc.
2.9.1rc2 (Mar 14, 2022)
Bug fixes
- Upgrade Pex to 2.1.71, which fixes issues installing some PEXes. (Cherry-pick of #14768) (#14770)
2.9.1rc1 (Mar 04, 2022)
User API Changes
- Upgrade Pex to 2.1.70. (#14700) (#14704)
Bug fixes
- Fix dropped output race during UI teardown (cherrypick of #14093) (#14690)
2.9.1rc0 (Feb 26, 2022)
User API Changes
- Upgrade Pex to 2.1.65. (Cherry-pick of #14256) (#14617)
Bug fixes
-
Fix coverage base global report creation bug. (cherrypick of #14547) (#14550)
-
Fix executability of materialized files for non-owners. (cherrypick of #14298) (#14308)
-
Fix bad default module mapping for PyMongo (Cherry-pick of #14284) (#14285)
-
Fix complex
__import__statements failing to parse with Python 2.7 - 3.7 (Cherry-pick of #14232) (#14233)
Performance
- add timeout for remote cache lookups (cherry-pick of #14224) (#14226)
Documentation
-
Rewrite
helpfordependenciesfield to mention generated targets (Cherry-pick of #14621) (#14628) -
Don't leak local paths into generated docs. (cherrypick #14591) (#14593)
-
Add some missing backends to generated docs (Cherry-pick of #14290) (#14292)
2.9.0 (Jan 12, 2022)
The first stable release of the 2.9.x series, with no changes since the previous rc!
2.9.0rc6 (Jan 10, 2022)
Bug fixes
- [Docker] Fix bug when a putative target address did not exist. (#14125) (#14131)
2.9.0rc5 (Jan 07, 2022)
Bug fixes
-
Hook up Scalafmt and Google Java Format to
./pants lint(cherrypick of #14108) (#14117) -
Reduce output from
scalafmt, and lower reflective access option threshold for Google Java Format. (cherrypick of #14109) (#14118)
2.9.0rc4 (Jan 06, 2022)
New Features
- JVM Resources support (cherrypick of #13908) (#14088)
2.9.0rc3 (Jan 05, 2022)
Bug fixes
-
Fix incorrectly setting
nameonpython_requirementsmacro (Cherry-pick of #14065) (#14067) -
Fix help strings which were accidentally tuples, and add a validation. (cherrypick of #14057) (#14068)
2.9.0rc2 (Jan 03, 2022)
New Features
-
Add duration and cache source to test output. (cherrypick of #13889) (#14002)
-
Support Docker build target stage (Cherry pick of #13956) (#13997)
-
Support
test --debugwith scalatest and junit. (cherrypick of #13958 and #13966) (#14000) -
Docker context troubleshooter (Cherry pick of #13896) (#13953)
User API Changes
- Upgrade to Pex 2.1.61 and use
--venvcopies. (Cherry pick of #13979) (#13980)
Bug fixes
-
Fix
.pyitype stubs to show up inpython_distribution(cherrypick of #14033) (#14035) -
Restore the
pantsnamespace package. (Cherry picked from #13972) (#13977) -
Fix deprecated
[python-setup].interpreter_search_pathsand[pex].bootstrap_interpreter_namesnot working (#14009) -
Fix file sources codegen for the Docker build context. (Cherry pick of #14024) (#14025)
-
[jvm] Use appropriate coordinate serialization for Coursier CLI inputs. (cherrypick of #14038) (#14046)
-
[jvm] Parse maven coordinates using regular expression (cherrypick of #14010) (#14015)
-
[jvm] Fix parsing of
Coursierreport coordinates whenpackagingis reported. (cherrypick of #13996) (#13998) -
[jvm] Fix use of multiple scalac plugins when one plugin has multiple classpath entries (cherrypick of #14012) (#14014)
2.9.0rc1 (Dec 21, 2021)
User API Changes
-
Set a default for
[jvm].resolvesand[jvm].default_resolve(cherrypick of #13925) (#13930) -
[jvm] Normalize the layout of JVM subsystems and add support for compiler options (cherrypick of #13926) (#13931)
-
Upgrade Pex to 2.1.59. (#13932) (#13933)
Bug fixes
-
Fix
tailornot setting thenamefield (Cherry-pick of #13913) (#13924) -
Fix
--log-levels-by-targetnot working for logs from Python code (Cherry-pick of #13939) (#13940) -
Revert "Turn off validation for unset
SourcesFieldifrequired=False" (#13856) (cherrypick of #13944) (#13946) -
[jvm] Expose additional JVM backends and symbols (cherrypick of #13943) (#13947)
2.9.0rc0 (Dec 17, 2021)
New Features
-
Add
--docker-run-argsoption to supportdocker run [args] <image>. (#13818) -
An include_requirements field on pex_binary. (#13894)
-
Add new
secretsfield todocker_image. (#13830) -
[jvm] Add support for Scalatest (#13872)
Bug fixes
-
[jvm] Apply the resolve for
deploy_jarand restore validation of resolve compatibility (#13911) -
Fix
java_junit_testandscala_junit_testtargets to useresolveinstead ofcompatible_resolves(#13870) -
[jvm] Fix
tailorfor the addition ofScalatest. (#13887) -
Fix
setup_pyresource packaging. (#13878)
Documentation
-
Fix rendering of default field values in reference docs. (#13891)
-
Provide helpful error message in case of undefined Docker build arg. (#13880)
-
[docs] Enable
JavaandScalabackends on the docsite. (#13909) -
Update the project description. (#13906)
-
Add warning when building AWS Lambdas and Google Cloud Functions on macOS. (#13790)
2.9.0.dev4 (Dec 13, 2021)
New Features
-
[jvm] Hook up the ability to run JUnit tests written in Scala (#13868)
-
scala: add
scalafmtsupport forfmtandlintgoals (#13814) -
scala: add protobuf codegen support via
scalapb(#13853) -
Add support for global
scalacplugins. (#13827) -
JVM: Adds
jarfield tojvm_artifact(#13834)
User API Changes
-
relocate_filesno longer used withexport-codegengoal (#13829) -
Include
shell_source(s)indocker_imagebuild context. (#13761)
Plugin API Changes
-
Codegen plugins can turn off
export-codegenintegration. (#13828) -
Deprecate
testutil.RuleRunner.create_files().create_file()and.add_to_build_file()(#13817)
Bug fixes
- Fix
.pyifiles not automatically depending on__init__.py(#13844)
Performance
- [jvm] Use
immutable_inputsto provide the compiletime classpath (#13862)
Documentation
-
Improve Docker undefined build arg behavior (#13723)
-
Add missing backtick (#13861)
-
Do not log extra deprecation info when there are no changes for
update-build-files --check. (#13855)
2.9.0.dev3 (Dec 06, 2021)
New Features
-
java: add support for Google Java Format (#13811)
-
Adds support for remote jvm artifact urls (#13793)
-
Go tests can depend on
filetargets (e.g.testdatafolder) (#13781) -
An option to test/run/repl against the entire lockfile. (#13732)
-
Add
test_timeoutfields togo_package(#13707) -
Added the
pathsgoal to render all paths between two targets (#13778) -
Add support for inferring relative imports from Scala (#13775)
-
go: add
go vetlinter (#13438) -
Support interpolating Docker build args into the
repositoryfield ofdocker_imagetargets. (#13721) -
Expose Pex
--resolve-local-platformsoption. (#13715) -
Expose Pex
--layoutoption forpex_binary. (#13714) -
Add
skip_testsfield togo_packageandshunit2_test(#13708) -
JVM: Support strong first-party declarations of provided types (#13698)
-
scala: add
replsupport (#13576) -
Capture pylint reports. (#13689)
User API Changes
-
Rename
pypi_repositoriesfield torepositories(#13794) -
Add
--local-cacheand--process-cleanupto replace--process-execution-local-cacheand--process-execution-local-cleanup(#13769) -
Add
pants_requirementstarget generator and deprecatepants_requirementmacro (#13512) -
Stop generating
go_packagetargets fromgo_mod(#13702) -
Rename
go_first_party_packagetarget togo_package(#13681) -
Upgrade default version of Black from 21.9b0 to 21.12b0 (#13816)
-
Upgrade to Pex 2.1.56. (#13713)
Plugin API Changes
IntFieldandFloatFieldcan ban negative numbers and zero (#13705)
Bug fixes
-
Support materializing files through file symlinks. (#13789)
-
Fix duplicate error message for
publishwith no matching targets (#13776) -
Fix bug when
docker pushing multiple tags. (#13764) -
Fix Java / Scala cycle artifact filename collision. (#13759)
-
Fix
rungoal forpex_binarywith a script entry point from a 3rdparty dependency. (#13748) -
Fix hadolint SIGSEGV. (#13736)
-
Fix
--resolve-local-platformshelp. (#13722) -
Avoid calling disabled stream handlers. (#13680)
-
Fix Go compilation failures causing
testgoal to error (#13711) -
Fix UI rendering of Go packages with no tests (#13710)
-
Fix dup 3rdparty dists introduced by local dists. (#13690)
-
Make tailor generate correct fields for python_requirements. (#13687)
-
Interactive processes kill the process and its children on Ctrl+C. (#13678)
2.9.0.dev2 (Nov 18, 2021)
New Features
-
[jvm] Add support for compiling cycles between Java and Scala (#13653)
-
[jvm]: Add Export types to dependency inference code and include exports in compile results for Java sources (#13603)
-
Allow tailor to pick up
docker_imagetargets for any file with "Dockerfile" in it (#13601) -
[jvm] Add Scala consumed-symbols inference. (#13632)
-
[jvm] Add basic extraction of consumed symbols for Scala (#13628)
User API Changes
-
Report standard backends in anonymous telemetry (#13670)
-
Add
[twine].ca_certs_pathoption. (#13593) -
Bump twine to 3.6.0 and add tool lockfile (#13594)
-
Ban
*globs and!ignores insource: strfield (#13629)
Bug fixes
-
Pass Docker env vars to
docker publish. (#13669) -
Fix download URL for
grpc_python_pluginon macos. (#13656) -
Fix Python dependency inference breaking with
python_sourcetargets (#13627) -
Fix swallowing of git stderr. (#13626)
-
Register skip fields for python linters and mypy also on the
python_test_utilstarget. (#13616)
2.9.0.dev1 (Nov 13, 2021)
New Features
-
Add
instructionsfield todocker_imageto support generating the Dockerfile (#13386) -
Add
--unowned-dependency-behavioroption for Python (#13491)
User API Changes
- Upgrade default pylint to v2.11.1 (#13585)
Plugin API Changes
- [plugin-api] Add
default_glob_match_error_behaviortoSourcesField. (#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
pytestsetup 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
tailorconfusion 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_pathsand[tailor].ignore_adding_targets(#13422) -
Validate that
[tailor].build_file_nameis compatible with[GLOBAL].build_patterns(#13420)
User API Changes
-
Remove deprecated
pex_binaryfields. (#13479) -
Remove deprecated --pants-supportdir. (#13473)
-
Remove setup_py_commands from python_distribution. (#13450)
-
Remove deprecated
InferredDependencies.sibling_dependencies_inferrablekwarg (#13440) -
CheckResultsno longer accepts deprecatedtypechecker_namekwarg (#13434) -
Remove deprecated
[pytest].junit_xml_diroption. (#13444) -
Remove deprecated
--list-providesoption (#13441) -
Remove deprecated
module_mappingandtype_stubs_module_mappingfields (#13442) -
Remove
entry_point=<none>forpex_binaryin favor of leaving off the field (#13443) -
Remove deprecated
Sourcestype in favor ofSourcesField(#13439) -
Remove deprecated
requirements_relpathfrompython_requirementsmacro (#13437) -
Remove deprecated
protobuf_library,python_library,shell_library, andpython_requirement_librarytarget aliases (#13429) -
Remove deprecated
--peek-output(#13433) -
Remove dependencies goal deprecated --type option. (#13431)
-
Remove dependees
--output-formatoption. (#13430) -
Validate
python_testandpython_teststargets not used forconftest.pyandtest_foo.pyi(#13436) -
Move
[python] interpreter_search_pathsto[python-bootstrap] search_path, and add support for sandboxed Python scripts in@rules (#13340)
Plugin API Changes
-
Fix
fmt,lint,test, andcheckplugins having to usesourcesFieldSetvalue (#13456) -
Add support for extracting
.gzfiles. (#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
godirective when compiling (#13387) -
Don't error for invalid Go third-party packages unless building them (#13405)
-
assume version 1 for older lockfiles without
versionkey (#13399) -
Removes leading whitespace when
tailoring BUILD files without header text (#13375) -
Go: don't error for unsupported third-party sources with project introspection (#13377)
-
Fix missing field for
tffmtinlint. (#13355) -
Use strict resolves by default for the JVM (#13353)
-
Parse SSH git requirements in poetry config. (#13344)
Performance
-
Check for
@rulegraph cycles asynchronously (#13370) -
Use
--layout=packedfor 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pantsbuild.pants.testutil-2.9.1-py37.py38.py39-none-any.whl.
File metadata
- Download URL: pantsbuild.pants.testutil-2.9.1-py37.py38.py39-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3.7, Python 3.8, Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d364b8ccb25ab8d7f986badde7dddc4eae9457f51565b82578b1437e9aee6adb
|
|
| MD5 |
a6a0276e83c362401472f360debe849a
|
|
| BLAKE2b-256 |
490e02d7d27d30437cad71c672e5969b41af73d691beda88a995a686d3592bd5
|