Skip to main content

Manages pip requirements files for multiple environments, e.g. production and development

Project description

Build Status Coverage Status PyPI Version Supported Versions Downloads

pipwrap simplifies handling Python project requirements across multiple environments. pip freeze > requirements.txt gets your project started, but do you really want mock, coverage, etc. installed on your production server? If you’ve ever found yourself sifting through the output of pip freeze trying to figure out what packages you’ve installed but didn’t yet add to one of your requirements files, then pipwrap is the tool for you.

Features

  • Inspect a list of packages and create or update requirements files

  • Remove stray packages in virtualenv

Installation

You can get pipwrap from PyPI with:

pip install pipwrap

The development version can be installed with:

pip install -e git://github.com/jessamynsmith/pipwrap.git#egg=pipwrap

If you are developing locally, your version can be installed from the working directory with:

python setup.py.install

Usage

Getting Started with pipwrap

  1. (Optional) Create requirements files with a list of your packages

  2. Interactively populate requirements files from currently installed packages:

    pipwrap -r

  3. Create a top-level requirements.txt file that points to your production requirements, e.g. “-r production.txt”

Keeping requirements up to date with pipwrap

  1. Interactively update requirements files from currently installed packages:

    pipwrap -r

  2. Remove stray packages in virtualenv:

    pipwrap -x

Development

Fork the project on github and git clone your fork, e.g.:

git clone https://github.com/<username>/pipwrap.git

Create a virtualenv and install dependencies:

mkvirtualenv pipwrap
pip install -r requirements/package.txt -r requirements/test.txt

Run tests with coverage (should be 100%) and check code style:

coverage run -m nose
coverage report -m
flake8

Verify all supported Python versions:

pip install tox
tox

Install your local copy:

python setup.py.install

Project details


Download files

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

Source Distribution

pipwrap-0.1.1.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file pipwrap-0.1.1.tar.gz.

File metadata

  • Download URL: pipwrap-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pipwrap-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8191d7684357268a9817081ba30f0d005b16889df9d806ef2e804e8d95966446
MD5 35a9a6ebfc8894b84cf8c66c63ce8a3c
BLAKE2b-256 9e7023f4a7428208fad5b48c8ad42b864870bec2d90a3bac29d610ef9c6d167e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page