Skip to content

Commit 26afa66

Browse files
authored
Add reference to adding requires-plugins for Poetry 2 (#314)
1 parent 64b01c2 commit 26afa66

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ This plugin provides the same features as the existing `export` command of Poetr
1111

1212
## Installation
1313

14-
The easiest way to install the `export` plugin is via the `self add` command of Poetry.
14+
On Poetry 2.0 and newer, the easiest way to add the `export` plugin is to declare it as a required Poetry plugin.
15+
16+
```toml
17+
[tool.poetry.requires-plugins]
18+
poetry-plugin-export = ">=1.8"
19+
```
20+
21+
Otherwise, install the plugin via the `self add` command of Poetry.
1522

1623
```bash
1724
poetry self add poetry-plugin-export

0 commit comments

Comments
 (0)