We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2e01f9 commit 73a154aCopy full SHA for 73a154a
rules_python/whl.py
@@ -60,12 +60,12 @@ def metadata(self):
60
with zipfile.ZipFile(self.path(), 'r') as whl:
61
# first check for metadata.json
62
try:
63
- with whl.open(os.path.join(self._dist_info(), 'metadata.json')) as f:
+ with whl.open(self._dist_info() + '/metadata.json') as f:
64
return json.loads(f.read().decode("utf-8"))
65
except KeyError:
66
pass
67
# fall back to METADATA file (https://www.python.org/dev/peps/pep-0427/)
68
- with whl.open(os.path.join(self._dist_info(), 'METADATA')) as f:
+ with whl.open(self._dist_info() + '/METADATA') as f:
69
return self._parse_metadata(f.read().decode("utf-8"))
70
71
def name(self):
tools/piptool.par
-65 Bytes
tools/whltool.par
-64 Bytes
0 commit comments