nexB / python-inspector

Inspect Python code and PyPI package manifests. Resolve Python dependencies.
20 stars 17 forks source link

Add support for global index-urls #170

Open heliocastro opened 5 months ago

heliocastro commented 5 months ago

Inside restricted environments, pip can be configures to use unique global.index-url. Even added as extra index url, PyPI still present and would cause an blocked network request.

Used pip class to proper detect configured location.

TG1999 commented 5 months ago

@heliocastro thanks ++, please add some tests and also check https://github.com/nexB/python-inspector?tab=readme-ov-file#testing, additionally if there are any formatting errors please run make valid