From fcbb32f30e733e05b885e4eed15ec9021a438329 Mon Sep 17 00:00:00 2001 From: Ralf Schmitt Date: Wed, 29 May 2013 00:32:33 +0200 Subject: [PATCH] workaround broken xmlrpc api on pypi.python.org by using HTTPS http://pypi.python.org/pypi/ doesn't work with HTTP/1.0 at the moment. switching to HTTPS solves that. --- pypiserver/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypiserver/manage.py b/pypiserver/manage.py index 646c7f7..b4645ad 100644 --- a/pypiserver/manage.py +++ b/pypiserver/manage.py @@ -95,7 +95,7 @@ def find_updates(pkgset, stable_only=True): sys.stdout.write("checking %s packages for newer version\n" % len(latest_pkgs),) need_update = set() - pypi = make_pypi_client("http://pypi.python.org/pypi/") + pypi = make_pypi_client("https://pypi.python.org/pypi/") for count, pkg in enumerate(latest_pkgs): if count % 40 == 0: @@ -129,7 +129,7 @@ def update(pkgset, destdir=None, dry_run=False, stable_only=True): for pkg in sorted(need_update, key=lambda x: x.pkgname): sys.stdout.write("# update %s from %s to %s\n" % (pkg.pkgname, pkg.replaces.version, pkg.version)) - cmd = ["pip", "-q", "install", "--no-deps", "-i", "http://pypi.python.org/simple", + cmd = ["pip", "-q", "install", "--no-deps", "-i", "https://pypi.python.org/simple", "-d", destdir or os.path.dirname(pkg.replaces.fn), "%s==%s" % (pkg.pkgname, pkg.version)]