Generate a flat list of packages Pip would install.
Project description
pip-package-list
A small and definitely faulty tool that tries to form a list of packages that you depend on. This is useful in mono-repo's where all dependencies are split into dozens of requirements.txt
and setup.py
files.
One particular use-case that fueled the development of this tool was to create a flat list of dependencies to pre-install in a Docker base image.
Although there is a number of tools that parse and resolve requirement files, I did not find any that parse setup.py
files and extract install_requires
.
Usage
usage: pip-package-list [-h] [--recurse-recursive] [--recurse-editable]
[--inline-constraints] [--dedupe] [--remove-editable]
[--remove-recursive] [--remove-constraints]
[--remove-vcs] [--remove-wheel] [--remove-unversioned]
[--remove-index-urls]
file_paths [file_paths ...]
positional arguments:
file_paths list of requirements.txt or setup.py files
optional arguments:
-h, --help show this help message and exit
--recurse-recursive recurse into -r entries
--recurse-editable recurse into -e entries
--inline-constraints recurse into -c entries and inline them
--dedupe de-duplicate the resulting list
--remove-editable remove editable requirements from the final list
--remove-recursive remove recursive requirements (-r) from the final list
--remove-constraints remove constaints (-c) from the final list
--remove-vcs remove vcs requirements from the final list
--remove-wheel remove wheel requirements from the final list
--remove-unversioned remove requirements without a version number from the
final list
--remove-index-urls remove -i entries (index urls) from the final list
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
pip-package-list-0.0.8.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for pip_package_list-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ad688ea484743334e4f09b94ff825338b26ee60714f9ac996404c2f0cf5e1cc |
|
MD5 | 0414388ce780601cc09bbeef550c9bb4 |
|
BLAKE2b-256 | c16f61af652245b95bd1cbe5509173583c0d896b734c7f5880ec2e0c20936d71 |