pip install Python packages with automatic requirements.txt, prod-requirements.txt and setup.cfg files updates. It also easily uninstall all the dependencies from those files.
Project description
EASY PIP INSTALL
easypipinstall installs Python packages with automatic requirements.txt
, prod-requirements.txt
and setup.cfg
files updates. It also easily uninstall all the dependencies from those files. It uses an opiniated pattern where:
- Only two type of dependencies exist:
prod
anddev
. - All dependencies are listed under
requirements.txt
. - By default, dependencies are listed in both
requirements.txt
andprod-requirements.txt
. - Dependencies are not listed under
prod-requirements.txt
when the-D
option (development mode) is used. - The
setup.cfg
file is updated as follow:- By default the dependency is listed without its version under the
install_requires
property of the[options]
section. - When the
-D
option is used, the dependency is listed without its version under thedev
property of the[options.extras_require]
section.
- By default the dependency is listed without its version under the
To install:
pip install easypipinstall
This will add two new CLI utilities: easyi
(install) and easyu
(uninstall).
Examples:
easyi numpy
This installs numpy
(via pip install
) then automatically updates the following files:
setup.cfg
(WARNING: this file must already exists):[options] install_requires = numpy
requirements.txt
andprod-requirements.txt
easyi flake8 black -D
This installs flake8
and black
(via pip install
) then automatically updates the following files:
setup.cfg
(WARNING: this file must already exists):[options.extras_require] dev = black flake8
requirements.txt
only, as those dependencies are installed for development purposes only.
easyu flake8
This uninstalls flake8
as well as all its dependencies. Those dependencies are uninstalled only if they are not used by other project dependencies. The setup.cfg
and requirements.txt
are automatically updated accordingly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for easypipinstall-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ecc0914d674ce423dc28872834664c7ca93bdf8940ed65df16f159f41df27b2 |
|
MD5 | d627cb0674ba2449dcdff7b3b46df698 |
|
BLAKE2b-256 | f9e25936a31d05da5e10f0aca10bf36c068a41f24373ea3328adb968c271ac93 |