Skip to content

Commit a346688

Browse files
ucoderylwasser
authored andcommitted
update: hatch tutorial
1 parent c433bc1 commit a346688

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

tutorials/get-to-know-hatch.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,35 @@ Our Python packaging tutorials use the tool Hatch.
44
In this tutorial, you will install and get to know hatch a bit more before starting to use it.
55

66
## Install Hatch
7-
To begin, install Hatch following the
8-
[instructions here](https://hatch.pypa.io/latest/install/).
7+
To begin, install Hatch from the command line using [pipx](https://pipx.pypa.io/stable/)
8+
9+
```bash
10+
pipx install hatch
11+
```
12+
13+
:::{tip}
14+
Hatch also provides pre-build binaries available from common OS package managers or directly from
15+
the [hatch website](https://hatch.pypa.io/latest/install/).
16+
:::
917

1018
:::{tip}
11-
If you are comfortable using [pipx](https://pipx.pypa.io/stable/) to install hatch, we encourage you to do so. pipx will ensure that your package is available across all of your Python environments on your computer rather than just in the environment that you install it into.
19+
Hatch can also be installed directly using `pip` or `conda`, but we encourage you to use `pipx`.
20+
This is because `pipx` will ensure that your package is available across all of your Python
21+
environments on your computer rather than just in the environment that you install it into.
1222

13-
However if you are not sure about pipx, you can install hatch using pip or conda.
23+
If you install hatch this way you will have to take care that the environment it is installed into
24+
is activated for the command to work.
1425
:::
1526

27+
You can check that hatch is working properly by issuing a simple command to get the version
28+
29+
```bash
30+
hatch --version
31+
# Hatch, version 1.9.4
32+
```
33+
34+
Note the version numbers will likely be different
35+
1636
## Configure hatch
1737

1838
Once you have installed hatch, you will want to customize the configuration.

0 commit comments

Comments
 (0)