Skip to main content

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 setup.py develop?! Not quite…

setup.py 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 requirements.

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 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

https://github.com/dave-shawley/setupext-pip

Status

https://travis-ci.org/dave-shawley/setupext-pip

Download

https://pypi.python.org/pypi/setupext-pip

Documentation

http://setupext-pip.readthedocs.org/en/latest/

Issues

https://github.com/dave-shawley/setupext-pip

Metadata

Release files for setupext-pip 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for setupext-pip 1.1.0
File Size Uploaded
setupext-pip-1.1.0.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for setupext-pip 1.1.0
File Interpreter ABI Platform
setupext_pip-1.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 17.6 kB

Release files / setupext-pip-1.1.0.tar.gz

Download URL setupext-pip-1.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
50da61abeb106602c67a1bb7cf9568e3faaf6eccbbd89981b9cbb9b40bc45b7b
BLAKE2b-256 checksum
How to use checksums
b1daedb4ef213d2a371c0d7241839aa728b5bff7e2cf2b645de2f0c6012341c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.15

Release files / setupext_pip-1.1.0-py2.py3-none-any.whl

Download URL setupext_pip-1.1.0-py2.py3-none-any.whl
Size 6.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
deb055556f46567c056bb850763aaa79451d3798d17c4c1d76c6b5a286f7d67a
BLAKE2b-256 checksum
How to use checksums
afe5f37e21166f6ed85b061aa9c09e009114b0b4352635803a85f793c8e059b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/2.7.15

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.5

2 release files

1.0.4

3 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page