Skip to content

Commit 7127d95

Browse files
committed
update readme
1 parent 200a4d7 commit 7127d95

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,28 @@ python -m plux entrypoints
7272

7373
This creates a `plux.ini` file in your working directory with the discovered plugins. You can then include this file in your distribution by configuring your `pyproject.toml`:
7474

75-
```toml
76-
[project]
77-
dynamic = ["entry-points"]
75+
- **setuptools:**
76+
```toml
77+
[project]
78+
dynamic = ["entry-points"]
7879

79-
[tool.setuptools.package-data]
80-
"*" = ["plux.ini"]
80+
[tool.setuptools.package-data]
81+
"*" = ["plux.ini"]
8182

82-
[tool.setuptools.dynamic]
83-
entry-points = {file = ["plux.ini"]}
84-
```
83+
[tool.setuptools.dynamic]
84+
entry-points = {file = ["plux.ini"]}
85+
```
86+
87+
- **hatchling:**
88+
```toml
89+
[project]
90+
dynamic = ["entry-points"]
91+
92+
[tool.setuptools.package-data]
93+
"*" = ["plux.ini"]
94+
95+
[tool.hatch.metadata.hooks.plux]
96+
```
8597

8698
You can also manually control the output format and location:
8799

0 commit comments

Comments
 (0)