-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More intuitive metadata when not all authors/maintainers have email a…
…ddresses
- Loading branch information
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ authors = [ | |
{name = "Sir Röbin", email = "[email protected]"} | ||
] | ||
maintainers = [ | ||
{name = "Sir Galahad"} | ||
{name = "Sir Galahad"}, | ||
{name = "Sir Bedevere", email = "[email protected]"} | ||
] | ||
readme = "README.rst" | ||
license = {file = "LICENSE"} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,9 @@ def test_load_pep621(): | |
'mock;extra=="test"and(python_version<\'3.6\')', | ||
} | ||
assert inf.metadata['author_email'] == "Sir Röbin <[email protected]>" | ||
assert 'author' not in inf.metadata # Skipped in favour of author_email | ||
assert inf.metadata['maintainer_email'] == "Sir Bedevere <[email protected]>" | ||
assert inf.metadata['maintainer'] == "Sir Galahad, Sir Bedevere" | ||
assert inf.entrypoints['flit_test_example']['foo'] == 'module1:main' | ||
assert set(inf.dynamic_metadata) == {'version', 'description'} | ||
|
||
|