The ergonomic and hermetic software build system for Python, Java, Scala, Go, and Shell. Pants lets you fearlessly scale up your codebase.
Project description
Pants is an Apache2 licensed build tool written in Python and Rust.
The latest documentation can be found at pantsbuild.org.
2.14.x Release Series
2.14.0a0 (Aug 23, 2022)
New Features
-
Add Plugin hook for adding custom additional Docker image tags. (#16077)
-
Add new fmt plugins for build file formatting (#16560)
-
Add buildifier as a BUILD file formatter (#16573)
-
go: add support for test coverage (#16550)
-
Disable 80 col hard wrapping in mypy output (#16488)
-
Allow for automatic use of
pytest-xdist
(#16499) -
Add
[pyoxidizer].lockfile
(#16537) -
Add
[flake8].extra_files
to allow configuring plugins like Bandit (#16470) -
Support 3rd party Helm artifacts in Helm deployments (#16478)
User API Changes
-
Mark
[python].requirement_constraints
as deprecated (but not planned for removal) (#16606) -
Add
[python-repos].find_links
as preferred alias for[python-repos].repos
(#16582) -
Fix that running on a BUILD file expands to all of its targets (#16546)
-
Deprecate
[python].only_binary
and[python].no_binary
in favor of more powerful[python].resolves_to_only_binary
and[python].resolves_to_no_binary
(#16513)
Plugin API Changes
- Rename
FmtRequest
toFmtTargetsRequest
(plus somefix
refactoring) (#16535)
Bug fixes
-
Auto-detect Helm chart source roots (#16531)
-
Have
run
run__main__.py
for non-zipapp PEXs (#16568) -
Record
RemoteStoreBlobBytesUploaded
for all upload strategies, rather than only for large blobs. (#16545) -
Prevent running N^2 publish processes during deploy goal (#16516)
-
Track Python indexes, find-links, and manylinux in lockfile headers (#16525)
Performance
-
Fix performance for generating lockfiles for
pytest
andsetuptools
(#16591) -
Improve performance of
Owners
rule (#16563)
Documentation
-
More succint phrasing and better formatting for cli help. (#16549)
-
Document
[python].resolves_to_constraints_file
and[python].resolves_to_no_binary
(#16548) -
Fix broken link to community page (#16468)
2.14.0.dev6 (Aug 13, 2022)
New Features
-
Support adding to dict-valued options in config files. (#16481)
-
Add
[mypy].extra_type_stubs_lockfile
(#16461) -
Proposal for a Helm Deployment goal implementation (#15882)
-
Add support for using environment variables in JVM tests (#16455)
-
Add
[python].resolves_to_constraints_file
(#16420)
Plugin API Changes
-
GenerateToolLockfileSentinel
encouraged to use language-specific subclasses (#16449) -
Allow backend packages to also register remote auth plugins (#16444)
Bug fixes
-
Fix
--process-cleanup
deprecation. (#16447) -
Fix
CacheContentBehavior::Defer
with a remote cache (#16439)
Documentation
-
Update docs on how to run Pants in CI. (#16503)
-
Fix partition description for MyPy when multiple resolves (#16486)
-
Add IBM to user list. (#16457)
2.14.0.dev5 (Aug 07, 2022)
New Features
-
Add
[pytest].config
to set custom config file paths (#16423) -
java/protobuf: add support for grpc-java codegen (#16350)
User API Changes
-
Upgrade Pex to 2.1.103. (#16313)
-
Deprecate
[python].lockfile_generator
(#16418) -
Replace
--[no-]process-cleanup
with--keep-sandboxes={always,never,on_failure}
(#16415) -
Add a few popular python packages to default modules mapping (#16330)
-
Deprecate
[python].tailor_ignore_solitary_init_files
in favor of more useful[python].tailor_ignore_empty_init_files
(#16305) -
Upgrade Pex to 2.1.102. (#16313)
-
Enable
[python-infer].unowned_dependency_behavior="warning"
by default. (#16281) -
Upgrade Pex to 2.1.101. (#16297)
Plugin API Changes
-
Add entry point support for remote auth plugin (#16212)
-
Provide foundations for a deploy goal (#16335)
Bug fixes
-
Fix docker invalidation bug. (#16419)
-
Add missing
help
message to experimental backends (#16403) -
Set immutable_input_digests on a docker RunRequest. (#16385)
-
go: pass -p option to
go tool asm
on Go v1.19+ (#16381) -
jvm: fix fetching artifacts with non-jar packaging (#16358)
-
[internal] Add missing timeout field to target generators (#16314)
-
Include Helm chart dependency inference rules (#16368)
-
[internal] Use
f_globals
instead ofinspect.getmodule
incollect_rules
(#16357) -
Silence mkdir, cp, and mv commands with MyPy caching (#16340)
-
fix kotlin tailor for junit tests (#16333)
-
Leverage a multiprocess-safe strategy for MyPy's cache (#16290)
-
Eagerly error for symlink loops (#16319)
-
Add a newline at the end of
paths
output (#16302) -
Consume inits part of package object within the inner scope (#16282)
-
Explicitly add directory entries to resources JARs (#16264)
Performance
- Implement a
validate
mode to reduce network usage for remote caches (#16398)
Documentation
-
Document how to use Pylint reports (#16399)
-
Fix source roots docs. (#16363)
-
Show advanced options with
help
if there are no basic options (#16352) -
Improve a docker backend warning. (#16355)
-
Link to dev.to post on resource hub. (#16331)
-
Only show the deprecated option section with
help
if there are deprecated options (#16339) -
add tailor docs for kotlin backend (#16332)
-
Fix the experimental_run_shell_command example. (#16286)
-
Fix typo in backend name (#16312)
-
docs: add initial Kotlin docs (#16304)
-
Document test sharding and update plugin docs with 2.13 changes (#16293)
2.14.0.dev4 (Aug 05, 2022)
There was no 2.14.0.dev4 because of technical issues.
2.14.0.dev3 (Jul 22, 2022)
New Features
-
add Go ASDF support (#16246)
-
Add
[python].default_run_goal_use_sandbox
(#16239) -
Add
include_sources
topex_binary
target (#16215) -
allow JVM sources to have files dependencies (#16203)
-
Optionally strip metadata and timestamps from JVM jars (#16134)
-
Support timeouts in Helm unittest targets (#16181)
-
Allow for dependency inference plugins to provide excludes (#16155)
-
Add support for strict and color flags in Helm unittest (#15947)
User API Changes
-
Ban
../
insource
andsources
fields (#16227) -
Warn users if they set remote cache and or/execution via config while the values are provided by the auth plugin. (#16165)
-
Upgrade Pex to 2.1.99. (#16184)
-
Upgrade python reqs, upgrade default setuptools to 63.1.0 (#16168)
-
Add test timeouts to JUnit and Scalatest targets. (#16126)
Plugin API Changes
-
Generically compute dynamic defaults for
Field
s (#16206) -
Add support for auth plugin setting its name (#16171)
-
Fold dep injection into inference, and use FieldSet (#16107)
Bug fixes
-
Allow using
--import
option with Autoflake (#16192) -
Dont use PEX as an API to fix
ModuleNotFoundError
for--debug-adapter
(#16263) -
Apply parameter filling for
parametrize
d dependencies to excludes, and fix accommodation for file-addressed atom targets (#16249) -
[internal] Refactors
output_field
to default to something that disambiguates on parametrized fields (#16232) -
fix scala plugins args order causing cache issues (#16228)
-
Fix explicit dependencies of
parametrize
d targets not working for some target types (#16197) -
Add
overrides
field to Scala targets (#16204) -
Fill address parameters in all cases, rather than only when a consumer is
parametrize
d. (#16198) -
Use filelists to make archive creation tasks more reliable (#16183)
-
Allow macros to raise builtin Errors (#16174)
-
Fix defaulting of parameters in explicitly specified deps on
parametrize
d targets for AsyncFieldMixin (#16176) -
java: add proper inference of Scrooge Java Thrift dependencies (#16130)
-
Fix "dependency" pluralization (#16150)
-
Improve memoization of interpreter constraints, Python parsing, and request classes (#16141)
-
Add support for
InteractiveProcess
consuming inputs whilerun_in_workspace=True
(#16093) -
Optimize
get_expanded_specs
forStreamingWorkunit
plugins (#16106)
Performance
- Port
@rule
Get
s to rust (#16160)
Documentation
-
Add Vicara Solutions to the users page. (#16221)
-
Document the "fromfile" feature. (#16205)
-
Document
--filter
options working with any goal (#16090) -
Updates installation docs to refer to the 1-step setup script (#16149)
-
Add 2.12 changelog to docsite (#16136)
2.14.0.dev2 (Jul 11, 2022)
User API Changes
-
Revert "Upgrade Pex to 2.1.95. (#16110)" (#16125)
-
Add a lock for the Poetry tool. (#16117)
-
Upgrade Pex to 2.1.95. (#16110)
-
Fix poetry locks missing hashes. (#16112)
-
java/avro: inject runtime library dependency (#15904)
Bug fixes
-
Fix issue with
__defaults__
not propagating over gaps in the tree of BUILD files. (#16089) -
Write to caches during backtracking (#16078)
-
Record ongoing backtrack attempts (#16075)
Documentation
-
New doc explaining vcs_version. (#16092)
-
Fix typo in warning for
[python].resolve_all_constraints
(#16068)
2.14.0.dev1 (Jul 05, 2022)
New Features
-
Add support for extra env variables in go tests (#16013)
-
Add ability to
run
anyPythonSourceField
(#15849) -
Add
--debug-adapter
flag torun
(#15829)
User API Changes
-
Correct deprecation warning for addressing
pex_binary
targets by filename to 2.15 (#16056) -
Default
scala-infer
force_add_siblings_as_dependencies
to False. (#16031) -
Upgrade Pex to 2.1.94. (#16029)
-
Remove
python-infer
inits
option. (#16036) -
Remove
golang
expected_version
option. (#16033) -
Remove the
filter
goal. (#16032) -
Default
--use-deprecated-pex-binary-run-semantics
toFalse
. (#16034) -
Default
python
tailor_pex_binary_targets
toFalse
. (#16035) -
Deprecate not setting
tailor_pex_binary_targets
explictly (#15962) -
tailor
andupdate-build-files
require specifying CLI arguments (#15941) -
Upgrade default version of black to 22.6.0 (#15960)
-
Upgrade default version of pyupgrade to 2.34.0 (#15956)
Plugin API Changes
-
fmt
plugins can add new files (#15846) -
Pants internally uses dedicated Sources and Dependencies fields (#16037)
Bug fixes
-
Fix pantsd TTY handling. (#16038)
-
revert REAPI batch API PRs (#16016)
-
Backtrack through calls from
@rules
to synchronous engine methods (#15979)
Documentation
-
Fix CI provider table rendering. (#16051)
-
Update docs with 2.12 changes: default Pex lockfile generator,
pants.toml
env var interpolation, pip VCS requirements, and Python interpreter constraints (#16000) -
Fix alpha release email template typo. (#16027)
-
Document Docker registries configuration options for
skip_push
andextra_image_tags
. (#16015) -
Update Python documentation with 2.11 changes (#15857)
-
Update the docs for
fmt
and test report changes (#15968) -
Use Markdown h3 for ToC support (#15964)
-
Direct people to a quick form before they join Slack. (#15957)
2.14.0.dev0 (Jun 25, 2022)
New Features
-
Add repository config option to Docker registries. (#15884)
-
Add
__defaults__
BUILD file symbol (#15836)
User API Changes
-
Deprecate
--use-deprecated-directory-cli-args-semantics
and default to false (#15939) -
Remove deprecated
[golang].expected_version
in favor of[golang].minimum_expected_version
(#15942) -
Upgrade default iPython to 7.34, which drops Python 3.6 (#15934)
-
Remove deprecated
--excluded-target-regexp
,--files-not-found-behavior
, and--owners-not-found-behavior
global options (#15929) -
Deprecate implicit setting of
--remote-cache-{read,write,eager-fetch}
with--remote-execution
(#15900) -
Upgrade Pex to 2.1.100. (#16285)
Plugin API Changes
-
Plugin fields should propagate to subclassed target types. (#15876)
-
Introduce a plugin API to provide all thread local state, and deprecate stdio-specific methods (#15890)
Bug fixes
-
Assorted remote metrics fixes. (#15914)
-
Fix bad "" description in invalid addresses error messages (#15859)
-
Allow JVM memory controls to bound the process pool size to less than the process parallelism (#15903)
-
Upgrade to
nails
0.13.0
to pick up support forJDK >=13
. (#15899) -
Increment the missing-digest backtracking level once per attempt (#15889)
-
Scala: should visit ctor args of base type (#15880)
-
Scala: mark an object that extends another type as recursive (#15865)
-
Fix reporting of time spent downloading files (#15873)
Performance
-
Dedupe
load_bytes_with
calls to a remote Store (#15901) -
Improve mypy runs by adding the "incremental" mypy cache (#16276)
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 Distributions
Hashes for pantsbuild.pants-2.14.0a0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc8fae8cf604eb97feca2ecdd1f11e5cfeb7be2c0701c86d5bf4b55ae580ceb |
|
MD5 | 84593b9562c36a7daf07bf468989e4a9 |
|
BLAKE2b-256 | b8378a05089f0f1492365af37d8c6b603d77afecd028a483be29241d4920a825 |
Hashes for pantsbuild.pants-2.14.0a0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4e852e890c6f2a96f535ae17b2ab660e2ac3ec1f363e776437f6971cca95f9e |
|
MD5 | 375c00d94da9f51a5fceb4dadde07ee6 |
|
BLAKE2b-256 | b35e3f99ef916110b29bb794c8a79e094c054b3692b87aefd867ea747e359d9c |
Hashes for pantsbuild.pants-2.14.0a0-cp39-cp39-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c01b6ddca93807a2fb875d870762bc2ab8fd71e5b80cbf66b94d9a71c18079 |
|
MD5 | 581b320fb72e31d71d273272ab863dbd |
|
BLAKE2b-256 | 4d4da62ca712faf2e688b44d50e4dffd5b772244bd32c4393e071f15b34951dc |
Hashes for pantsbuild.pants-2.14.0a0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07bd27e3870acad531c2bef8038b792206bacc06076ee23455bab20377a8bde1 |
|
MD5 | 6f681422acdeec8fda59864708b54c54 |
|
BLAKE2b-256 | 2f07081a68b520746f68658e29d787946043bb7f0dcd1bc4c903b9d7433ebd8b |
Hashes for pantsbuild.pants-2.14.0a0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdf7b970737fae2612dee3a3d591fa37f0090b93b315812e4bbefbc84855f1b5 |
|
MD5 | a0b246d1fb0598097757cefbc71da4cb |
|
BLAKE2b-256 | fe948c1df353bb1779957b848c322772d1e35d50d729c1eb029e16c1de73c001 |
Hashes for pantsbuild.pants-2.14.0a0-cp38-cp38-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 838593a6c52a393974f6edc4d9066e4e3f6cb4a2ccaa3b2e240252b810ac8d1a |
|
MD5 | bedd16cf9ace860a97b9bed28224c6aa |
|
BLAKE2b-256 | 018df6f9466148b70b87d95b31c92140b235ca0949284846e08e821c48d4d0c0 |
Hashes for pantsbuild.pants-2.14.0a0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32bb3c50ae9d61cc8d7815f924c1d5e956776c5e6a9a60a3f49a0f87719bc231 |
|
MD5 | 5625a7b28892c22d78f7d3dff51f5338 |
|
BLAKE2b-256 | 2dc7c791879192df541fb779e83ccd6ac7db9cebd5427333868c74f10d509ddb |
Hashes for pantsbuild.pants-2.14.0a0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd29822f3c7d8ef101cf687dd4bee6afed808fb143fd1b15dabb8c428a50e75 |
|
MD5 | 4f29567288eab0013e9c2cf383d1413e |
|
BLAKE2b-256 | d7d37a8e56b16ed104d2d984c9a6abdfc02200e359d0aeb6c3f4e2bdc0a3df8d |
Hashes for pantsbuild.pants-2.14.0a0-cp37-cp37m-macosx_10_16_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25cb0909525ed17d0bbb26742381aad38267a6316b7b2168ef2b53378b19171 |
|
MD5 | 6ca7075f0fd2564ca636004dcb9ce422 |
|
BLAKE2b-256 | 9ee5d148b802cd1e4d2da5a67e572a83c37dc0f7ecb982d7ac879d27e1b53a24 |
Hashes for pantsbuild.pants-2.14.0a0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60c5719ae30b96b570d3ab25f1c94f4725ec6cb015ab03e1607ffc563944c9a1 |
|
MD5 | 6805dec3cd80699f93f6a3d2266e85f0 |
|
BLAKE2b-256 | aff5f1926fbd7c6c80d494169f048e18d03706a49403c6b93388d7cac6e9122c |