Skip to content

Hatch v1.16.0Hatch v1.16.0

Hatch v1.16.0 brings support for workspaces, dependency groups, and SBOMs.Hatch v1.16.0 は、ワークスペース、依存関係グループ、およびSBOMのサポートを提供します。

Workspacesワークスペース

Workspaces allow repositories with several related packages (e.g. monorepos) to be installed and tested in lockstep. Our design is inspired by Cargo workspaces.ワークスペースは、関連する複数のパッケージ(例:モノレポ)が同時にインストールおよびテストされることを可能にします。私たちのデザインは、Cargoワークスペースに触発されています。

Workspace members are defined by filters of relative or absolute paths, with support for glob patterns. Each member may also select which of their features to enable.ワークスペースのメンバーは、相対パスまたは絶対パスのフィルターによって定義され、グロブパターンをサポートしています。各メンバーは、自分の機能を有効にするかどうかを選択することもできます。

One design choice that users will find different from a tool like uv is that workspaces are configured per environment. Adhering to Hatch's environment-first philosophy allows full compatibility with the environment feature set, such as matrices of workspaces with different configuration.ユーザーがuvのようなツールとは異なると感じるデザインの選択肢の1つは、ワークスペースが環境ごとに構成されることです。Hatchの環境ファースト哲学に従うことで、異なる構成を持つワークスペースのマトリックスなど、環境機能セットとの完全な互換性が確保されます。

Example

[tool.hatch.envs.default]
workspace.members = [
  "packages/core",
  "packages/utils",
  "packages/cli"
]
[envs.default]
workspace.members = [
  "packages/core",
  "packages/utils",
  "packages/cli"
]

For more information on usage, see the workspace docs.使用に関する詳細は、ワークスペースのドキュメントを参照してください。

Dependency Groups依存関係グループ

Environments now support dependency groups as defined by PEP-735. You can think of them as features, but for non-runtime dependencies, never being included in user-facing package metadata.環境は現在、依存関係グループをサポートしています。これはPEP-735によって定義されています。これらは、ユーザー向けのパッケージメタデータには含まれない非ランタイム依存関係のための機能として考えることができます。

Software Bill of Materials (SBOM)ソフトウェア部品表 (SBOM)

Support for PEP-770 has been added. This enables adding sbom files to wheels with hatchling. This support does not add sbom generation, only the ability to have already created sbom files added to a wheel during wheel builds.PEP-770のサポートが追加されました。これにより、hatchlingを使用してホイールにsbomファイルを追加できるようになります。このサポートはsbom生成を追加するものではなく、ホイールビルド中に既に作成されたsbomファイルをホイールに追加する能力のみを提供します。

For more information on usage, see Wheel Options.使用に関する詳細は、ホイールオプションを参照してください。

Metaメタ

Changes with maintainershipメンテナンスに関する変更

Some may have noticed already during PR interactions, but I wanted to take some time to introduce myself as the new co-maintainer of hatch along with Ofek. I was browsing through the PyPA Discord, about to ask a question about workspace support for hatch, as I had created one version of it for the needs of my organization. That led to some discussions with Ofek and me taking on the contributions of finishing workspace support from where development had stopped. It made sense for me to join the efforts of maintainership with hatch and take some stress off of Ofek. I am excited to be here and to see what amazing things we can make hatch do in the future. PRのやり取りの中で既に気づいている方もいるかもしれませんが、Ofekと共にhatchの新しい共同メンテイナーとして自己紹介をする時間を取りたいと思います。私はPyPA Discordをブラウジングしていて、私の組織のニーズに合わせたhatchのワークスペースサポートについて質問しようとしていました。それがOfekとのいくつかの議論につながり、開発が停止していたところからワークスペースサポートの完成に貢献することになりました。私がhatchのメンテナンスの努力に参加し、Ofekの負担を軽減するのは理にかなっていました。ここにいることに興奮しており、将来hatchでどんな素晴らしいことができるかを見るのが楽しみです。

A little about me as a developer and person. I have been writing Python code for 12 years now, and work at AWS as a Python Ecologist. My role is to provide tools to builders to be able to be more productive. In the past, I have made contributions to Airflow and a Poetry plugin for proxy setups. In my spare time, I enjoy hanging out with my dog Jacques, hiking, and rock climbing. And of course, I also enjoy giving back to the community in Python. 私自身について少し。私は12年間Pythonコードを書いており、AWSでPythonエコロジストとして働いています。私の役割は、ビルダーがより生産的になれるようにツールを提供することです。過去には、Airflowやプロキシセットアップ用のPoetryプラグインに貢献してきました。余暇には、犬のジャックと遊んだり、ハイキングやロッククライミングを楽しんだりしています。そしてもちろん、Pythonコミュニティに還元することも楽しんでいます。

Future未来

Upcoming features:今後の機能:

  • Typing default command like hatch fmt for linting.hatch fmtのようなデフォルトコマンドによるリント。
  • Documentation improvements including contributor guidelines. 貢献者ガイドラインを含むドキュメントの改善。
  • Performance improvements for both the CLI and the Hatchling build system.CLIとHatchlingビルドシステムの両方のパフォーマンス改善。

Supportサポート

If you or your organization finds value in what Hatch provides, consider a sponsorship to assist with maintenance and more rapid development!もしあなたやあなたの組織がHatchの提供する価値を見出した場合、メンテナンスやより迅速な開発を支援するためにスポンサーシップを検討してください!