Esempio n. 1
0
def compile():
    """
    Compile all Rapyd-stuff files where they lie
    """
    # Compile SASS files
    for f in cssdir.glob('*.sass'):
        sh('rapydcss {!s}'.format(f))

    # Compile RapydScript files
    for f in jsdir.glob('*.pyj'):
        jsfile = f.parent/(f.stem + '.js')
        sh('rapydscript {!s} -o {!s} -p'.format(f, jsfile))

    # Compile RapydML files, basics first
    for f in htmldir.glob('*.pyml'):
        if f.name in ['base.pyml', 'ui.pyml']:
            sh('rapydml {!s}'.format(f))

    for f in htmldir.glob('*.pyml'):
        sh('rapydml {!s}'.format(f))
Esempio n. 2
0
def build_webui():

    cwd = os.path.join('flexget', 'ui')

    # Cleanup previous builds
    for folder in ['bower_components' 'node_modules']:
        folder = os.path.join(cwd, folder)
        if os.path.exists(folder):
            shutil.rmtree(folder)

    # Install npm packages
    sh(['npm', 'install'], cwd=cwd)

    # Build the ui
    sh(['bower', 'install'], cwd=cwd)

    # Build the ui
    sh('gulp buildapp', cwd=cwd)
Esempio n. 3
0
def migratedb():
    sh('python manage.py migrate', cwd='webservice/')
Esempio n. 4
0
def runserver():
    sh('python manage.py runserver 0.0.0.0:8000', cwd='webservice/')
Esempio n. 5
0
def test():
    sh('python manage.py test --noinput', cwd='webservice/')
Esempio n. 6
0
def test():
    sh('python ./manage.py test negratec.apps')
Esempio n. 7
0
def ci():
    sh('flake8 negratec')
Esempio n. 8
0
def migration():
    sh('python ./manage.py migrate')
Esempio n. 9
0
def server():
    sh('python ./manage.py runserver')
Esempio n. 10
0
def pdf():
    pdfdir='docs/.build/pdf'
    sh('sphinx-build -b latex docs %s -v' % pdfdir)
    sh('pdflatex *.tex', cwd=pdfdir)
Esempio n. 11
0
def start():
    sh('twistd -n ddgbot') 
Esempio n. 12
0
def install():
    virtual.bootstrap()
    sh('python ./bootstrap-venv.py')