Skip to main content

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.9.x Release Series

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 name on python_requirements macro (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 --debug with 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 --venv copies. (Cherry pick of #13979) (#13980)

Bug fixes

  • Fix .pyi type stubs to show up in python_distribution (cherrypick of #14033) (#14035)

  • Restore the pants namespace package. (Cherry picked from #13972) (#13977)

  • Fix deprecated [python-setup].interpreter_search_paths and [pex].bootstrap_interpreter_names not 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 Coursier report coordinates when packaging is 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].resolves and [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 tailor not setting the name field (Cherry-pick of #13913) (#13924)

  • Fix --log-levels-by-target not working for logs from Python code (Cherry-pick of #13939) (#13940)

  • Revert "Turn off validation for unset SourcesField if required=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-args option to support docker run [args] <image>. (#13818)

  • An include_requirements field on pex_binary. (#13894)

  • Add new secrets field to docker_image. (#13830)

  • [jvm] Add support for Scalatest (#13872)

Bug fixes

  • [jvm] Apply the resolve for deploy_jar and restore validation of resolve compatibility (#13911)

  • Fix java_junit_test and scala_junit_test targets to use resolve instead of compatible_resolves (#13870)

  • [jvm] Fix tailor for the addition of Scalatest. (#13887)

  • Fix setup_py resource 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 Java and Scala backends 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 scalafmt support for fmt and lint goals (#13814)

  • scala: add protobuf codegen support via scalapb (#13853)

  • Add support for global scalac plugins. (#13827)

  • JVM: Adds jar field to jvm_artifact (#13834)

User API Changes

  • relocate_files no longer used with export-codegen goal (#13829)

  • Include shell_source(s) in docker_image build context. (#13761)

Plugin API Changes

  • Codegen plugins can turn off export-codegen integration. (#13828)

  • Deprecate testutil.RuleRunner.create_files() .create_file() and .add_to_build_file() (#13817)

Bug fixes

  • Fix .pyi files not automatically depending on __init__.py (#13844)

Performance

  • [jvm] Use immutable_inputs to 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 file targets (e.g. testdata folder) (#13781)

  • An option to test/run/repl against the entire lockfile. (#13732)

  • Add test_timeout fields to go_package (#13707)

  • Added the paths goal to render all paths between two targets (#13778)

  • Add support for inferring relative imports from Scala (#13775)

  • go: add go vet linter (#13438)

  • Support interpolating Docker build args into the repository field of docker_image targets. (#13721)

  • Expose Pex --resolve-local-platforms option. (#13715)

  • Expose Pex --layout option for pex_binary. (#13714)

  • Add skip_tests field to go_package and shunit2_test (#13708)

  • JVM: Support strong first-party declarations of provided types (#13698)

  • scala: add repl support (#13576)

  • Capture pylint reports. (#13689)

User API Changes

  • Rename pypi_repositories field to repositories (#13794)

  • Add --local-cache and --process-cleanup to replace --process-execution-local-cache and --process-execution-local-cleanup (#13769)

  • Add pants_requirements target generator and deprecate pants_requirement macro (#13512)

  • Stop generating go_package targets from go_mod (#13702)

  • Rename go_first_party_package target to go_package (#13681)

  • Upgrade default version of Black from 21.9b0 to 21.12b0 (#13816)

  • Upgrade to Pex 2.1.56. (#13713)

Plugin API Changes

  • IntField and FloatField can ban negative numbers and zero (#13705)

Bug fixes

  • Support materializing files through file symlinks. (#13789)

  • Fix duplicate error message for publish with no matching targets (#13776)

  • Fix bug when docker pushing multiple tags. (#13764)

  • Fix Java / Scala cycle artifact filename collision. (#13759)

  • Fix run goal for pex_binary with a script entry point from a 3rdparty dependency. (#13748)

  • Fix hadolint SIGSEGV. (#13736)

  • Fix --resolve-local-platforms help. (#13722)

  • Avoid calling disabled stream handlers. (#13680)

  • Fix Go compilation failures causing test goal 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_image targets 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_path option. (#13593)

  • Bump twine to 3.6.0 and add tool lockfile (#13594)

  • Ban * globs and ! ignores in source: str field (#13629)

Bug fixes

  • Pass Docker env vars to docker publish. (#13669)

  • Fix download URL for grpc_python_plugin on macos. (#13656)

  • Fix Python dependency inference breaking with python_source targets (#13627)

  • Fix swallowing of git stderr. (#13626)

  • Register skip fields for python linters and mypy also on the python_test_utils target. (#13616)

2.9.0.dev1 (Nov 13, 2021)

New Features

  • Add instructions field to docker_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 to SourcesField. (#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 deprecated typechecker_name kwarg (#13434)

  • Remove deprecated [pytest].junit_xml_dir option. (#13444)

  • Remove deprecated --list-provides option (#13441)

  • Remove deprecated module_mapping and type_stubs_module_mapping fields (#13442)

  • Remove entry_point=<none> for pex_binary in favor of leaving off the field (#13443)

  • Remove deprecated Sources type in favor of SourcesField (#13439)

  • Remove deprecated requirements_relpath from python_requirements macro (#13437)

  • Remove deprecated protobuf_library, python_library, shell_library, and python_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 and python_tests targets not used for conftest.py and test_foo.pyi (#13436)

  • Move [python] interpreter_search_paths to [python-bootstrap] search_path, and add support for sandboxed Python scripts in @rules (#13340)

Plugin API Changes

  • Fix fmt, lint, test, and check plugins having to use sources 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 tailoring BUILD files without header text (#13375)

  • Go: don't error for unsupported third-party sources with project introspection (#13377)

  • Fix missing field for tffmt in lint. (#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

  • Improve dynamic UI for Go (#13412)

  • Make check output more useful for Go and Java (#13379)

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 Distributions

pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_11_0_arm64.whl (7.6 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_10_15_x86_64.whl (7.9 MB view details)

Uploaded CPython 3.9 macOS 10.15+ x86-64

pantsbuild.pants-2.9.0rc6-cp38-cp38-macosx_10_15_x86_64.whl (7.9 MB view details)

Uploaded CPython 3.8 macOS 10.15+ x86-64

pantsbuild.pants-2.9.0rc6-cp37-cp37m-macosx_10_15_x86_64.whl (7.9 MB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9e8c86f24641428bb735ea868a1d07b3b66a2d282900d0f29cc0e9dfa6f39893
MD5 39bbcb1f8c0ddfe42bef80030c9c614f
BLAKE2b-256 21981c2c7e2b66d7a4f898570724f128438a233eae2a336f22671b58318f8a3b

See more details on using hashes here.

Provenance

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 7.6 MB
  • Tags: CPython 3.9, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f63ac0d9e7627e478dd65487e06e3d45c88f6ffe23f04aed0821bca08f20b432
MD5 793a8935244f72ccc4a502a2e6a51d69
BLAKE2b-256 a592706e0f924a1bce5d64ed48b500b88403043d64e1dd0aed2dc4209cc27322

See more details on using hashes here.

Provenance

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.9 MB
  • Tags: CPython 3.9, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 028ae96983f36b5affaa5c82a4c6af96a8ce2cc251d7957194f4e5531d8b8d03
MD5 62bcf1258f8c8076b2614185a66950d4
BLAKE2b-256 a34a490664b37277ed699ff5daf72f4289a43d2cbdb9f214122c2df73d1964ab

See more details on using hashes here.

Provenance

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b81ac32cabcaa03e57ed2c4ccfbf6b287cf2eb8a101254911d9fb6a41bc51b5
MD5 0a5998c32b9402622674fae6721ca365
BLAKE2b-256 64088be63457fd1465be1f6ce01766245956c38de96935971745c7f855ebed88

See more details on using hashes here.

Provenance

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: pantsbuild.pants-2.9.0rc6-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.9 MB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 1d906324d54ae8a62ccebbf01735996d2bc20f16812ce6153d16452671a70efa
MD5 d7360909be5462012bd01ddc3a757972
BLAKE2b-256 9da7885e623aac8be59c1830e5fc125d6f58d614c2675414d12c603b7e0d352f

See more details on using hashes here.

Provenance

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08b5b5041ac14697afc03fb2f9e500a3010fa351ad86c2988f10d1f62a6db24a
MD5 8c53d06e988bdf9058ae965727b7e502
BLAKE2b-256 8da89b664d4c7bdbfca6e24c7ab3235faf67b6fce4f18b30be2e106970aa1011

See more details on using hashes here.

Provenance

File details

Details for the file pantsbuild.pants-2.9.0rc6-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: pantsbuild.pants-2.9.0rc6-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 7.9 MB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7

File hashes

Hashes for pantsbuild.pants-2.9.0rc6-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a830d0259b1a231867c5a0af6263c2da6d7d812f739d49d9d30593b0db0567b2
MD5 ab2a91c1455f100b8f1bfc64ebbf7fd4
BLAKE2b-256 e2e0015f4c12b46220cd0c4196eb66b77fb68e7dce0df16a998ac814d9f99559

See more details on using hashes here.

Provenance

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