Tool to produce better formatted pip freeze.
Project description
Pip Freeze
Tool to produce better formatted pip freeze.
Instead of a flat list of requirements, this indents requirements which are dependencies and those that are primary installs. Dependencies shared by multiple packages are commented out.
This format can be re-read by the typical pip install -r requirements.txt
and requires not adjustment to other code.
Motivation
Typical pip freeze flattens all requirements, regardless of the dependency structure.
astroid==2.4.2
certifi==2020.12.5
chardet==4.0.0
idna==2.10
isort==5.5.3
lazy-object-proxy==1.4.3
mccabe==0.6.1
pylint==2.6.0
requests==2.25.1
six==1.15.0
toml==0.10.1
urllib3==1.26.3
wrapt==1.12.1
This produces output that is valid requirements.txt but is nested
pylint==2.6.0
astroid==2.4.2
# latest_version=1.5.2 wheel
lazy-object-proxy==1.4.3
six==1.15.0
wrapt==1.12.1
# latest_version=5.7.0 wheel
isort==5.5.3
mccabe==0.6.1
# latest_version=0.10.2 wheel
toml==0.10.1
requests==2.25.1
certifi==2020.12.5
chardet==4.0.0
# latest_version=3.1 wheel
idna==2.10
urllib3==1.26.3
Contributing
Local development is controlled through docker. docker-compose.yml
contains
different python environment containers to test this code out in.
make test
will run the docker tests.
Makefile contains commands for development.
Project details
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 pipfreeze-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506360d5835cc68316de351613e4c11d3db33d610f33fd67a4a434b9b5ab4f2d |
|
MD5 | c39b28478dc736ed0b97a00cb4a04b68 |
|
BLAKE2b-256 | 4917f839f5241c3b368c58850239b3c67d219f1a7bc0d58c6a11db59117f402a |