Still check warehouse API for new pypi

This commit is contained in:
Jeff Tratner
2018-03-20 09:00:21 -07:00
parent 913713e9dc
commit ff03d7d32a
+2 -1
View File
@@ -462,7 +462,8 @@ def resolve_deps(
else:
markers = markers_lookup.get(result.name)
collected_hashes = []
if 'python.org' in '|'.join([source['url'] for source in sources]):
if any('python.org' in source['url'] or 'pypi.org' in source['url']
for source in sources):
try:
# Grab the hashes from the new warehouse API.
r = requests.get(