Commits

Mikhail Korobov committed ee7fbfc

Disable pip.conf uploading. See #14.

Comments (0)

Files changed (2)

fab_deploy/deploy.py

 from fab_deploy import vcs
 
 
-__all__ = ['full_deploy', 'deploy_project', 'make_clone', 'update_django_config', 'up',
-           'setup_web_server', 'push', 'undeploy']
+__all__ = ['full_deploy', 'deploy_project', 'make_clone',
+           'update_django_config', 'up', 'setup_web_server', 'push',
+           'undeploy']
 
 
 def full_deploy():
     virtualenv.virtualenv_create()
     make_clone()
 
-    utils.upload_config_template('pip.conf', env.conf.HOME_DIR + '/.pip/pip.conf', check_existence=True)
+#    virtualenv.pip_setup_conf()
     virtualenv.pip_install(env.conf.PIP_REQUIREMENTS, restart=False)
 
     setup_web_server()
 
 def update_django_config(restart=True):
     """ Updates :file:`config.py` on server (using :file:`config.server.py`) """
-    files.upload_template(utils._project_path(env.conf.REMOTE_CONFIG_TEMPLATE),
-                    utils._remote_project_path(env.conf.LOCAL_CONFIG), env.conf, True)
+    files.upload_template(
+        utils._project_path(env.conf.REMOTE_CONFIG_TEMPLATE),
+        utils._remote_project_path(env.conf.LOCAL_CONFIG), env.conf, True
+    )
     if restart:
         apache.touch()
 

fab_deploy/virtualenv.py

 from fab_deploy import utils
 
 
-__all__ = ['pip', 'pip_install', 'pip_update']
+__all__ = ['pip', 'pip_install', 'pip_update'] # , 'pip_setup_conf']
 
 
 @utils.inside_src
     if restart:
         apache.touch()
 
+#def pip_setup_conf():
+#    """ Sets up pip.conf file """
+#    utils.upload_config_template('pip.conf',
+#        env.conf.HOME_DIR + '/.pip/pip.conf', check_existence=True)
+
 def virtualenv_create():
     run('mkdir -p envs')
     run('mkdir -p src')