-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f39285c
commit 813327a
Showing
344 changed files
with
114,047 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
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,20 @@ | ||
Copyright (c) 2008-2019 The pip developers (see AUTHORS.txt file) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,81 @@ | ||
Metadata-Version: 2.1 | ||
Name: pip | ||
Version: 19.2.3 | ||
Summary: The PyPA recommended tool for installing Python packages. | ||
Home-page: https://pip.pypa.io/ | ||
Author: The pip developers | ||
Author-email: pypa-dev@groups.google.com | ||
License: MIT | ||
Keywords: distutils easy_install egg setuptools wheel virtualenv | ||
Platform: UNKNOWN | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Intended Audience :: Developers | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Topic :: Software Development :: Build Tools | ||
Classifier: Programming Language :: Python | ||
Classifier: Programming Language :: Python :: 2 | ||
Classifier: Programming Language :: Python :: 2.7 | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: Programming Language :: Python :: 3.5 | ||
Classifier: Programming Language :: Python :: 3.6 | ||
Classifier: Programming Language :: Python :: 3.7 | ||
Classifier: Programming Language :: Python :: Implementation :: CPython | ||
Classifier: Programming Language :: Python :: Implementation :: PyPy | ||
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.* | ||
|
||
pip - The Python Package Installer | ||
================================== | ||
|
||
.. image:: https://img.shields.io/pypi/v/pip.svg | ||
:target: https://pypi.org/project/pip/ | ||
|
||
.. image:: https://readthedocs.org/projects/pip/badge/?version=latest | ||
:target: https://pip.pypa.io/en/latest | ||
|
||
pip is the `package installer`_ for Python. You can use pip to install packages from the `Python Package Index`_ and other indexes. | ||
|
||
Please take a look at our documentation for how to install and use pip: | ||
|
||
* `Installation`_ | ||
* `Usage`_ | ||
|
||
Updates are released regularly, with a new version every 3 months. More details can be found in our documentation: | ||
|
||
* `Release notes`_ | ||
* `Release process`_ | ||
|
||
If you find bugs, need help, or want to talk to the developers please use our mailing lists or chat rooms: | ||
|
||
* `Issue tracking`_ | ||
* `Discourse channel`_ | ||
* `User IRC`_ | ||
|
||
If you want to get involved head over to GitHub to get the source code, look at our development documentation and feel free to jump on the developer mailing lists and chat rooms: | ||
|
||
* `GitHub page`_ | ||
* `Dev documentation`_ | ||
* `Dev mailing list`_ | ||
* `Dev IRC`_ | ||
|
||
Code of Conduct | ||
--------------- | ||
|
||
Everyone interacting in the pip project's codebases, issue trackers, chat | ||
rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_. | ||
|
||
.. _package installer: https://packaging.python.org/en/latest/current/ | ||
.. _Python Package Index: https://pypi.org | ||
.. _Installation: https://pip.pypa.io/en/stable/installing.html | ||
.. _Usage: https://pip.pypa.io/en/stable/ | ||
.. _Release notes: https://pip.pypa.io/en/stable/news.html | ||
.. _Release process: https://pip.pypa.io/en/latest/development/release-process/ | ||
.. _GitHub page: https://github.com/pypa/pip | ||
.. _Dev documentation: https://pip.pypa.io/en/latest/development | ||
.. _Issue tracking: https://github.com/pypa/pip/issues | ||
.. _Discourse channel: https://discuss.python.org/c/packaging | ||
.. _Dev mailing list: https://groups.google.com/forum/#!forum/pypa-dev | ||
.. _User IRC: https://webchat.freenode.net/?channels=%23pypa | ||
.. _Dev IRC: https://webchat.freenode.net/?channels=%23pypa-dev | ||
.. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/ | ||
|
||
|
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,6 @@ | ||
Wheel-Version: 1.0 | ||
Generator: bdist_wheel (0.33.6) | ||
Root-Is-Purelib: true | ||
Tag: py2-none-any | ||
Tag: py3-none-any | ||
|
5 changes: 5 additions & 0 deletions
5
pex/vendor/_vendored/pip/pip-19.2.3.dist-info/entry_points.txt
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,5 @@ | ||
[console_scripts] | ||
pip = pip._internal:main | ||
pip3 = pip._internal:main | ||
pip3.7 = pip._internal:main | ||
|
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 @@ | ||
pip |
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 @@ | ||
__version__ = "19.2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from __future__ import absolute_import | ||
|
||
import os | ||
import sys | ||
|
||
# If we are running from a wheel, add the wheel to sys.path | ||
# This allows the usage python pip-*.whl/pip install pip-*.whl | ||
if __package__ == '': | ||
# __file__ is pip-*.whl/pip/__main__.py | ||
# first dirname call strips of '/__main__.py', second strips off '/pip' | ||
# Resulting path is the name of the wheel itself | ||
# Add that to sys.path so we can import pip | ||
path = os.path.dirname(os.path.dirname(__file__)) | ||
sys.path.insert(0, path) | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._internal import main as _main # vendor:skip | ||
else: | ||
from pex.third_party.pip._internal import main as _main | ||
# isort:skip # noqa | ||
|
||
if __name__ == '__main__': | ||
sys.exit(_main()) |
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,109 @@ | ||
#!/usr/bin/env python | ||
from __future__ import absolute_import | ||
|
||
import locale | ||
import logging | ||
import os | ||
import warnings | ||
|
||
import sys | ||
|
||
# 2016-06-17 barry@debian.org: urllib3 1.14 added optional support for socks, | ||
# but if invoked (i.e. imported), it will issue a warning to stderr if socks | ||
# isn't available. requests unconditionally imports urllib3's socks contrib | ||
# module, triggering this warning. The warning breaks DEP-8 tests (because of | ||
# the stderr output) and is just plain annoying in normal usage. I don't want | ||
# to add socks as yet another dependency for pip, nor do I want to allow-stderr | ||
# in the DEP-8 tests, so just suppress the warning. pdb tells me this has to | ||
# be done before the import of pip.vcs. | ||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._vendor.urllib3.exceptions import DependencyWarning # vendor:skip | ||
else: | ||
from pex.third_party.pip._vendor.urllib3.exceptions import DependencyWarning | ||
|
||
warnings.filterwarnings("ignore", category=DependencyWarning) # noqa | ||
|
||
# We want to inject the use of SecureTransport as early as possible so that any | ||
# references or sessions or what have you are ensured to have it, however we | ||
# only want to do this in the case that we're running on macOS and the linked | ||
# OpenSSL is too old to handle TLSv1.2 | ||
try: | ||
import ssl | ||
except ImportError: | ||
pass | ||
else: | ||
# Checks for OpenSSL 1.0.1 on MacOS | ||
if sys.platform == "darwin" and ssl.OPENSSL_VERSION_NUMBER < 0x1000100f: | ||
try: | ||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._vendor.urllib3.contrib import securetransport # vendor:skip | ||
else: | ||
from pex.third_party.pip._vendor.urllib3.contrib import securetransport | ||
|
||
except (ImportError, OSError): | ||
pass | ||
else: | ||
securetransport.inject_into_urllib3() | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._internal.cli.autocompletion import autocomplete # vendor:skip | ||
else: | ||
from pex.third_party.pip._internal.cli.autocompletion import autocomplete | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._internal.cli.main_parser import parse_command # vendor:skip | ||
else: | ||
from pex.third_party.pip._internal.cli.main_parser import parse_command | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._internal.commands import commands_dict # vendor:skip | ||
else: | ||
from pex.third_party.pip._internal.commands import commands_dict | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._internal.exceptions import PipError # vendor:skip | ||
else: | ||
from pex.third_party.pip._internal.exceptions import PipError | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._internal.utils import deprecation # vendor:skip | ||
else: | ||
from pex.third_party.pip._internal.utils import deprecation | ||
|
||
if "__PEX_UNVENDORED__" in __import__("os").environ: | ||
from pip._vendor.urllib3.exceptions import InsecureRequestWarning # vendor:skip | ||
else: | ||
from pex.third_party.pip._vendor.urllib3.exceptions import InsecureRequestWarning | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
# Hide the InsecureRequestWarning from urllib3 | ||
warnings.filterwarnings("ignore", category=InsecureRequestWarning) | ||
|
||
|
||
def main(args=None): | ||
if args is None: | ||
args = sys.argv[1:] | ||
|
||
# Configure our deprecation warnings to be sent through loggers | ||
deprecation.install_warning_logger() | ||
|
||
autocomplete() | ||
|
||
try: | ||
cmd_name, cmd_args = parse_command(args) | ||
except PipError as exc: | ||
sys.stderr.write("ERROR: %s" % exc) | ||
sys.stderr.write(os.linesep) | ||
sys.exit(1) | ||
|
||
# Needed for locale.getpreferredencoding(False) to work | ||
# in pip._internal.utils.encoding.auto_decode | ||
try: | ||
locale.setlocale(locale.LC_ALL, '') | ||
except locale.Error as e: | ||
# setlocale can apparently crash if locale are uninitialized | ||
logger.debug("Ignoring error %s when setting locale", e) | ||
command = commands_dict[cmd_name](isolated=("--isolated" in cmd_args)) | ||
return command.main(cmd_args) |
Oops, something went wrong.