make_metadata: Support multi-level packages.

Need to split off last component, tested with uasyncio.websocket.server.
pull/261/head
Paul Sokolovsky 2018-02-02 20:17:57 +02:00
rodzic bf8eef9d9e
commit c3cded0134
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -161,7 +161,7 @@ def main():
else:
data["long_desc"] = repr(data["long_desc"])
data["modules"] = "'" + data["name"].split(".", 1)[0] + "'"
data["modules"] = "'" + data["name"].rsplit(".", 1)[0] + "'"
if "extra_modules" in data:
data["modules"] += ", " + ", ".join(["'" + x.strip() + "'" for x in data["extra_modules"].split(",")])