From: Radek Czajka Date: Tue, 30 Sep 2014 13:26:34 +0000 (+0200) Subject: Support for remote Py3 X-Git-Url: https://git.mdrn.pl/fnpdeploy.git/commitdiff_plain/89ae6889d60f869b00c833d85cba81ddfa1392e4 Support for remote Py3 --- diff --git a/fnpdeploy/__init__.py b/fnpdeploy/__init__.py index dc74699..f9c6561 100644 --- a/fnpdeploy/__init__.py +++ b/fnpdeploy/__init__.py @@ -224,6 +224,7 @@ def install_requirements(): require('release', provided_by=[deploy]) require('app_path') if not files.exists('%(app_path)s/ve' % env): + # HERE: maybe venv? require('virtualenv') run('%(virtualenv)s %(app_path)s/ve' % env, pty=True) with cd('%(app_path)s/releases/%(release)s' % env): @@ -234,7 +235,11 @@ def install_requirements(): 'django.db.backends.postgresql_psycopg2': 'psycopg2', 'django.db.backends.mysql': 'MySQL-python', } - databases = run('''DJANGO_SETTINGS_MODULE=%(project_name)s.settings %(app_path)s/ve/bin/python -c 'from django.conf import settings; print " ".join(set([d["ENGINE"] for d in settings.DATABASES.values()]))' ''' % env) + databases = run( + 'DJANGO_SETTINGS_MODULE=%(project_name)s.settings ' + '%(app_path)s/ve/bin/python -c \'' + 'from django.conf import settings;' + 'print(" ".join(set([d["ENGINE"] for d in settings.DATABASES.values()])))\'' % env) for database in databases.split(): if database in database_reqs: # TODO: set pip default pypi diff --git a/setup.py b/setup.py index 26c80b3..71c4a88 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ else: setup( name='fnpdeploy', - version='0.2', + version='0.2.1', author='Radek Czajka', author_email='radekczajka@nowoczesnapolska.org.pl', url = '',