Fix invalid metadata version 2.0 (should be 2.1)

This commit is contained in:
rdb 2024-05-28 22:28:37 +02:00
parent 105f938d68
commit b6ec48b27c
3 changed files with 3 additions and 3 deletions

View File

@ -3271,7 +3271,7 @@ if not PkgSkip("PYTHON"):
# This is just some basic stuff since setuptools just needs this file to # This is just some basic stuff since setuptools just needs this file to
# exist, otherwise it will not read the entry_points.txt file. Maybe we will # exist, otherwise it will not read the entry_points.txt file. Maybe we will
# eventually want to merge this with the metadata generator in makewheel.py. # eventually want to merge this with the metadata generator in makewheel.py.
METADATA = """Metadata-Version: 2.0 METADATA = """Metadata-Version: 2.1
Name: Panda3D Name: Panda3D
Version: {version} Version: {version}
License: BSD License: BSD

View File

@ -122,7 +122,7 @@ PROJECT_URLS = dict([line.split('=', 1) for line in GetMetadataValue('project_ur
METADATA = { METADATA = {
"license": GetMetadataValue('license'), "license": GetMetadataValue('license'),
"name": GetMetadataValue('name'), "name": GetMetadataValue('name'),
"metadata_version": "2.0", "metadata_version": "2.1",
"generator": "makepanda", "generator": "makepanda",
"summary": GetMetadataValue('description'), "summary": GetMetadataValue('description'),
"extensions": { "extensions": {

View File

@ -90,7 +90,7 @@ class FnargleLoader:
""") """)
tmpdir.join("fnargle.dist-info").mkdir() tmpdir.join("fnargle.dist-info").mkdir()
tmpdir.join("fnargle.dist-info", "METADATA").write(""" tmpdir.join("fnargle.dist-info", "METADATA").write("""
Metadata-Version: 2.0 Metadata-Version: 2.1
Name: fnargle Name: fnargle
Version: 1.0.0 Version: 1.0.0
""") """)