コマンドラインリファレンスガイド#
重要
What these tables are: These tables summarize the command line inputs (e.g.,
pipx install hatch, hatch build or python -m build) necessary to complete all steps in the
package creation process, from installing Hatch to
publishing the package on PyPI and conda-forge.
What these tables are not: These tables do not cover the manual or non-automated steps (e.g., create a PyPI account, create a API token) you have to complete throughout the package creation process.
オペレーティングシステム: 本ガイドの現在のバージョンは、Windows OSのみでテストされています。多くのコマンドはWindows固有のものでス。OS固有のコマンドは、コマンドの説明の後に [COMMAND_DESCRIPTION] (Windows) のように括弧をつけて表示されます。 macOSとLinuxに対応するコマンドは今後追加されます。
環境設定#
Description |
Syntax |
|---|---|
Set PowerShell execution policy (Windows) |
|
Install Scoop (Windows) |
|
Add "main" bucket as download source (Windows) |
|
Add "versions" bucket as download source (Windows) |
|
Install pipx (Windows) |
|
Update PATH variable with pipx directory |
|
Install hatch |
|
List hatch commands |
|
Open location of hatch config file |
|
Print contents of hatch config file |
|
Install grayskull |
|
パッケージ開発#
Description |
Syntax |
|---|---|
Create package structure and baseline contents |
|
Install package locally in editable mode |
|
Install development dependencies |
|
List packages installed in current environment |
|
Install package from GitHub |
|
Create development environment |
|
Activate development environment |
|
Exit development environment |
|
パッケージパブリッシング#
Description |
Syntax |
|---|---|
Build package sdist and wheel distributions |
|
Publish package to Test PyPI |
|
Install package from Test PyPI |
|
Publish package to PyPI |
|
Install package from PyPI |
|
Create conda-forge recipe |
|
Check that package installs properly |
|
Install package from conda-forge |
|
バージョンと環境#
Description |
Syntax |
|---|---|
View environments |
|
Print path to active hatch environment |
|
Bump package version - major |
|
Bump package version - minor |
|
Bump package version - patch |
|
Run test scripts on multiple Python versions |
|