-
-
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.
Update packaging to 20.4. Closes #2310.
- v75.8.0
- v75.7.0
- v75.6.0
- v75.5.0
- v75.4.0
- v75.3.0
- v75.2.0
- v75.1.1
- v75.1.0
- v75.0.0
- v74.1.3
- v74.1.2
- v74.1.1
- v74.1.0
- v74.0.0
- v73.0.1
- v73.0.0
- v72.2.0
- v72.1.0
- v72.0.0
- v71.1.0
- v71.0.4
- v71.0.3
- v71.0.2
- v71.0.1
- v71.0.0
- v70.3.0
- v70.2.0
- v70.1.1
- v70.1.0
- v70.0.0
- v69.5.1
- v69.5.0
- v69.4.2
- v69.4.1
- v69.4.0
- v69.3.1
- v69.3.0
- v69.2.0
- v69.1.1
- v69.1.0
- v69.0.3
- v69.0.2
- v69.0.1
- v69.0.0
- v68.2.2
- v68.2.1
- v68.2.0
- v68.2.0b1
- v68.1.2
- v68.1.1
- v68.1.0
- v68.0.0
- v67.8.0
- v67.7.2
- v67.7.1
- v67.7.0
- v67.6.1
- v67.6.0
- v67.5.1
- v67.5.0
- v67.4.0
- v67.3.3
- v67.3.2
- v67.3.1
- v67.3.0
- v67.2.0
- v67.1.0
- v67.0.0
- v66.1.1
- v66.1.0
- v66.0.0
- v65.7.0
- v65.6.3
- v65.6.2
- v65.6.1
- v65.6.0
- v65.5.1
- v65.5.0
- v65.4.1
- v65.4.0
- v65.3.0
- v65.2.0
- v65.1.1
- v65.1.0
- v65.0.2
- v65.0.1
- v65.0.0
- v64.0.3
- v64.0.2
- v64.0.1
- v64.0.0
- v64.0.0b1
- v63.4.3
- v63.4.2
- v63.4.1
- v63.4.0
- v63.3.0
- v63.2.0
- v63.1.0
- v63.0.0
- v63.0.0b1
- v62.6.0
- v62.5.0
- v62.4.0
- v62.3.4
- v62.3.3
- v62.3.2
- v62.3.1
- v62.3.0
- v62.2.0
- v62.1.0
- v62.0.0
- v61.3.1
- v61.3.0
- v61.2.0
- v61.1.1
- v61.1.0
- v61.0.0
- v60.10.0
- v60.9.3
- v60.9.2
- v60.9.1
- v60.9.0
- v60.8.2
- v60.8.1
- v60.8.0
- v60.7.1
- v60.7.0
- v60.6.0
- v60.5.4
- v60.5.3
- v60.5.2
- v60.5.1
- v60.5.0
- v60.4.0
- v60.3.1
- v60.3.0
- v60.2.0
- v60.1.1
- v60.1.0
- v60.0.5
- v60.0.4
- v60.0.3
- v60.0.2
- v60.0.1
- v60.0.0
- v59.8.0
- v59.7.0
- v59.6.0
- v59.5.0
- v59.4.0
- v59.3.0
- v59.2.0
- v59.1.1
- v59.1.0
- v59.0.1
- v59.0.0
- v58.5.3
- v58.5.2
- v58.5.1
- v58.5.0
- v58.4.0
- v58.3.0
- v58.2.0
- v58.1.0
- v58.0.4
- v58.0.3
- v58.0.2
- v58.0.1
- v58.0.0
- v57.5.0
- v57.4.0
- v57.3.0
- v57.2.0
- v57.1.0
- v57.0.0
- v56.2.0
- v56.1.0
- v56.0.0
- v55.0.0
- v54.2.0
- v54.1.3
- v54.1.2
- v54.1.1
- v54.1.0
- v54.0.0
- v53.1.0
- v53.0.0
- v52.0.0
- v51.3.3
- v51.3.2
- v51.3.1
- v51.3.0
- v51.2.0
- v51.1.2
- v51.1.1
- v51.1.0
- v51.0.0
- v50.3.2
- v50.3.1
- v50.3.0
- v50.2.0
- v50.1.0
- v50.0.3
- v50.0.2
- v50.0.1
- v50.0.0
- v49.6.0
- v49.5.0
- v49.4.0
Showing
24 changed files
with
1,776 additions
and
384 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 |
---|---|---|
|
@@ -18,10 +18,10 @@ | |
__summary__ = "Core utilities for Python packages" | ||
__uri__ = "https://github.com/pypa/packaging" | ||
|
||
__version__ = "19.2" | ||
__version__ = "20.4" | ||
|
||
__author__ = "Donald Stufft and individual contributors" | ||
__email__ = "[email protected]" | ||
|
||
__license__ = "BSD or Apache License, Version 2.0" | ||
__license__ = "BSD-2-Clause or Apache-2.0" | ||
__copyright__ = "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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
"""For neatly implementing static typing in packaging. | ||
`mypy` - the static type analysis tool we use - uses the `typing` module, which | ||
provides core functionality fundamental to mypy's functioning. | ||
Generally, `typing` would be imported at runtime and used in that fashion - | ||
it acts as a no-op at runtime and does not have any run-time overhead by | ||
design. | ||
As it turns out, `typing` is not vendorable - it uses separate sources for | ||
Python 2/Python 3. Thus, this codebase can not expect it to be present. | ||
To work around this, mypy allows the typing import to be behind a False-y | ||
optional to prevent it from running at runtime and type-comments can be used | ||
to remove the need for the types to be accessible directly during runtime. | ||
This module provides the False-y guard in a nicely named fashion so that a | ||
curious maintainer can reach here to read this. | ||
In packaging, all static-typing related imports should be guarded as follows: | ||
from packaging._typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
from typing import ... | ||
Ref: https://github.com/python/mypy/issues/3216 | ||
""" | ||
|
||
__all__ = ["TYPE_CHECKING", "cast"] | ||
|
||
# The TYPE_CHECKING constant defined by the typing module is False at runtime | ||
# but True while type checking. | ||
if False: # pragma: no cover | ||
from typing import TYPE_CHECKING | ||
else: | ||
TYPE_CHECKING = False | ||
|
||
# typing's cast syntax requires calling typing.cast at runtime, but we don't | ||
# want to import typing at runtime. Here, we inform the type checkers that | ||
# we're importing `typing.cast` as `cast` and re-implement typing.cast's | ||
# runtime behavior in a block that is ignored by type checkers. | ||
if TYPE_CHECKING: # pragma: no cover | ||
# not executed at runtime | ||
from typing import cast | ||
else: | ||
# executed at runtime | ||
def cast(type_, value): # noqa | ||
return value |
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
Empty file.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 +1,4 @@ | ||
packaging==19.2 | ||
packaging==20.4 | ||
pyparsing==2.2.1 | ||
six==1.10.0 | ||
appdirs==1.4.3 |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
"""For neatly implementing static typing in packaging. | ||
`mypy` - the static type analysis tool we use - uses the `typing` module, which | ||
provides core functionality fundamental to mypy's functioning. | ||
Generally, `typing` would be imported at runtime and used in that fashion - | ||
it acts as a no-op at runtime and does not have any run-time overhead by | ||
design. | ||
As it turns out, `typing` is not vendorable - it uses separate sources for | ||
Python 2/Python 3. Thus, this codebase can not expect it to be present. | ||
To work around this, mypy allows the typing import to be behind a False-y | ||
optional to prevent it from running at runtime and type-comments can be used | ||
to remove the need for the types to be accessible directly during runtime. | ||
This module provides the False-y guard in a nicely named fashion so that a | ||
curious maintainer can reach here to read this. | ||
In packaging, all static-typing related imports should be guarded as follows: | ||
from packaging._typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
from typing import ... | ||
Ref: https://github.com/python/mypy/issues/3216 | ||
""" | ||
|
||
__all__ = ["TYPE_CHECKING", "cast"] | ||
|
||
# The TYPE_CHECKING constant defined by the typing module is False at runtime | ||
# but True while type checking. | ||
if False: # pragma: no cover | ||
from typing import TYPE_CHECKING | ||
else: | ||
TYPE_CHECKING = False | ||
|
||
# typing's cast syntax requires calling typing.cast at runtime, but we don't | ||
# want to import typing at runtime. Here, we inform the type checkers that | ||
# we're importing `typing.cast` as `cast` and re-implement typing.cast's | ||
# runtime behavior in a block that is ignored by type checkers. | ||
if TYPE_CHECKING: # pragma: no cover | ||
# not executed at runtime | ||
from typing import cast | ||
else: | ||
# executed at runtime | ||
def cast(type_, value): # noqa | ||
return value |
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
Empty file.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 +1,4 @@ | ||
packaging==19.2 | ||
packaging==20.4 | ||
pyparsing==2.2.1 | ||
six==1.10.0 | ||
ordered-set==3.1.1 |