Skip to content

Commit

Permalink
Notes on extras
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jan 19, 2022
1 parent ae7586f commit 7bfba08
Show file tree
Hide file tree
Showing 3 changed files with 443 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,20 @@ build-backend = "poetry.core.masonry.api"
```

When I installed in the pypy env, I got lxml. On Cpython env, I didn't. Nice.


# Extras

Specify as follows:

```
[tool.poetry.dependencies]
# ...
aiohttp = { version = "^3.8", optional = true }
aio_ping = { version = "^0.1.3", optional = true }
[tool.poetry.extras]
aio = ["aiohttp", "aio_ping"]
```

Lockfile adds in a bunch of guff. `poetry install` does nothing. `poetry install -E aio` does. I think this is working as intended.
Loading

0 comments on commit 7bfba08

Please sign in to comment.