Skip to content

Commit a828cbc

Browse files
committed
Improve license and license-files docs
1 parent 72d5727 commit a828cbc

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

Diff for: docs/config/metadata.md

+9-16
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,18 @@ requires-python = ">=3.8"
9999

100100
## License
101101

102-
For more information, see [PEP 639][].
102+
For more information, see [PEP 639][]. `license` must be a valid SPDX license expression,
103+
`license-files` a list of glob patterns which match license files. If not specified,
104+
`license-files` will default to `['LICEN[CS]E*', 'COPYING*', 'NOTICE*', 'AUTHORS*']`.
103105

104106
=== ":octicons-file-code-16: pyproject.toml"
105107

106-
=== "SPDX expression"
107-
108-
```toml
109-
[project]
110-
...
111-
license = "Apache-2.0 OR MIT"
112-
```
113-
114-
=== "Files"
115-
116-
```toml
117-
[project]
118-
...
119-
license-files = ["LICENSES/*"]
120-
```
108+
```toml
109+
[project]
110+
...
111+
license = "Apache-2.0 OR MIT"
112+
license-files = ["LICENSES/*"]
113+
```
121114

122115
## Ownership
123116

0 commit comments

Comments
 (0)