You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,11 @@
6
6
7
7
-----
8
8
This package provides two Hatch plugins:
9
-
-[version source plugin](https://hatch.pypa.io/latest/plugins/version-source/) that reads/writes the package version from the `version` field of the NodeJS `package.json` file.
10
-
-[metadata hook plugin](https://hatch.pypa.io/latest/plugins/metadata-hook/) that reads PEP 621 metadata from the NodeJS `package.json` file.
11
9
10
+
-[version source plugin](https://hatch.pypa.io/latest/plugins/version-source/) that reads/writes the package version
11
+
from the `version` field of the NodeJS `package.json` file.
12
+
-[metadata hook plugin](https://hatch.pypa.io/latest/plugins/metadata-hook/) that reads PEP 621 metadata from the
13
+
NodeJS `package.json` file.
12
14
13
15
**Table of Contents**
14
16
@@ -45,17 +47,19 @@ The [version source plugin](https://hatch.pypa.io/latest/plugins/version-source/
45
47
[version]
46
48
source = "nodejs"
47
49
```
48
-
50
+
49
51
### Semver
50
52
51
53
The semver specification defines the following version sections:
| `path` | `str` | `package.json` | Relative path to the `package.json` file. |
103
-
| `fields` | `list` of `str` | `None` | Optional list of `pyproject.toml` fields to take from their counterparts in `package.json`. |
104
-
| `contributors-as-maintainers` | `bool` | `True` | Whether contributors in `package.json` should be considered maintainers (otherwise, treat them as authors).|
| `path` | `str` | `"package.json"` | Relative path to the `package.json` file. |
108
+
| `fields` | `list` of `str` | `None` | Optional list of `pyproject.toml` fields to take from their counterparts in `package.json`. |
109
+
| `contributors-as-maintainers` | `bool` | `True` | Whether contributors in `package.json` should be considered maintainers (otherwise, treat them as authors). |
110
+
| `bugs-label` | `str` | `"Bug Tracker"` | The key in the URLs table of `pyproject.toml` that is populated by the `bugs` field in `package.json` |
111
+
| `homepage-label` | `str` | `"Homepage"` | The key in the URLs table of `pyproject.toml` that is populated by the `homepage` field in `package.json` |
112
+
| `repository-label` | `str` | `"Repository"` | The key in the URLs table of `pyproject.toml` that is populated by the `repository` field in `package.json` |
0 commit comments