Skip to content

Commit 20a2c29

Browse files
committed
minor fix
1 parent a95ab78 commit 20a2c29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

azdev/operations/extensions/metadata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ def pkginfo_to_dict(path, distribution=None):
296296

297297
# convert entry points to exports
298298
try:
299-
with open(os.path.join(os.path.dirname(path), "entry_points.txt"), "r") as ep_file:
300-
ep_map = entry_points()
301-
# ep_map = pkg_resources.EntryPoint.parse_map(ep_file.read())
299+
ep_map = entry_points()
302300
exports = OrderedDict()
303301
# exports = defaultdict()
304302
for group, items in sorted(ep_map.items()):

azdev/operations/tests/test_metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def compare_metadata(wheel_url, expected_metadata):
8282
import shutil
8383
shutil.rmtree(temp_dir)
8484

85+
8586
def test_specific_wheel():
8687
"""
8788
Test specific wheel metadata consistency
@@ -175,5 +176,6 @@ def test_specific_wheel():
175176

176177
assert compare_metadata(wheel_url, metadata_from_index), "Metadata comparison failed"
177178

179+
178180
if __name__ == "__main__":
179181
test_specific_wheel()

0 commit comments

Comments
 (0)