Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.22.0 release blog post #260

Merged
merged 4 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions blog/2024-09-10-pants-2-22/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
authors: [benjy]
tags: [announcement]
# The release happened on this date, despite what the file name implies (which is when this post was authored)
date: 2024-10-07
---

# Pants 2.22.0 is released!

<CaptionedImg src={require("./splash.jpeg").default}>
Photo by{" "}
<a href="https://unsplash.com/@florianxrebmann?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">
Florian Rebmann
</a>{" "}
on{" "}
<a href="https://unsplash.com/photos/a-building-with-a-flag-on-top-cWAsvnD9A98?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">
Unsplash
</a>
</CaptionedImg>

{/* truncate */}

We are pleased to announce Pants [2.22.0](<(https://github.com/pantsbuild/pants/tree/2.22.x/src/python/pants/notes/2.22.x.md)>), the latest release of [Pantsbuild, the scalable and ergonomic build system](https://www.pantsbuild.org/). To update, set `pants_version = "2.22.0"` in your `pants.toml`. If you're not using Pants yet, [get started now](https://www.pantsbuild.org/2.22/docs/getting-started).

_Highlights in [2.22](<(https://github.com/pantsbuild/pants/tree/2.22.x/src/python/pants/notes/2.22.x.md)>) include_:

- 🎛️A major re-implementation of the Pants [options system](https://www.pantsbuild.org/2.22/docs/using-pants/key-concepts/options). See below for more!
- 🏠Support for executing local processes within the repository itself (rather than in a sandbox) via the new [workspace environment](https://www.pantsbuild.org/stable/docs/using-pants/environments#in-workspace-execution-experimental_workspace_environment) feature.
- 🐍Initial support for Python 3.13.
- 🛫Ability to export Python tools [from their default bundled lockfiles](https://www.pantsbuild.org/2.22/docs/using-pants/setting-up-an-ide#tool-virtualenvs).
- ☁️Improvements in FaaS support, such as the ability to create cloud functions as directories, instead of .zip files.
- 🏷️[`vcs_version`](https://www.pantsbuild.org/stable/reference/targets/vcs_version) always executes locally, so that it has the local git context, even when otherwise using docker environments.
- 📊A new experimental SQL backend, with [SQLFluff](https://sqlfluff.com/) linter support.
- 🗃️A new experimental [Makeself](https://makeself.io/) backend for creating self-extractable archives.
- 🫙A [`deploy_jar_exclude_files`](https://www.pantsbuild.org/2.22/reference/subsystems/jvm#deploy_jar_exclude_files) option, to allow excluding irrelevant signature files from JAR files.
- 🗺️Better understanding of self-type annotations in Scala dependency inference.
- 🎒the ability to bundle `openapi_document` and its `openapi_source` dependencies into a single file, for consumption by other targets.
- 📈 And lots of smaller features, update, bugfixes, and general improvements

Check out the [full release notes](https://github.com/pantsbuild/pants/tree/2.22.x/src/python/pants/notes/2.22.x.md). Pants is an open-source project, and the changes are all contributed by our community. If you want to see something more in the next changelog, join us on [GitHub](https://github.com/pantsbuild/pants) and become a contributor.

In particular, please note the transition to the new options system. In 2.22.x we run both the new and the legacy systems concurrently and compare the results, issuing warnings if there are any discrepancies. If you do encounter discrepancies that you can't resolve on your own, please [reach out to us!](https://www.pantsbuild.org/community/getting-help).

We also offer [formal sponsorship tiers for companies](https://www.pantsbuild.org/sponsorship), as well as individual sponsorships via [GitHub](https://github.com/sponsors/pantsbuild). These help pay for the ongoing development and hosting costs, and are managed by the Pants Build non-profit organization.

To see Pants in action, explore our example repositories:

- [example-python](https://github.com/pantsbuild/example-python)
- [example-adhoc](https://github.com/pantsbuild/example-adhoc/)
- [example-codegen](https://github.com/pantsbuild/example-codegen)
- [example-docker](https://github.com/pantsbuild/example-docker)
- [example-golang](https://github.com/pantsbuild/example-golang)
- [example-javascript](https://github.com/pantsbuild/example-javascript)
- [example-jvm](https://github.com/pantsbuild/example-jvm)
- [example-kotlin](https://github.com/pantsbuild/example-kotlin)
- [example-visibility](https://github.com/pantsbuild/example-visibility)

And let us know what you think in [Slack!](https://www.pantsbuild.org/community/getting-help)

Pants 2.22.0 took longer than usual to stabilize, but we hope to get 2.23.0 out quite soon!

Pants wouldn't be possible without everyone who contributed to 2.22.0, including everyone who shared feedback on changes and who tested release candidates! Thank you very much!
Binary file added blog/2024-09-10-pants-2-22/splash.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading