Skip to content

Commit

Permalink
Add keywords & classifiers to PEP 621 samples
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Mar 11, 2021
1 parent 059a130 commit 85b1684
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flit_core/flit_core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 494,7 @@ def read_pep621_metadata(proj, path) -> LoadedConfig:
md_dict['keywords'] = ",".join(proj['keywords'])

if 'classifiers' in proj:
_check_list_of_str(proj, 'keywords')
_check_list_of_str(proj, 'classifiers')
md_dict['classifiers'] = proj['classifiers']

if 'urls' in proj:
Expand Down
1 change: 1 addition & 0 deletions flit_core/flit_core/tests/samples/pep621/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 16,7 @@ dependencies = [
"requests >= 2.18",
"docutils",
]
keywords = ["example", "test"]
dynamic = [
"version",
"description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 10,9 @@ authors = [
{name = "Sir Robin", email = "[email protected]"}
]
readme = {file = "README.rst", content-type = "text/x-rst"}
classifiers = [
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"requests >= 2.18",
"docutils",
Expand Down

0 comments on commit 85b1684

Please sign in to comment.