summaryrefslogtreecommitdiff
path: root/tasks.py
blob: 47443e619e38d0bfe1b27b19aca3c882a4201706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-

print 'TESTING TESTING ONE TWO THREE'




import requests
from invoke import run, task

@task
def test():
    run('py.test', pty=True)

@task
def deps():
    print('Vendoring urllib3...')

    run('rm -fr requests/packages/urllib3')
    run('git clone https://github.com/shazow/urllib3.git')
    run('mv urllib3/urllib3 requests/packages/')
    run('rm -fr urllib3')

    print('Vendoring Charade...')

    run('rm -fr requests/packages/charade')
    run('git clone https://github.com/sigmavirus24/charade.git')
    run('mv charade/charade requests/packages/')
    run('rm -fr charade')

@task
def certs():
    print('Grabbing latest CA Bundle...')
    r = requests.get('https://raw.github.com/kennethreitz/certifi/master/certifi/cacert.pem')

    with open('requests/cacert.pem', 'w') as f:
        f.write(r.content)