mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
makewheel: add more project URLs to wheel metadata
[skip ci]
This commit is contained in:
parent
7d6ba557d3
commit
9caae6520e
@ -113,6 +113,8 @@ Root-Is-Purelib: false
|
|||||||
Tag: {0}-{1}-{2}
|
Tag: {0}-{1}-{2}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
PROJECT_URLS = dict([line.split('=', 1) for line in GetMetadataValue('project_urls').strip().splitlines()])
|
||||||
|
|
||||||
METADATA = {
|
METADATA = {
|
||||||
"license": GetMetadataValue('license'),
|
"license": GetMetadataValue('license'),
|
||||||
"name": GetMetadataValue('name'),
|
"name": GetMetadataValue('name'),
|
||||||
@ -121,9 +123,7 @@ METADATA = {
|
|||||||
"summary": GetMetadataValue('description'),
|
"summary": GetMetadataValue('description'),
|
||||||
"extensions": {
|
"extensions": {
|
||||||
"python.details": {
|
"python.details": {
|
||||||
"project_urls": {
|
"project_urls": dict(PROJECT_URLS, Home=GetMetadataValue('url')),
|
||||||
"Home": GetMetadataValue('url'),
|
|
||||||
},
|
|
||||||
"document_names": {
|
"document_names": {
|
||||||
"license": "LICENSE.txt"
|
"license": "LICENSE.txt"
|
||||||
},
|
},
|
||||||
@ -560,6 +560,7 @@ def makewheel(version, output_dir, platform=None):
|
|||||||
"Summary: {summary}\n" \
|
"Summary: {summary}\n" \
|
||||||
"License: {license}\n".format(**METADATA),
|
"License: {license}\n".format(**METADATA),
|
||||||
"Home-page: {0}\n".format(homepage),
|
"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: {0}\n".format(author),
|
||||||
"Author-email: {0}\n".format(email),
|
"Author-email: {0}\n".format(email),
|
||||||
"Platform: {0}\n".format(platform),
|
"Platform: {0}\n".format(platform),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user