Skip to main content

A script to help creating and maintaining frozen requirements for pip

Project description

freeze-requirements

A script to help creating and maintaining frozen requirements for pip.

It is inspired by this Mozilla dev team blog post, who recently switched to pip for deployment.

Basically it downloads packages from one or more pip ‘normal’ requirements files (the ones you use for development, containing only the ‘top level’ dependencies), and outputs the corresponding list of requirements to copy/paste in your frozen production requirements files.

It can also upload the packages to your private pypi repository, and even download the packages from there to save bandwidth.

Installation

Install from pypi:

$ sudo pip install freeze-requirements

Or from source:

$ sudo ./setup.py install

If you want to use --upload you also need fabric:

$ sudo pip install fabric

Examples

Download packages locally:

freeze-requirements requirements.txt --output /tmp/packages

Process multiple requirements files at once:

freeze-requirements requirements.txt requirements2.txt --output /tmp/packages

Download packages and upload them to a remote host:

freeze-requirements requirements.txt --upload user@private-pypi.example.com:/home/pypi/packages

Same as above but download packages from the remote host. This may be faster as there is no need to upload the packages from your machine and the remote host may have a faster internet connection (pip needs to be installed on the remote host):

freeze-requirements requirements.txt --upload user@private-pypi.example.com:/home/pypi/packages --remote-pip

News

0.2a1

Release date: UNRELEASED

  • Example news entry for the in-development version

0.1

Release date: 15-Mar-2010

  • Example news entry for a released version

Project details


Release history Release notifications

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4

History Node

0.3.2

History Node

0.3.1

This version
History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
freeze-requirements-0.3.tar.gz (6.9 kB) Copy SHA256 hash SHA256 Source None May 15, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page