Skip to main content
Help us improve Python packaging – donate today!

Setuptools extension for installing requirements

Project Description

Pip Setuptools Extension

|Version| |Downloads| |Status| |License|

A `setuptools`_ extension that installs requirements based on `pip`_
requirements files.

Wait... Why? What??

Installing runtime dependencies is already handled by setuptools right?
It's as easy as running ``python develop``?! Not quite...

** is a great tool and the *develop* command is useful for setting
up basic development and installing the dependencies identified by the
``setup_requires`` keyword. What it does not do is install any tools that
are used for actually hacking on the code base. Many projects include a
`pip-formatted requirements file`_ named *requirements.txt* for this very
purposes. It contains the dependencies that you need to have installed to
work on the project instead of use it. This extension aims to automate
that pattern and make it easier to set up a development environment by
providing a new setup command named
:ref:`requirements <requirements-command>`.

Having a separate *requirements.txt* is a good pattern but it is not
without its flaws. Having dependencies identified in two places is an
outright violation of the *Don't Repeat Yourself* principle. That is
something else that we can solve pretty easily with a function that you
can read a pip-formatted requirements file and generate a list that is
usable as the setup ``setup_requires``, ``install_requires``, or
``tests_require`` keywords. This is where the
:func:`~setupext.pip.read_requirements_from_file` function comes in.
You can use this function to populate the ``setup_requires``,
``tests_require``, and ``extras_require`` keywords.

Ok... Where?
| Source | |
| Status | |
| Download | |
| Documentation | |
| Issues | |

.. _setuptools:
.. _pip:
.. _pip-formatted requirements file:
.. |Version| image::
.. |Downloads| image::
.. |Status| image::
.. |License| image::

Release history Release notifications

History Node


History Node


History Node


This version
History Node


History Node


History Node


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
setupext-pip-1.0.2.tar.gz (8.3 kB) Copy SHA256 hash SHA256 Source None Jul 30, 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