mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-21 15:20:59 +00:00
828269f3f0
Signed-off-by: Dan Ryan <dan@danryan.co>
68 lines
2.8 KiB
Diff
68 lines
2.8 KiB
Diff
diff --git a/pipenv/vendor/pip9/_vendor/distlib/index.py b/pipenv/vendor/pip9/_vendor/distlib/index.py
|
|
index 6803dd2..25b96f9 100644
|
|
--- a/pipenv/vendor/pip9/_vendor/distlib/index.py
|
|
+++ b/pipenv/vendor/pip9/_vendor/distlib/index.py
|
|
@@ -22,7 +22,7 @@ from .util import cached_property, zip_dir, ServerProxy
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
-DEFAULT_INDEX = 'https://pypi.python.org/pypi'
|
|
+DEFAULT_INDEX = 'https://pypi.org/pypi'
|
|
DEFAULT_REALM = 'pypi'
|
|
|
|
class PackageIndex(object):
|
|
diff --git a/pipenv/vendor/pip9/_vendor/distlib/locators.py b/pipenv/vendor/pip9/_vendor/distlib/locators.py
|
|
index 14789ef..c25f629 100644
|
|
--- a/pipenv/vendor/pip9/_vendor/distlib/locators.py
|
|
+++ b/pipenv/vendor/pip9/_vendor/distlib/locators.py
|
|
@@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
|
|
HASHER_HASH = re.compile('^(\w+)=([a-f0-9]+)')
|
|
CHARSET = re.compile(r';\s*charset\s*=\s*(.*)\s*$', re.I)
|
|
HTML_CONTENT_TYPE = re.compile('text/html|application/x(ht)?ml')
|
|
-DEFAULT_INDEX = 'https://pypi.python.org/pypi'
|
|
+DEFAULT_INDEX = 'https://pypi.org/pypi'
|
|
|
|
def get_all_distribution_names(url=None):
|
|
"""
|
|
@@ -193,7 +193,7 @@ class Locator(object):
|
|
is_wheel = basename.endswith('.whl')
|
|
if is_wheel:
|
|
compatible = is_compatible(Wheel(basename), self.wheel_tags)
|
|
- return (t.scheme != 'https', 'pypi.python.org' in t.netloc,
|
|
+ return (t.scheme != 'https', 'pypi.org' in t.netloc,
|
|
is_wheel, compatible, basename)
|
|
|
|
def prefer_url(self, url1, url2):
|
|
@@ -1037,7 +1037,7 @@ class AggregatingLocator(Locator):
|
|
# versions which don't conform to PEP 426 / PEP 440.
|
|
default_locator = AggregatingLocator(
|
|
JSONLocator(),
|
|
- SimpleScrapingLocator('https://pypi.python.org/simple/',
|
|
+ SimpleScrapingLocator('https://pypi.org/simple/',
|
|
timeout=3.0),
|
|
scheme='legacy')
|
|
|
|
diff --git a/pipenv/vendor/pip9/index.py b/pipenv/vendor/pip9/index.py
|
|
index 1826922..3a50299 100644
|
|
--- a/pipenv/vendor/pip9/index.py
|
|
+++ b/pipenv/vendor/pip9/index.py
|
|
@@ -881,7 +881,7 @@ class Link(object):
|
|
|
|
def __init__(self, url, comes_from=None, requires_python=None):
|
|
"""
|
|
- Object representing a parsed link from https://pypi.python.org/simple/*
|
|
+ Object representing a parsed link from https://pypi.org/simple/*
|
|
|
|
url:
|
|
url of the resource pointed to (href of the link)
|
|
diff --git a/pipenv/vendor/pip9/models/index.py b/pipenv/vendor/pip9/models/index.py
|
|
index db32428..25fd488 100644
|
|
--- a/pipenv/vendor/pip9/models/index.py
|
|
+++ b/pipenv/vendor/pip9/models/index.py
|
|
@@ -13,4 +13,4 @@ class Index(object):
|
|
return urllib_parse.urljoin(self.url, path)
|
|
|
|
|
|
-PyPI = Index('https://pypi.python.org/')
|
|
+PyPI = Index('https://pypi.org/')
|