Merge pull request #1807 from jtratner/check-warehouse-pypi-org

Still check warehouse API for new pypi.org
This commit is contained in:
2018-03-20 17:14:30 -04:00
committed by GitHub
+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(