Skip to content

Commit 0a8f910

Browse files
authored
Merge pull request #2036 from monique2208/master
[ENH] Allow LICENSE files to have .txt, .md, or .rst extensions
1 parent 6994398 commit 0a8f910

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/modality-agnostic-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Templates:
88
- `README[.md|.rst|.txt]`
99
- `CITATION.cff`
1010
- `CHANGES`
11-
- `LICENSE`
11+
- `LICENSE[.md|.rst|.txt]`
1212

1313
### `dataset_description.json`
1414

src/schema/objects/files.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ LICENSE:
2727
A `LICENSE` file MAY be provided in addition to the short specification of the
2828
used license in the `dataset_description.json` `"License"` field.
2929
The `"License"` field and `LICENSE` file MUST correspond.
30-
The `LICENSE` file MUST be either in ASCII or UTF-8 encoding.
30+
The `LICENSE` file MUST be either in ASCII or UTF-8 encoding and MAY have one of the extensions:
31+
`.md` ([Markdown](https://www.markdownguide.org/)),
32+
`.rst` ([reStructuredText](https://docutils.sourceforge.io/rst.html)),
33+
or `.txt`.
3134
README:
3235
display_name: README
3336
file_type: regular

src/schema/rules/files/common/core.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ CHANGES:
2121
path: CHANGES
2222
LICENSE:
2323
level: optional
24-
path: LICENSE
24+
stem: LICENSE
25+
extensions:
26+
- ''
27+
- .md
28+
- .rst
29+
- .txt
2530
genetic_info:
2631
level: optional
2732
path: genetic_info.json

0 commit comments

Comments
 (0)