Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add default pavement, fix devel requirements

  • Loading branch information...
commit 4ee2e5b3046fd408b6ea98bfb26a0f22a5a5af12 1 parent a9b42b2
Lukas Linhart authored
Showing with 68 additions and 0 deletions.
  1. +66 −0 pavement.py
  2. +2 −0  requirements.txt
View
66 pavement.py
@@ -0,0 +1,66 @@
+import os
+import sys
+from os.path import join, pardir, abspath, dirname, split
+
+from paver.easy import *
+from paver.setuputils import setup
+
+from setuptools import find_packages
+
+VERSION = (0, 1, 4)
+__version__ = VERSION
+__versionstr__ = '.'.join(map(str, VERSION))
+
+setup(
+ name = 'djangomarkup',
+ version = __versionstr__,
+ description = 'Support for various markup languages in Django applications',
+ long_description = '\n'.join((
+ '(TODO)',
+ )),
+ author = 'centrum holdings s.r.o',
+ license = 'BSD',
+
+ packages = find_packages(
+ where = '.',
+ exclude = ('docs', 'tests')
+ ),
+
+ include_package_data = True,
+)
+
+
+options(
+ citools = Bunch(
+ rootdir = abspath(dirname(__file__))
+ ),
+)
+
+try:
+ from citools.pavement import *
+except ImportError:
+ pass
+
+@task
+def install_dependencies():
+ sh('pip install -r requirements.txt')
+
+@task
+def bootstrap():
+ options.virtualenv = {'packages_to_install' : ['pip']}
+ call_task('paver.virtual.bootstrap')
+ sh("python bootstrap.py")
+ path('bootstrap.py').remove()
+
+
+ print '*'*80
+ if sys.platform in ('win32', 'winnt'):
+ print "* Before running other commands, You now *must* run %s" % os.path.join("bin", "activate.bat")
+ else:
+ print "* Before running other commands, You now *must* run source %s" % os.path.join("bin", "activate")
+ print '*'*80
+
+@task
+@needs('install_dependencies')
+def prepare():
+ """ Prepare complete environment """
View
2  requirements.txt
@@ -4,3 +4,5 @@ markdown2
nose
djangosanetesting
+git+http://github.com/ella/citools.git#egg=citools
+
Please sign in to comment.
Something went wrong with that request. Please try again.