mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-21 15:20:59 +00:00
729e790ef4
Signed-off-by: Dan Ryan <dan@danryan.co>
45 lines
2.0 KiB
Diff
45 lines
2.0 KiB
Diff
diff --git a/pipenv/patched/notpip/_vendor/distlib/index.py b/pipenv/patched/notpip/_vendor/distlib/index.py
|
|
index 2406be21..7a87cdcf 100644
|
|
--- a/pipenv/patched/notpip/_vendor/distlib/index.py
|
|
+++ b/pipenv/patched/notpip/_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/patched/notpip/_vendor/distlib/locators.py b/pipenv/patched/notpip/_vendor/distlib/locators.py
|
|
index 5c655c3e..a7ed9469 100644
|
|
--- a/pipenv/patched/notpip/_vendor/distlib/locators.py
|
|
+++ b/pipenv/patched/notpip/_vendor/distlib/locators.py
|
|
@@ -36,7 +36,7 @@ logger = logging.getLogger(__name__)
|
|
HASHER_HASH = re.compile(r'^(\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):
|
|
"""
|
|
@@ -197,7 +197,7 @@ class Locator(object):
|
|
is_downloadable = basename.endswith(self.downloadable_extensions)
|
|
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_downloadable, is_wheel, compatible, basename)
|
|
|
|
def prefer_url(self, url1, url2):
|
|
@@ -1049,7 +1049,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')
|
|
|