DavHau / pypi-deps-db

Dependency DB for python packages on pypi
MIT License
66 stars 40 forks source link

How to use this pypi-deps-db #8

Open di1l0o opened 2 years ago

di1l0o commented 2 years ago

For example,when I find the requests's dependencies.I don't kown to use this tool,and I find not illustration.

milahu commented 2 years ago

this database is used in mach_nix/generate.py

    deps_provider = CombinedDependencyProvider(
        conda_channels_json=conda_channels_json,
        nixpkgs=nixpkgs,
        provider_settings=provider_settings,
        pypi_deps_db_src=pypi_deps_db_src, # HERE
        py_ver=py_ver,
        platform=platform,
        system=system
    )

and mach_nix/data/providers.py


        wheel = WheelDependencyProvider(f"{pypi_deps_db_src}/wheel", *args, **kwargs)
        sdist = SdistDependencyProvider(f"{pypi_deps_db_src}/sdist", *args, **kwargs)

see also mach-nix#how-does-mach-nix-work

good luck ; )