Commits

Eric Larson committed 9db294e

Fix up dev setup. Call paver bootstrap to get started, paver test to test.

This requires paver obviously.

  • Participants
  • Parent commits 1198ea8

Comments (0)

Files changed (4)

 syntax: glob
 *.swp
 *.pyc
+*.egg-info/*
+dist
+build
+lib
+bin
+include

dev_requirements.txt

+pytest
+mock
+webtest
+from paver.easy import sh, task, needs, options, Bunch, consume_args
+
+
+options(
+    venv=Bunch(dir='.')
+)
+
+
+def env_do(tail, **kw):
+    return sh('%s/bin/%s' % (options.venv.dir, tail), **kw)
+
+
+@task
+def virtualenv():
+    sh('virtualenv %s' % options.venv.dir)
+
+
+@task
+@needs(['virtualenv'])
+def bootstrap():
+    env_do('python setup.py develop')
+    env_do('pip install -r dev_requirements.txt')
+
+
+@task
+def clean_env():
+    sh('rm -r lib')
+    sh('rm -r bin')
+    sh('rm -r include')
+
+
+@task
+@consume_args
+def test(args):
+    env_do('py.test %s' % ' '.join(args))
     author_email="eric@ionrock.org",
     url="https://bitbucket.org/elarson/httpcache",
     packages=setuptools.find_packages(),
-    tests_requires=[
-        'pytest',
-        'cherrypy',
+    install_requires=[
+        'requests',
     ],
 )