support custom index-url for pip
move to constant
tidy
not very useful test. let's chase coverage another day