Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Dump buildout picked versions as a pip compatible requirements.txt file. Fork of buildout.dumprequirements.

Project Description

A simple buildout extension that creates a requirements.txt file for pip.

This is a fork of buildout.requirements which is more or less a copy of buildout.dumprequirements. All credit goes to the authors of that project.

Warning

buildout.dumppickedversions (and therefore also buildout.dumprequirements and also buildout.requirements) does some nasty stuff to get its job done. Namely it monkeypatches zc.buildout.easy_install._log_requirement, zc.buildout.easy_install.Installer._get_dist and logging.shutdown. Because both extensions monkeypatch the same methods, it is currently not possible to use buildout.dumppickedversions and buildout.dumprequirements at the same time. I’m not quite sure how to solve this. Probably we’ll have to support the functionality of both extensions in one package.

Usage

Add buildout.requirements as an extension to the [buildout] section:

[buildout]
extensions = buildout.requirements
dump-requirements-file = requirements.txt
overwrite-requirements-file = true

dump-requirements-file defines the file the requirement list will be written to. If it is undefined the package list will be printed to the console. Setting overwrite-requirements-file to false will prevent buildout.dumprequirements from overwriting an existing file. The setting defaults to true.

Contributors

  • Yves Müller, port to Python 3 and Buildout 2
  • Stefan Foulis, Author of buildout.dumprequirements
  • Mustapha Benali, Author of buildout.dumppickedversions
Release History

Release History

This version
History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
buildout.requirements-0.2.2.tar.gz (3.5 kB) Copy SHA256 Checksum SHA256 Source Jun 2, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting