Skip to content

Commit

Permalink
Merge pull request jazzband#70 from blueyed/https-for-pypi
Browse files Browse the repository at this point in the history
Use https for pypi.python.org (avoiding a redirect)
  • Loading branch information
nvie committed Jan 4, 2014
2 parents 2806478 + 761a1ca commit 49f07c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/pip-review
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def load_pkg_info(pkg_name):
logger.debug('Checking for updates of {0}'.format(pkg_name))

req = urllib_request.Request(
'http://pypi.python.org/pypi/{0}/json'.format(pkg_name))
'https://pypi.python.org/pypi/{0}/json'.format(pkg_name))
try:
handler = urllib_request.urlopen(req)
except urllib_request.HTTPError:
Expand All @@ -86,7 +86,7 @@ def guess_pkg_name(pkg_name):
logger = logging.getLogger(u'pip-review')
logger.debug('Try to guess package {0} name on PyPI.'.format(pkg_name))
req = urllib_request.Request(
'http://pypi.python.org/simple/{0}/'.format(pkg_name))
'https://pypi.python.org/simple/{0}/'.format(pkg_name))
try:
handler = urllib_request.urlopen(req)
except urllib_request.HTTPError:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_dependencies():
platforms='any',
install_requires=get_dependencies(),
classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
# As from https://pypi.python.org/pypi?%3Aaction=list_classifiers
#'Development Status :: 1 - Planning',
#'Development Status :: 2 - Pre-Alpha',
#'Development Status :: 3 - Alpha',
Expand Down

0 comments on commit 49f07c9

Please sign in to comment.