Use vendored Python dependencies

This commit is contained in:
Simon Sapin 2018-08-30 15:53:12 +02:00
parent 567c2ba0d9
commit c31b4ad095
5 changed files with 11 additions and 3 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
target
*pyc

View file

@ -21,7 +21,7 @@ tasks:
payload:
maxRunTime: 600
image: "python:2.7.15-stretch"
image: "buildpack-deps:bionic-scm"
features:
taskclusterProxy: true
env:
@ -35,5 +35,4 @@ tasks:
git clone ${event.repository.clone_url} repo &&
cd repo &&
git checkout ${event.after} &&
python2.7 -m pip install taskcluster &&
python2.7 decision-task.py
python2.7 decision-task/run.py

View file

@ -0,0 +1 @@
taskcluster==4.0.1

View file

@ -1,6 +1,10 @@
# coding: utf8
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "vendored"))
import json
import taskcluster

3
decision-task/vendor.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cd $(dirname $0)
python2 -m pip install -r requirements.txt --target vendored