-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from wimglenn/optional-metadata
Optional fields are really optional
- Loading branch information
Showing
11 changed files
with
51 additions
and
92 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
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
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ def test_check_metadata(self): | |
# by default, check is checking the metadata | ||
# should have some warnings | ||
cmd = self._run() | ||
self.assertEqual(cmd._warnings, 2) | ||
self.assertEqual(cmd._warnings, 1) | ||
|
||
# now let's add the required fields | ||
# and run it again, to make sure we don't get | ||
|
@@ -81,17 +81,16 @@ def test_check_author_maintainer(self): | |
cmd = self._run(metadata) | ||
self.assertEqual(cmd._warnings, 0) | ||
|
||
# the check should warn if only email is given and it does not | ||
# contain the name | ||
# the check should not warn if only email is given | ||
metadata[kind + '_email'] = '[email protected]' | ||
cmd = self._run(metadata) | ||
self.assertEqual(cmd._warnings, 1) | ||
self.assertEqual(cmd._warnings, 0) | ||
|
||
# the check should warn if only the name is given | ||
# the check should not warn if only the name is given | ||
metadata[kind] = "Name" | ||
del metadata[kind + '_email'] | ||
cmd = self._run(metadata) | ||
self.assertEqual(cmd._warnings, 1) | ||
self.assertEqual(cmd._warnings, 0) | ||
|
||
@unittest.skipUnless(HAS_DOCUTILS, "won't test without docutils") | ||
def test_check_document(self): | ||
|
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
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
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
a7cfb56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jaraco it looks like the commit description here is referencing #138 but it should be #3289 ?
a7cfb56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ni-balexand, I think the numbering refers to an issue/pr in pypa/distutils: pypa/distutils#138.
The changes in pypa/distutils are periodically merged into setuptools/_distutils (this is the prefered way of modifying that folder).
This is purely a git process, so the commit messages remain unaltered.
a7cfb56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.