# HG changeset patch # User Peter Sanchez # Date 1477344403 25200 # Mon Oct 24 14:26:43 2016 -0700 # Node ID 046529367db260e4ffce1ee3426891325c2b1db5 # Parent 4ba0d1fa64c01d3d4d9aad6423096c0a30b546de Updating for newer pip versions diff --git a/djeploy/deploy.py b/djeploy/deploy.py --- a/djeploy/deploy.py +++ b/djeploy/deploy.py @@ -30,7 +30,7 @@ def fail_cleanup(release_dir=None): ''' If your VERY LAST deploy failed, call this to clean up the - mess left behind. It will only remove the most recent + mess left behind. It will only remove the most recent release directory. BE CAREFUL USING THIS. ''' release_dir = get_release_dir(release_dir) @@ -59,7 +59,7 @@ @task def remove_old_releases(release_dir=None): ''' - Remove oldest releases past the ammount passed + Remove oldest releases past the ammount passed in with the "num_releases" variable. Default 5. ''' opts = get_env('num_releases') @@ -114,7 +114,7 @@ ''' opts = get_env('env_path') env_path = opts['env_path'] - + releases = get_releases_list(release_dir) if version not in releases: command.abort('Version "%s" is not a deployed release!' % version) @@ -183,9 +183,9 @@ cmd += ' install -r %s' % req_path if cache is not None: - # If cache directory doesn't exist, pip should + # If cache directory doesn't exist, pip should # create it for you - cmd += ' --download-cache=%s' % cache + cmd += ' --cache-dir=%s' % cache with command.cd(virtual_env_path): command.run(cmd)