Skip to content

Realign pip/_vendor with vendor.txt #4096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pip/_vendor/appdirs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Dev Notes:
# - MSDN on where to store app data files:
# http://support.microsoft.com/default.aspx?scid=kb;en-us;310294#XSLTH3194121123120121120120
# - macOS: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/index.html
# - Mac OS X: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/index.html
# - XDG spec for Un*x: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

__version_info__ = (1, 4, 0)
Expand All @@ -30,7 +30,7 @@
os_name = platform.java_ver()[3][0]
if os_name.startswith('Windows'): # "Windows XP", "Windows 7", etc.
system = 'win32'
elif os_name.startswith('Mac'): # "macOS", etc.
elif os_name.startswith('Mac'): # "Mac OS X", etc.
system = 'darwin'
else: # "Linux", "SunOS", "FreeBSD", etc.
# Setting this to "linux2" is not ideal, but only Windows or Mac
Expand Down Expand Up @@ -64,7 +64,7 @@ def user_data_dir(appname=None, appauthor=None, version=None, roaming=False):
for a discussion of issues.

Typical user data directories are:
macOS: ~/Library/Application Support/<AppName>
Mac OS X: ~/Library/Application Support/<AppName>
Unix: ~/.local/share/<AppName> # or in $XDG_DATA_HOME, if defined
Win XP (not roaming): C:\Documents and Settings\<username>\Application Data\<AppAuthor>\<AppName>
Win XP (roaming): C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>
Expand Down Expand Up @@ -118,7 +118,7 @@ def site_data_dir(appname=None, appauthor=None, version=None, multipath=False):
if XDG_DATA_DIRS is not set

Typical user data directories are:
macOS: /Library/Application Support/<AppName>
Mac OS X: /Library/Application Support/<AppName>
Unix: /usr/local/share/<AppName> or /usr/share/<AppName>
Win XP: C:\Documents and Settings\All Users\Application Data\<AppAuthor>\<AppName>
Vista: (Fail! "C:\ProgramData" is a hidden *system* directory on Vista.)
Expand Down Expand Up @@ -185,7 +185,7 @@ def user_config_dir(appname=None, appauthor=None, version=None, roaming=False):
for a discussion of issues.

Typical user data directories are:
macOS: same as user_data_dir
Mac OS X: same as user_data_dir
Unix: ~/.config/<AppName> # or in $XDG_CONFIG_HOME, if defined
Win *: same as user_data_dir

Expand Down Expand Up @@ -223,7 +223,7 @@ def site_config_dir(appname=None, appauthor=None, version=None, multipath=False)
returned, or '/etc/xdg/<AppName>', if XDG_CONFIG_DIRS is not set

Typical user data directories are:
macOS: same as site_data_dir
Mac OS X: same as site_data_dir
Unix: /etc/xdg/<AppName> or $XDG_CONFIG_DIRS[i]/<AppName> for each value in
$XDG_CONFIG_DIRS
Win *: same as site_data_dir
Expand Down Expand Up @@ -273,7 +273,7 @@ def user_cache_dir(appname=None, appauthor=None, version=None, opinion=True):
discussion below.

Typical user cache directories are:
macOS: ~/Library/Caches/<AppName>
Mac OS X: ~/Library/Caches/<AppName>
Unix: ~/.cache/<AppName> (XDG default)
Win XP: C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>\Cache
Vista: C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>\Cache
Expand Down Expand Up @@ -330,7 +330,7 @@ def user_log_dir(appname=None, appauthor=None, version=None, opinion=True):
base cache dir for Unix. See discussion below.

Typical user cache directories are:
macOS: ~/Library/Logs/<AppName>
Mac OS X: ~/Library/Logs/<AppName>
Unix: ~/.cache/<AppName>/log # or under $XDG_CACHE_HOME if defined
Win XP: C:\Documents and Settings\<username>\Local Settings\Application Data\<AppAuthor>\<AppName>\Logs
Vista: C:\Users\<username>\AppData\Local\<AppAuthor>\<AppName>\Logs
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/distlib/_backport/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def get_config_vars(*args):
major_version = int(kernel_version.split('.')[0])

if major_version < 8:
# On macOS before 10.4, check if -arch and -isysroot
# On Mac OS X before 10.4, check if -arch and -isysroot
# are in CFLAGS or LDFLAGS and remove them if they are.
# This is needed when building extensions on a 10.3 system
# using a universal build of python.
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/distlib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def in_venv():
def get_executable():
# The __PYVENV_LAUNCHER__ dance is apparently no longer needed, as
# changes to the stub launcher mean that sys.executable always points
# to the stub on macOS
# to the stub on OS X
# if sys.platform == 'darwin' and ('__PYVENV_LAUNCHER__'
# in os.environ):
# result = os.environ['__PYVENV_LAUNCHER__']
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/html5lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Example usage:

import html5lib
from pip._vendor import html5lib
f = open("my_document.html")
tree = html5lib.parse(f)
"""
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/html5lib/filters/alphabeticalattributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from pip._vendor.ordereddict import OrderedDict


class Filter(base.Filter):
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/html5lib/treewalkers/etree.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from collections import OrderedDict
except ImportError:
try:
from ordereddict import OrderedDict
from pip._vendor.ordereddict import OrderedDict
except ImportError:
OrderedDict = dict

Expand Down
4 changes: 1 addition & 3 deletions pip/_vendor/packaging/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
import platform
import sys

from pip._vendor.pyparsing import (
ParseException, ParseResults, stringStart, stringEnd,
)
from pip._vendor.pyparsing import ParseException, ParseResults, stringStart, stringEnd
from pip._vendor.pyparsing import ZeroOrMore, Group, Forward, QuotedString
from pip._vendor.pyparsing import Literal as L # noqa

Expand Down
4 changes: 1 addition & 3 deletions pip/_vendor/packaging/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
import string
import re

from pip._vendor.pyparsing import (
stringStart, stringEnd, originalTextFor, ParseException
)
from pip._vendor.pyparsing import stringStart, stringEnd, originalTextFor, ParseException
from pip._vendor.pyparsing import ZeroOrMore, Word, Optional, Regex, Combine
from pip._vendor.pyparsing import Literal as L # noqa
from pip._vendor.six.moves.urllib import parse as urlparse
Expand Down
1 change: 0 additions & 1 deletion pip/_vendor/pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
__import__('pip._vendor.packaging.requirements')
__import__('pip._vendor.packaging.markers')


if (3, 0) < sys.version_info < (3, 3):
msg = (
"Support for Python 3.0-3.2 has been dropped. Future versions "
Expand Down
6 changes: 3 additions & 3 deletions pip/_vendor/pyparsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
(L{'+'<ParserElement.__add__>} operator gives L{And} expressions, strings are auto-converted to
L{Literal} expressions)::

from pyparsing import Word, alphas
from pip._vendor.pyparsing import Word, alphas

# define grammar of a greeting
greet = Word(alphas) + "," + Word(alphas) + "!"
Expand Down Expand Up @@ -86,7 +86,7 @@ class names, and the use of '+', '|' and '^' operators.
from collections import OrderedDict as _OrderedDict
except ImportError:
try:
from ordereddict import OrderedDict as _OrderedDict
from pip._vendor.ordereddict import OrderedDict as _OrderedDict
except ImportError:
_OrderedDict = None

Expand Down Expand Up @@ -1557,7 +1557,7 @@ def enablePackrat(cache_size_limit=128):
after importing pyparsing.

Example::
import pyparsing
from pip._vendor import pyparsing
pyparsing.ParserElement.enablePackrat()
"""
if not ParserElement._packratEnabled:
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

import ssl
import select
import six
from pip._vendor import six

from .. import connection
from .. import util
Expand Down
2 changes: 1 addition & 1 deletion pip/_vendor/requests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def should_bypass_proxies(url):

# If the system proxy settings indicate that this URL should be bypassed,
# don't proxy.
# The proxy_bypass function is incredibly buggy on macOS in early versions
# The proxy_bypass function is incredibly buggy on OS X in early versions
# of Python 2.6, so allow this call to fail. Only catch the specific
# exceptions we've seen, though: this call failing in other ways can reveal
# legitimate problems.
Expand Down