wheeldeps
wheeldeps

how wheeldeps fits in

Install

consolepip install wheeldeps

Use

consolewheeldeps *.whl                                   # what is missing
wheeldeps *.whl --json                            # machine readable
wheeldeps *.whl --python-version 3.10             # evaluate markers for another Python
wheeldeps *.whl --platform win32                  # ... and another platform
wheeldeps *.whl --closure mypackage               # what mypackage pulls from this set
pythonfrom wheeldeps import external_requirements, read_wheels

wheels = read_wheels(["app-1.0-py3-none-any.whl", "lib-2.0-py3-none-any.whl"])
for requirement in external_requirements(wheels):
    print(requirement.name, requirement.specifier, requirement.marker)

What it does properly

the same project (PEP 503), so a provided wheel is recognised however it is spelled.

extra == "socks", and/or/not, parentheses, in / not in. Version comparisons are numeric, so "3.12" > "3.9" behaves (a string compare gets it wrong). Point it at another interpreter with --python-version / --platform.

see which wheels one package really drags in.

cannot write anything to disk while being inspected.

What it does not do

answers "does this set satisfy these requirements", using names only.

providing requests>=2). Check the versions with pip check if that matters.

requirement on requests, which is what a bundle needs.

Development

consolepython -m venv .venv
.venv/bin/pip install -e ".[test]"
.venv/bin/pytest

The suite covers every line of the package (pytest --cov --cov-branch), and the examples in the docstrings run as tests through --doctest-modules.

License

MIT.

Other libraries here

One problem each, standard library only, no runtime dependencies.