Skip to content

Commit 39e3fb5

Browse files
committedJul 22, 2020
Print package information
1 parent c7679a6 commit 39e3fb5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎load_registry.py

+13
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@
22

33
d = toml.load("registry.toml")
44
print(d)
5+
6+
for pkg in d:
7+
print("Package:", pkg)
8+
for version in d[pkg]:
9+
print(" Version:", version)
10+
info = d[pkg][version]
11+
if isinstance(info, dict):
12+
if "git" in info:
13+
print(" git:", info["git"])
14+
if "tag" in info:
15+
print(" tag:", info["tag"])
16+
else:
17+
print(" Info:", info)

0 commit comments

Comments
 (0)
Please sign in to comment.