mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Use vendored Python dependencies
This commit is contained in:
parent
567c2ba0d9
commit
c31b4ad095
5 changed files with 11 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
target
|
target
|
||||||
|
*pyc
|
||||||
|
|
|
@ -21,7 +21,7 @@ tasks:
|
||||||
|
|
||||||
payload:
|
payload:
|
||||||
maxRunTime: 600
|
maxRunTime: 600
|
||||||
image: "python:2.7.15-stretch"
|
image: "buildpack-deps:bionic-scm"
|
||||||
features:
|
features:
|
||||||
taskclusterProxy: true
|
taskclusterProxy: true
|
||||||
env:
|
env:
|
||||||
|
@ -35,5 +35,4 @@ tasks:
|
||||||
git clone ${event.repository.clone_url} repo &&
|
git clone ${event.repository.clone_url} repo &&
|
||||||
cd repo &&
|
cd repo &&
|
||||||
git checkout ${event.after} &&
|
git checkout ${event.after} &&
|
||||||
python2.7 -m pip install taskcluster &&
|
python2.7 decision-task/run.py
|
||||||
python2.7 decision-task.py
|
|
||||||
|
|
1
decision-task/requirements.txt
Normal file
1
decision-task/requirements.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
taskcluster==4.0.1
|
|
@ -1,6 +1,10 @@
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "vendored"))
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import taskcluster
|
import taskcluster
|
||||||
|
|
3
decision-task/vendor.sh
Executable file
3
decision-task/vendor.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd $(dirname $0)
|
||||||
|
python2 -m pip install -r requirements.txt --target vendored
|
Loading…
Add table
Add a link
Reference in a new issue