Ideas to improve my pip workflow

  • Generate a true list of deps from top-level deps using pip-compile.
  • Rebuild virtual envs automatically based on the actual requirements file(s) (possibly using pip-sync).
  • Backup all dependencies in binary form:

    pip install –download DIR -r requirements.txt

    To install them again:

    pip install –no-index –find-links=[file://]DIR -r requirements.txt

  • Run the backup process automatically, via a git hook.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s