Installation¶インストール¶
GitHub Actions¶GitHub Actions¶
- name: Install Hatch
uses: pypa/hatch@install
Refer to the official action for more information.公式アクションを参照して、詳細情報を確認してください。
Installers¶インストーラー¶
- In your browser, download the
.pkgfile: hatch-universal.pkgブラウザで、.pkgファイルをダウンロードします: hatch-universal.pkg - Run your downloaded file and follow the on-screen instructions.ダウンロードしたファイルを実行し、画面の指示に従ってください。
- Restart your terminal.ターミナルを再起動します。
-
To verify that the shell can find and run the
hatchcommand in yourPATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するために、次のコマンドを使用します。$ hatch --version 1.16.1
-
Download the file using the
curlcommand. The-ooption specifies the file name that the downloaded package is written to. In this example, the file is written tohatch-universal.pkgin the current directory.curlコマンドを使用してファイルをダウンロードします。-oオプションは、ダウンロードしたパッケージが書き込まれるファイル名を指定します。この例では、ファイルは現在のディレクトリにhatch-universal.pkgとして書き込まれます。curl -Lo hatch-universal.pkg https://github.com/pypa/hatch/releases/latest/download/hatch-universal.pkg -
Run the standard macOS
installerprogram, specifying the downloaded.pkgfile as the source. Use the-pkgparameter to specify the name of the package to install, and the-target /parameter for the drive in which to install the package. The files are installed to/usr/local/hatch, and an entry is created at/etc/paths.d/hatchthat instructs shells to add the/usr/local/hatchdirectory to. You must include sudo on the command to grant write permissions to those folders.標準のmacOSinstallerプログラムを実行し、ダウンロードした.pkgファイルをソースとして指定します。-pkgパラメータを使用してインストールするパッケージの名前を指定し、-target /パラメータを使用してパッケージをインストールするドライブを指定します。ファイルは/usr/local/hatchにインストールされ、シェルに/usr/local/hatchディレクトリを追加するよう指示するエントリが/etc/paths.d/hatchに作成されます。これらのフォルダへの書き込み権限を付与するために、コマンドにsudoを含める必要があります。sudo installer -pkg ./hatch-universal.pkg -target / -
Restart your terminal.ターミナルを再起動します。
-
To verify that the shell can find and run the
hatchcommand in yourPATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するには、次のコマンドを使用します。$ hatch --version 1.16.1
- In your browser, download one the
.msifiles: - Run your downloaded file and follow the on-screen instructions.ダウンロードしたファイルを実行し、画面の指示に従います。
- Restart your terminal.ターミナルを再起動します。
-
To verify that the shell can find and run the
hatchcommand in yourPATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するには、次のコマンドを使用します。$ hatch --version 1.16.1
-
Download and run the installer using the standard Windows
msiexecprogram, specifying one of the.msifiles as the source. Use the/passiveand/iparameters to request an unattended, normal installation.標準のWindowsmsiexecプログラムを使用してインストーラーをダウンロードして実行し、.msiファイルの1つをソースとして指定します。/passiveおよび/iパラメータを使用して、無人で通常のインストールを要求します。msiexec /passive /i https://github.com/pypa/hatch/releases/latest/download/hatch-x64.msimsiexec /passive /i https://github.com/pypa/hatch/releases/latest/download/hatch-x86.msi -
Restart your terminal.ターミナルを再起動します。
-
To verify that the shell can find and run the
hatchcommand in yourPATH, use the following command.シェルがPATH内でhatchコマンドを見つけて実行できることを確認するには、次のコマンドを使用します。$ hatch --version 1.16.1
Standalone binaries¶スタンドアロンバイナリ¶
After downloading the archive corresponding to your platform and architecture, extract the binary to a directory that is on your PATH and rename to hatch.プラットフォームとアーキテクチャに対応するアーカイブをダウンロードした後、バイナリをPATHにあるディレクトリに抽出し、hatchに名前を変更します。
- hatch-aarch64-unknown-linux-gnu.tar.gzhatch-aarch64-unknown-linux-gnu.tar.gz
- hatch-x86_64-unknown-linux-gnu.tar.gzhatch-x86_64-unknown-linux-gnu.tar.gz
- hatch-x86_64-unknown-linux-musl.tar.gzhatch-x86_64-unknown-linux-musl.tar.gz
- hatch-powerpc64le-unknown-linux-gnu.tar.gzhatch-powerpc64le-unknown-linux-gnu.tar.gz
pip¶pip¶
Hatch is available on PyPI and can be installed with pip.HatchはPyPIで利用可能で、pipを使用してインストールできます。
pip install hatch
Warning警告
This method modifies the Python environment in which you choose to install. Consider instead using pipx to avoid dependency conflicts.この方法は、インストールするPython環境を変更します。依存関係の競合を避けるために、代わりにpipxの使用を検討してください。
pipx¶pipx¶
pipx allows for the global installation of Python applications in isolated environments.pipxは、隔離された環境でPythonアプリケーションをグローバルにインストールすることを可能にします。
pipx install hatch
Homebrew¶Homebrew¶
See the formula for more details.詳細については、formulaを参照してください。
brew install hatch
Conda¶Conda¶
See the feedstock for more details.詳細については、feedstockを参照してください。
conda install -c conda-forge hatch
mamba install hatch
Warning警告
This method modifies the Conda environment in which you choose to install. Consider instead using pipx or condax to avoid dependency conflicts.このメソッドは、インストールする環境の Conda を変更します。依存関係の競合を避けるために、代わりに pipx または condax の使用を検討してください。
MacPorts¶MacPorts¶
See the port for more details.詳細については、ポートを参照してください。
sudo port install hatch
Fedora¶Fedora¶
The minimum supported version is 37, currently in development as Rawhide.サポートされている最小バージョンは 37 で、現在 Rawhide として開発中です。
sudo dnf install hatch
Void Linux¶Void Linux¶
xbps-install hatch
Build system availability¶ビルドシステムの可用性¶
Hatchling is Hatch's build backend which you will never need to install manually. See its changelog for version information.Hatchling は Hatch の ビルドバックエンド であり、手動でインストールする必要はありません。バージョン情報については、その 変更履歴 を参照してください。