mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
get buildbot running
This commit is contained in:
parent
bcec36302c
commit
b6d79c19cd
11
.travis.yml
11
.travis.yml
|
@ -12,19 +12,8 @@ os:
|
|||
- linux
|
||||
|
||||
env:
|
||||
- PIP_DATE=2015-01-01 PIP=1 INSTALL=0 DEVELOP=0
|
||||
- PIP_DATE=2015-04-01 PIP=1 INSTALL=0 DEVELOP=0
|
||||
- PIP_DATE=2015-07-01 PIP=1 INSTALL=0 DEVELOP=0
|
||||
- PIP_DATE=2015-10-01 PIP=1 INSTALL=0 DEVELOP=0
|
||||
|
||||
- PIP_DATE=2015-01-01 PIP=0 INSTALL=1 DEVELOP=0
|
||||
- PIP_DATE=2015-04-01 PIP=0 INSTALL=1 DEVELOP=0
|
||||
- PIP_DATE=2015-07-01 PIP=0 INSTALL=1 DEVELOP=0
|
||||
- PIP_DATE=2015-10-01 PIP=0 INSTALL=1 DEVELOP=0
|
||||
|
||||
- PIP_DATE=2015-01-01 PIP=0 INSTALL=0 DEVELOP=1
|
||||
- PIP_DATE=2015-04-01 PIP=0 INSTALL=0 DEVELOP=1
|
||||
- PIP_DATE=2015-07-01 PIP=0 INSTALL=0 DEVELOP=1
|
||||
- PIP_DATE=2015-10-01 PIP=0 INSTALL=0 DEVELOP=1
|
||||
|
||||
install:
|
||||
|
|
23
pip-date.py
23
pip-date.py
|
@ -18,7 +18,7 @@ from pip import get_installed_distributions
|
|||
|
||||
|
||||
def get_releases(package_name):
|
||||
url = 'https://pypi.python.org/pypi/%s/json' % package_name
|
||||
url = 'http://pypi.python.org/pypi/%s/json' % package_name
|
||||
return json.loads(urlopen(url).read().decode('utf8'))['releases']
|
||||
|
||||
|
||||
|
@ -50,17 +50,18 @@ installed_packages = [
|
|||
package.project_name not in ('pip', 'setuptools'))
|
||||
]
|
||||
|
||||
pip = UninstallCommand()
|
||||
options, args = pip.parse_args(installed_packages)
|
||||
options.yes = True
|
||||
if installed_packages:
|
||||
pip = UninstallCommand()
|
||||
options, args = pip.parse_args(installed_packages)
|
||||
options.yes = True
|
||||
|
||||
try:
|
||||
pip.run(options, args)
|
||||
except OSError as e:
|
||||
if e.errno != 13:
|
||||
raise e
|
||||
print("You lack permissions to uninstall this package. Perhaps run with sudo? Exiting.")
|
||||
exit(13)
|
||||
try:
|
||||
pip.run(options, args)
|
||||
except OSError as e:
|
||||
if e.errno != 13:
|
||||
raise e
|
||||
print("You lack permissions to uninstall this package. Perhaps run with sudo? Exiting.")
|
||||
exit(13)
|
||||
|
||||
|
||||
date = parse_iso8601(sys.argv[1])
|
||||
|
|
Loading…
Reference in New Issue
Block a user