-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use plain copy of packaging instead of submodule
- Loading branch information
Showing
16 changed files
with
2,817 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "src/multiple_choice/packaging"] | ||
path = src/multiple_choice/packaging | ||
url = https://github.com/pypa/packaging | ||
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
Submodule packaging
deleted from
456f94
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This file is dual licensed under the terms of the Apache License, Version | ||
# 2.0, and the BSD License. See the LICENSE file in the root of this repository | ||
# for complete details. | ||
|
||
__all__ = [ | ||
"__title__", | ||
"__summary__", | ||
"__uri__", | ||
"__version__", | ||
"__author__", | ||
"__email__", | ||
"__license__", | ||
"__copyright__", | ||
] | ||
|
||
__title__ = "packaging" | ||
__summary__ = "Core utilities for Python packages" | ||
__uri__ = "https://github.com/pypa/packaging" | ||
|
||
__version__ = "20.10.dev0" | ||
|
||
__author__ = "Donald Stufft and individual contributors" | ||
__email__ = "[email protected]" | ||
|
||
__license__ = "BSD-2-Clause or Apache-2.0" | ||
__copyright__ = "2014-2019 %s" % __author__ |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This file is dual licensed under the terms of the Apache License, Version | ||
# 2.0, and the BSD License. See the LICENSE file in the root of this repository | ||
# for complete details. | ||
|
||
from .__about__ import ( | ||
__author__, | ||
__copyright__, | ||
__email__, | ||
__license__, | ||
__summary__, | ||
__title__, | ||
__uri__, | ||
__version__, | ||
) | ||
|
||
__all__ = [ | ||
"__title__", | ||
"__summary__", | ||
"__uri__", | ||
"__version__", | ||
"__author__", | ||
"__email__", | ||
"__license__", | ||
"__copyright__", | ||
] |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# This file is dual licensed under the terms of the Apache License, Version | ||
# 2.0, and the BSD License. See the LICENSE file in the root of this repository | ||
# for complete details. | ||
|
||
|
||
class InfinityType: | ||
def __repr__(self) -> str: | ||
return "Infinity" | ||
|
||
def __hash__(self) -> int: | ||
return hash(repr(self)) | ||
|
||
def __lt__(self, other: object) -> bool: | ||
return False | ||
|
||
def __le__(self, other: object) -> bool: | ||
return False | ||
|
||
def __eq__(self, other: object) -> bool: | ||
return isinstance(other, self.__class__) | ||
|
||
def __ne__(self, other: object) -> bool: | ||
return not isinstance(other, self.__class__) | ||
|
||
def __gt__(self, other: object) -> bool: | ||
return True | ||
|
||
def __ge__(self, other: object) -> bool: | ||
return True | ||
|
||
def __neg__(self: object) -> "NegativeInfinityType": | ||
return NegativeInfinity | ||
|
||
|
||
Infinity = InfinityType() | ||
|
||
|
||
class NegativeInfinityType: | ||
def __repr__(self) -> str: | ||
return "-Infinity" | ||
|
||
def __hash__(self) -> int: | ||
return hash(repr(self)) | ||
|
||
def __lt__(self, other: object) -> bool: | ||
return True | ||
|
||
def __le__(self, other: object) -> bool: | ||
return True | ||
|
||
def __eq__(self, other: object) -> bool: | ||
return isinstance(other, self.__class__) | ||
|
||
def __ne__(self, other: object) -> bool: | ||
return not isinstance(other, self.__class__) | ||
|
||
def __gt__(self, other: object) -> bool: | ||
return False | ||
|
||
def __ge__(self, other: object) -> bool: | ||
return False | ||
|
||
def __neg__(self: object) -> InfinityType: | ||
return Infinity | ||
|
||
|
||
NegativeInfinity = NegativeInfinityType() |
Oops, something went wrong.