Browse Source

Fix invalid metadata version 2.0 (should be 2.1)

rdb 1 year ago
parent
commit
b6ec48b27c
3 changed files with 3 additions and 3 deletions
  1. 1 1
      makepanda/makepanda.py
  2. 1 1
      makepanda/makewheel.py
  3. 1 1
      tests/showbase/test_Loader.py

+ 1 - 1
makepanda/makepanda.py

@@ -3271,7 +3271,7 @@ if not PkgSkip("PYTHON"):
 # 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
 # eventually want to merge this with the metadata generator in makewheel.py.
-METADATA = """Metadata-Version: 2.0
+METADATA = """Metadata-Version: 2.1
 Name: Panda3D
 Version: {version}
 License: BSD

+ 1 - 1
makepanda/makewheel.py

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

+ 1 - 1
tests/showbase/test_Loader.py

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