get travis running

This commit is contained in:
Henning Peters 2015-12-14 22:23:08 +01:00
parent 65d31f3dff
commit 8bc9e3a3e0
2 changed files with 11 additions and 2 deletions

View File

@ -12,7 +12,12 @@ os:
- linux
env:
- PIP_DATE=2014-07-01
- PIP_DATE=2014-10-01
- PIP_DATE=2015-01-01
- PIP_DATE=2015-04-01
- PIP_DATE=2015-07-01
- PIP_DATE=2015-10-01
install:
- python pip-date.py $PIP_DATE pip setuptools wheel six

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
from __future__ import print_function
import urllib
import json
import re
import sys
@ -8,12 +7,17 @@ from bisect import bisect
from datetime import datetime
from datetime import timedelta
try:
from urllib.request import urlopen
except ImportError:
from urllib import urlopen
from pip.commands.install import InstallCommand
def get_releases(package_name):
url = 'https://pypi.python.org/pypi/%s/json' % package_name
return json.load(urllib.urlopen(url))['releases']
return json.loads(urlopen(url).read().decode('utf8'))['releases']
def parse_iso8601(s):