1. PyPA
  2. Python Packaging Authority Projects
  3. pypi


Issue #47 invalid

allow_hosts does not work with git+file

created an issue


git+file urls in dependency_links result in an empty hostname being checked against allow_hosts. There is code there already to allow 'file' but we dont allow git+file.

The fix would be to allow either 'file' or 'git+file'

Comments (3)

  1. sigmon reporter

    A workaround that probably wont work forever is to leave a trailing , in allow hosts. This will result in a empty string getting compiled, which just happens to match.

  2. Log in to comment