From 9caae6520e6f757020c1a79c193d89fbc21790ce Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 22 Jul 2019 20:00:56 +0200 Subject: [PATCH] makewheel: add more project URLs to wheel metadata [skip ci] --- makepanda/makewheel.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index ad903b021f..5535e803d9 100644 --- a/makepanda/makewheel.py +++ b/makepanda/makewheel.py @@ -113,6 +113,8 @@ Root-Is-Purelib: false Tag: {0}-{1}-{2} """ +PROJECT_URLS = dict([line.split('=', 1) for line in GetMetadataValue('project_urls').strip().splitlines()]) + METADATA = { "license": GetMetadataValue('license'), "name": GetMetadataValue('name'), @@ -121,9 +123,7 @@ METADATA = { "summary": GetMetadataValue('description'), "extensions": { "python.details": { - "project_urls": { - "Home": GetMetadataValue('url'), - }, + "project_urls": dict(PROJECT_URLS, Home=GetMetadataValue('url')), "document_names": { "license": "LICENSE.txt" }, @@ -560,6 +560,7 @@ def makewheel(version, output_dir, platform=None): "Summary: {summary}\n" \ "License: {license}\n".format(**METADATA), "Home-page: {0}\n".format(homepage), + ] + ["Project-URL: {0}, {1}\n".format(*url) for url in PROJECT_URLS.items()] + [ "Author: {0}\n".format(author), "Author-email: {0}\n".format(email), "Platform: {0}\n".format(platform),