Skip to content

Commit

Permalink
Update the poetry/pdm add slide
Browse files Browse the repository at this point in the history
  • Loading branch information
jond01 committed Jul 2, 2023
1 parent c89b00f commit 650c25d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,10 @@ Hatch
transition: fade
---

# Adding a Dependency with a Single Command
# Add a Dependency with a Single Command

Instead of maintaining multiple files and configs, adopt a modern package manager.

Some examples are: `poetry`, `hatch`, `pdm`, all are CLI tools.

Adding a dependency follows an idiomatic form:

<div grid="~ rows-3 cols-2 gap-2" m="-t-2" style="grid-template-rows: auto 1fr;">
Expand All @@ -528,11 +526,10 @@ Terminal
</div>

<div>

<code>poetry</code>:
```sh
$ poetry add torch
```

</div>

<div>
Expand All @@ -546,7 +543,7 @@ torch = "^2.0.1"
</div>

<div>

<code>pdm</code> / <code>hatch</code>:
```sh
$ pdm add torch
```
Expand Down

0 comments on commit 650c25d

Please sign in to comment.