damnever / pigar

:coffee: A tool to generate requirements.txt for Python project, and more than that. (IT IS NOT A PACKAGE MANAGEMENT TOOL)

Home Page:https://damnever.github.io/pigar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PYPI_URL is hardcoded, does not pick up custom pip configuration.

SelinGungor opened this issue · comments

The following piece of code can be improved. PYPI_URL = 'https://pypi.org'

Pigar can check whether there is a custom pypi configuration exists or not. If there is not custom url, it can get by default https://pypi.org.

The other PyPI mirrors may has different page structures, I don't know if pigar can handle it gracefully.

Came across the same thing recently too. We have internal mirrors because we are behind a firewall to control what packages are installed. Any workaround or fix for this so that it reads the pip.conf?