From 0b915befcfe4ef18686ca3b8c16b971767778428 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 12 Apr 2017 13:43:46 +0200 Subject: [PATCH] option to skip syncdb --- fnpdeploy/__init__.py | 3 ++- setup.py | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fnpdeploy/__init__.py b/fnpdeploy/__init__.py index 0aed6df..4a47ab6 100644 --- a/fnpdeploy/__init__.py +++ b/fnpdeploy/__init__.py @@ -293,7 +293,8 @@ def migrate(): print '>>> migrate' require('app_path', 'project_name') with cd(get_django_root_path('current')): - run('%(ve)s/bin/python manage.py syncdb --noinput' % env, pty=True) + if env.get('syncdb', True): + run('%(ve)s/bin/python manage.py syncdb --noinput' % env, pty=True) for app, migration in env.get('migrate_fake', ()): run('%s/bin/python manage.py migrate %s --fake %s' % (env.ve, app, migration), pty=True) run('%(ve)s/bin/python manage.py migrate' % env, pty=True) diff --git a/setup.py b/setup.py index 1d8ad6c..ceef62e 100755 --- a/setup.py +++ b/setup.py @@ -23,10 +23,12 @@ else: setup( name='fnpdeploy', - version='0.2.2', + version='0.2.3', author='Radek Czajka', author_email='radekczajka@nowoczesnapolska.org.pl', - url = '', + maintainer='Jan Szejko', + maintainer_email='jan.szejko@nowoczesnapolska.org.pl', + url='', install_requires=install_requires, packages=packages, package_data=package_data, -- 2.20.1