Permalink
Browse files

Rename pip.vendor.* to pip._vendor.* to ensure it's obviously private

  • Loading branch information...
1 parent c375a35 commit 814514e1bd7b7585af45ab28864484a04e45d1dd @dstufft dstufft committed Oct 23, 2013
Showing with 35 additions and 35 deletions.
  1. 0 pip/{vendor → _vendor}/Makefile
  2. +3 −3 pip/{vendor → _vendor}/README.rst
  3. +8 −0 pip/_vendor/__init__.py
  4. 0 pip/{vendor → _vendor}/colorama/__init__.py
  5. 0 pip/{vendor → _vendor}/colorama/ansi.py
  6. 0 pip/{vendor → _vendor}/colorama/ansitowin32.py
  7. 0 pip/{vendor → _vendor}/colorama/initialise.py
  8. 0 pip/{vendor → _vendor}/colorama/win32.py
  9. 0 pip/{vendor → _vendor}/colorama/winterm.py
  10. 0 pip/{vendor → _vendor}/distlib/__init__.py
  11. 0 pip/{vendor → _vendor}/distlib/_backport/__init__.py
  12. 0 pip/{vendor → _vendor}/distlib/_backport/misc.py
  13. 0 pip/{vendor → _vendor}/distlib/_backport/shutil.py
  14. 0 pip/{vendor → _vendor}/distlib/_backport/sysconfig.cfg
  15. 0 pip/{vendor → _vendor}/distlib/_backport/sysconfig.py
  16. 0 pip/{vendor → _vendor}/distlib/_backport/tarfile.py
  17. 0 pip/{vendor → _vendor}/distlib/compat.py
  18. 0 pip/{vendor → _vendor}/distlib/database.py
  19. 0 pip/{vendor → _vendor}/distlib/index.py
  20. 0 pip/{vendor → _vendor}/distlib/locators.py
  21. 0 pip/{vendor → _vendor}/distlib/manifest.py
  22. 0 pip/{vendor → _vendor}/distlib/markers.py
  23. 0 pip/{vendor → _vendor}/distlib/metadata.py
  24. 0 pip/{vendor → _vendor}/distlib/resources.py
  25. 0 pip/{vendor → _vendor}/distlib/scripts.py
  26. BIN pip/{vendor → _vendor}/distlib/t32.exe
  27. BIN pip/{vendor → _vendor}/distlib/t64.exe
  28. 0 pip/{vendor → _vendor}/distlib/util.py
  29. 0 pip/{vendor → _vendor}/distlib/version.py
  30. BIN pip/{vendor → _vendor}/distlib/w32.exe
  31. BIN pip/{vendor → _vendor}/distlib/w64.exe
  32. 0 pip/{vendor → _vendor}/distlib/wheel.py
  33. 0 pip/{vendor → _vendor}/html5lib/LICENSE
  34. 0 pip/{vendor → _vendor}/html5lib/__init__.py
  35. 0 pip/{vendor → _vendor}/html5lib/constants.py
  36. 0 pip/{vendor → _vendor}/html5lib/filters/__init__.py
  37. 0 pip/{vendor → _vendor}/html5lib/filters/_base.py
  38. 0 pip/{vendor → _vendor}/html5lib/filters/alphabeticalattributes.py
  39. 0 pip/{vendor → _vendor}/html5lib/filters/inject_meta_charset.py
  40. 0 pip/{vendor → _vendor}/html5lib/filters/lint.py
  41. 0 pip/{vendor → _vendor}/html5lib/filters/optionaltags.py
  42. 0 pip/{vendor → _vendor}/html5lib/filters/sanitizer.py
  43. 0 pip/{vendor → _vendor}/html5lib/filters/whitespace.py
  44. +1 −1 pip/{vendor → _vendor}/html5lib/html5parser.py
  45. 0 pip/{vendor → _vendor}/html5lib/ihatexml.py
  46. +1 −1 pip/{vendor → _vendor}/html5lib/inputstream.py
  47. 0 pip/{vendor → _vendor}/html5lib/sanitizer.py
  48. 0 pip/{vendor → _vendor}/html5lib/serializer/__init__.py
  49. +1 −1 pip/{vendor → _vendor}/html5lib/serializer/htmlserializer.py
  50. 0 pip/{vendor → _vendor}/html5lib/tokenizer.py
  51. 0 pip/{vendor → _vendor}/html5lib/treebuilders/__init__.py
  52. +1 −1 pip/{vendor → _vendor}/html5lib/treebuilders/_base.py
  53. 0 pip/{vendor → _vendor}/html5lib/treebuilders/dom.py
  54. +1 −1 pip/{vendor → _vendor}/html5lib/treebuilders/etree.py
  55. 0 pip/{vendor → _vendor}/html5lib/treebuilders/etree_lxml.py
  56. 0 pip/{vendor → _vendor}/html5lib/treewalkers/__init__.py
  57. +1 −1 pip/{vendor → _vendor}/html5lib/treewalkers/_base.py
  58. 0 pip/{vendor → _vendor}/html5lib/treewalkers/dom.py
  59. +1 −1 pip/{vendor → _vendor}/html5lib/treewalkers/etree.py
  60. 0 pip/{vendor → _vendor}/html5lib/treewalkers/genshistream.py
  61. +1 −1 pip/{vendor → _vendor}/html5lib/treewalkers/lxmletree.py
  62. 0 pip/{vendor → _vendor}/html5lib/treewalkers/pulldom.py
  63. 0 pip/{vendor → _vendor}/html5lib/trie/__init__.py
  64. 0 pip/{vendor → _vendor}/html5lib/trie/_base.py
  65. +1 −1 pip/{vendor → _vendor}/html5lib/trie/datrie.py
  66. +1 −1 pip/{vendor → _vendor}/html5lib/trie/py.py
  67. 0 pip/{vendor → _vendor}/html5lib/utils.py
  68. 0 pip/{vendor → _vendor}/re-vendor.py
  69. 0 pip/{vendor → _vendor}/requests/__init__.py
  70. 0 pip/{vendor → _vendor}/requests/adapters.py
  71. 0 pip/{vendor → _vendor}/requests/api.py
  72. 0 pip/{vendor → _vendor}/requests/auth.py
  73. 0 pip/{vendor → _vendor}/requests/cacert.pem
  74. 0 pip/{vendor → _vendor}/requests/certs.py
  75. 0 pip/{vendor → _vendor}/requests/compat.py
  76. 0 pip/{vendor → _vendor}/requests/cookies.py
  77. 0 pip/{vendor → _vendor}/requests/exceptions.py
  78. 0 pip/{vendor → _vendor}/requests/hooks.py
  79. 0 pip/{vendor → _vendor}/requests/models.py
  80. 0 pip/{vendor → _vendor}/requests/packages/__init__.py
  81. 0 pip/{vendor → _vendor}/requests/packages/charade/__init__.py
  82. 0 pip/{vendor → _vendor}/requests/packages/charade/big5freq.py
  83. 0 pip/{vendor → _vendor}/requests/packages/charade/big5prober.py
  84. 0 pip/{vendor → _vendor}/requests/packages/charade/chardistribution.py
  85. 0 pip/{vendor → _vendor}/requests/packages/charade/charsetgroupprober.py
  86. 0 pip/{vendor → _vendor}/requests/packages/charade/charsetprober.py
  87. 0 pip/{vendor → _vendor}/requests/packages/charade/codingstatemachine.py
  88. 0 pip/{vendor → _vendor}/requests/packages/charade/compat.py
  89. 0 pip/{vendor → _vendor}/requests/packages/charade/constants.py
  90. 0 pip/{vendor → _vendor}/requests/packages/charade/cp949prober.py
  91. 0 pip/{vendor → _vendor}/requests/packages/charade/escprober.py
  92. 0 pip/{vendor → _vendor}/requests/packages/charade/escsm.py
  93. 0 pip/{vendor → _vendor}/requests/packages/charade/eucjpprober.py
  94. 0 pip/{vendor → _vendor}/requests/packages/charade/euckrfreq.py
  95. 0 pip/{vendor → _vendor}/requests/packages/charade/euckrprober.py
  96. 0 pip/{vendor → _vendor}/requests/packages/charade/euctwfreq.py
  97. 0 pip/{vendor → _vendor}/requests/packages/charade/euctwprober.py
  98. 0 pip/{vendor → _vendor}/requests/packages/charade/gb2312freq.py
  99. 0 pip/{vendor → _vendor}/requests/packages/charade/gb2312prober.py
  100. 0 pip/{vendor → _vendor}/requests/packages/charade/hebrewprober.py
  101. 0 pip/{vendor → _vendor}/requests/packages/charade/jisfreq.py
  102. 0 pip/{vendor → _vendor}/requests/packages/charade/jpcntx.py
  103. 0 pip/{vendor → _vendor}/requests/packages/charade/langbulgarianmodel.py
  104. 0 pip/{vendor → _vendor}/requests/packages/charade/langcyrillicmodel.py
  105. 0 pip/{vendor → _vendor}/requests/packages/charade/langgreekmodel.py
  106. 0 pip/{vendor → _vendor}/requests/packages/charade/langhebrewmodel.py
  107. 0 pip/{vendor → _vendor}/requests/packages/charade/langhungarianmodel.py
  108. 0 pip/{vendor → _vendor}/requests/packages/charade/langthaimodel.py
  109. 0 pip/{vendor → _vendor}/requests/packages/charade/latin1prober.py
  110. 0 pip/{vendor → _vendor}/requests/packages/charade/mbcharsetprober.py
  111. 0 pip/{vendor → _vendor}/requests/packages/charade/mbcsgroupprober.py
  112. 0 pip/{vendor → _vendor}/requests/packages/charade/mbcssm.py
  113. 0 pip/{vendor → _vendor}/requests/packages/charade/sbcharsetprober.py
  114. 0 pip/{vendor → _vendor}/requests/packages/charade/sbcsgroupprober.py
  115. 0 pip/{vendor → _vendor}/requests/packages/charade/sjisprober.py
  116. 0 pip/{vendor → _vendor}/requests/packages/charade/universaldetector.py
  117. 0 pip/{vendor → _vendor}/requests/packages/charade/utf8prober.py
  118. 0 pip/{vendor → _vendor}/requests/packages/urllib3/__init__.py
  119. 0 pip/{vendor → _vendor}/requests/packages/urllib3/_collections.py
  120. 0 pip/{vendor → _vendor}/requests/packages/urllib3/connectionpool.py
  121. 0 pip/{vendor → _vendor}/requests/packages/urllib3/contrib/__init__.py
  122. 0 pip/{vendor → _vendor}/requests/packages/urllib3/contrib/ntlmpool.py
  123. 0 pip/{vendor → _vendor}/requests/packages/urllib3/contrib/pyopenssl.py
  124. 0 pip/{vendor → _vendor}/requests/packages/urllib3/exceptions.py
  125. 0 pip/{vendor → _vendor}/requests/packages/urllib3/fields.py
  126. 0 pip/{vendor → _vendor}/requests/packages/urllib3/filepost.py
  127. 0 pip/{vendor → _vendor}/requests/packages/urllib3/packages/__init__.py
  128. 0 pip/{vendor → _vendor}/requests/packages/urllib3/packages/ordered_dict.py
  129. 0 pip/{vendor → _vendor}/requests/packages/urllib3/packages/six.py
  130. 0 pip/{vendor → _vendor}/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py
  131. 0 pip/{vendor → _vendor}/requests/packages/urllib3/poolmanager.py
  132. 0 pip/{vendor → _vendor}/requests/packages/urllib3/request.py
  133. 0 pip/{vendor → _vendor}/requests/packages/urllib3/response.py
  134. 0 pip/{vendor → _vendor}/requests/packages/urllib3/util.py
  135. 0 pip/{vendor → _vendor}/requests/sessions.py
  136. 0 pip/{vendor → _vendor}/requests/status_codes.py
  137. 0 pip/{vendor → _vendor}/requests/structures.py
  138. 0 pip/{vendor → _vendor}/requests/utils.py
  139. 0 pip/{vendor → _vendor}/six.py
  140. 0 pip/{vendor → _vendor}/vendor.txt
  141. +6 −6 pip/download.py
  142. +2 −2 pip/index.py
  143. +1 −1 pip/log.py
  144. +1 −1 pip/util.py
  145. +0 −8 pip/vendor/__init__.py
  146. +1 −1 setup.cfg
  147. +3 −3 setup.py
File renamed without changes.
@@ -8,7 +8,7 @@ successfully vendor them.
Modifications
=============
-* html5lib has been modified to import six from pip.vendor
+* html5lib has been modified to import six from pip._vendor
Note to Downstream Distributors
@@ -18,7 +18,7 @@ Libraries are vendored/bundled inside of this directory in order to prevent
end users from needing to manually install packages if they accidently remove
something that pip depends on.
-All bundled packages exist in the ``pip.vendor`` namespace, and the versions
+All bundled packages exist in the ``pip._vendor`` namespace, and the versions
(fetched from PyPI) that we use are located in vendor.txt. If you remove
-``pip.vendor.*`` you'll also need to update the import statements that import
+``pip._vendor.*`` you'll also need to update the import statements that import
these packages.
View
@@ -0,0 +1,8 @@
+"""
+pip._vendor is for vendoring dependencies of pip to prevent needing pip to
+depend on something external.
+
+Files inside of pip._vendor should be considered immutable and should only be
+updated to versions from upstream.
+"""
+from __future__ import absolute_import
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import with_metaclass
+from pip._vendor.six import with_metaclass
import types
File renamed without changes.
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
import codecs
import re
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
import gettext
_ = gettext.gettext
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
from ..constants import scopingElements, tableInsertModeElements, namespaces
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
import re
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
import gettext
_ = gettext.gettext
@@ -5,7 +5,7 @@
import re
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
from . import _base
from ..utils import moduleFactoryFactory
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
from lxml import etree
from ..treebuilders.etree import tag_regexp
@@ -1,7 +1,7 @@
from __future__ import absolute_import, division, unicode_literals
from datrie import Trie as DATrie
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
from ._base import Trie as ABCTrie
@@ -1,5 +1,5 @@
from __future__ import absolute_import, division, unicode_literals
-from pip.vendor.six import text_type
+from pip._vendor.six import text_type
from bisect import bisect_left
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -19,12 +19,12 @@
create_download_cache_folder, cache_download)
from pip.vcs import vcs
from pip.log import logger
-from pip.vendor import requests
-from pip.vendor.requests.adapters import BaseAdapter
-from pip.vendor.requests.auth import AuthBase, HTTPBasicAuth
-from pip.vendor.requests.exceptions import InvalidURL
-from pip.vendor.requests.models import Response
-from pip.vendor.requests.structures import CaseInsensitiveDict
+from pip._vendor import requests
+from pip._vendor.requests.adapters import BaseAdapter
+from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
+from pip._vendor.requests.exceptions import InvalidURL
+from pip._vendor.requests.models import Response
+from pip._vendor.requests.structures import CaseInsensitiveDict
__all__ = ['get_file_content',
'is_url', 'url_to_path', 'path_to_url', 'path_to_url2',
View
@@ -15,8 +15,8 @@
from pip.download import PipSession, path_to_url2, url_to_path
from pip.wheel import Wheel, wheel_ext, wheel_setuptools_support
from pip.pep425tags import supported_tags, supported_tags_noarch, get_platform
-from pip.vendor import html5lib, requests
-from pip.vendor.requests.exceptions import SSLError
+from pip._vendor import html5lib, requests
+from pip._vendor.requests.exceptions import SSLError
__all__ = ['PackageFinder']
View
@@ -8,7 +8,7 @@
import pkg_resources
from pip import backwardcompat
-from pip.vendor import colorama
+from pip._vendor import colorama
def _color_wrap(*colors):
View
@@ -14,7 +14,7 @@
console_to_str, user_site, PermissionError)
from pip.locations import site_packages, running_under_virtualenv, virtualenv_no_global
from pip.log import logger
-from pip.vendor.distlib import version
+from pip._vendor.distlib import version
__all__ = ['rmtree', 'display_path', 'backup_dir',
'find_command', 'ask', 'Inf',
View
@@ -1,8 +0,0 @@
-"""
-pip.vendor is for vendoring dependencies of pip to prevent needing pip to
-depend on something external.
-
-Files inside of pip.vendor should be considered immutable and should only be
-updated to versions from upstream.
-"""
-from __future__ import absolute_import
View
@@ -1,5 +1,5 @@
[pytest]
-addopts = --ignore pip/vendor --ignore tests/tests_cache
+addopts = --ignore pip/_vendor --ignore tests/tests_cache
[wheel]
universal=1
View
@@ -67,9 +67,9 @@ def find_version(*file_paths):
license='MIT',
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
package_data={
- 'pip.vendor.requests': ['*.pem'],
- 'pip.vendor.distlib._backport': ['sysconfig.cfg'],
- 'pip.vendor.distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe'],
+ 'pip._vendor.requests': ['*.pem'],
+ 'pip._vendor.distlib._backport': ['sysconfig.cfg'],
+ 'pip._vendor.distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe'],
},
entry_points=dict(console_scripts=['pip=pip:main', 'pip%s=pip:main' % sys.version[:1],
'pip%s=pip:main' % sys.version[:3]]),

0 comments on commit 814514e

Please sign in to comment.