replace invoke with makefiles
authorKenneth Reitz <me@kennethreitz.com>
Thu, 24 Oct 2013 13:53:00 +0000 (09:53 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Thu, 24 Oct 2013 13:53:00 +0000 (09:53 -0400)
Makefile [new file with mode: 0644]
tasks.py [deleted file]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..79d75a9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+init:
+       pip install -r requirements.txt
+
+test:
+       py.test
+
+certs:
+       curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem
+
+
+deps: urllib3 charade
+
+urllib3:
+       rm -fr requests/packages/urllib3
+       git clone https://github.com/shazow/urllib3.git
+       mv urllib3/urllib3 requests/packages/
+       rm -fr urllib3
+
+charade:
+       rm -fr requests/packages/charade
+       git clone https://github.com/sigmavirus24/charade.git
+       mv charade/charade requests/packages/
+       rm -fr charade
\ No newline at end of file
diff --git a/tasks.py b/tasks.py
deleted file mode 100644 (file)
index 8e12cc8..0000000
--- a/tasks.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- coding: utf-8 -*-
-
-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)