]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142295: Update macOS framework build Info.plist files. (#149479)
authorNed Deily <nad@python.org>
Thu, 7 May 2026 03:52:23 +0000 (23:52 -0400)
committerGitHub <noreply@github.com>
Thu, 7 May 2026 03:52:23 +0000 (23:52 -0400)
For Python macOS framework builds, update all Info.plist files to be more
compliant with current Apple guidelines. Original patch contributed by
Martinus Verburg.

Mac/IDLE/IDLE.app/Contents/Info.plist
Mac/PythonLauncher/Info.plist.in
Mac/Resources/app/Info.plist.in
Mac/Resources/framework/Info.plist.in
Misc/NEWS.d/next/macOS/2025-12-22-10-53-45.gh-issue-142295.fLu-Lh.rst [deleted file]
Misc/NEWS.d/next/macOS/2026-05-06-18-23-36.gh-issue-142295.O9RmZH.rst [new file with mode: 0644]

index 8549e405e2a65a046784da71d8c73a316d6924b5..696625e64cdf326204295a9e2cd96debcc64dd16 100644 (file)
@@ -1,9 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-       <key>CFBundleDevelopmentRegion</key>
-       <string>English</string>
+       <key>CFBundleName</key>
+       <string>IDLE</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.python.IDLE</string>
+       <key>CFBundleVersion</key>
+       <string>%version%</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleSignature</key>
+       <string>????</string>
+       <key>CFBundleExecutable</key>
+       <string>IDLE</string>
+       <key>CFBundleIconFile</key>
+       <string>IDLE.icns</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
        <key>CFBundleDocumentTypes</key>
        <array>
                <dict>
                        <string>Editor</string>
                </dict>
        </array>
-       <key>CFBundleExecutable</key>
-       <string>IDLE</string>
-       <key>CFBundleGetInfoString</key>
-       <string>%version%, © 2001-2024 Python Software Foundation</string>
-       <key>CFBundleIconFile</key>
-       <string>IDLE.icns</string>
-       <key>CFBundleIdentifier</key>
-       <string>org.python.IDLE</string>
-       <key>CFBundleInfoDictionaryVersion</key>
-       <string>6.0</string>
-       <key>CFBundleName</key>
-       <string>IDLE</string>
-       <key>CFBundlePackageType</key>
-       <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>%version%</string>
-       <key>CFBundleSignature</key>
-       <string>????</string>
-       <key>CFBundleVersion</key>
-       <string>%version%</string>
+       <key>CFBundleSupportedPlatforms</key>
+       <array>
+               <string>MacOSX</string>
+       </array>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
        <key>NSHighResolutionCapable</key>
        <true/>
        <key>CFBundleAllowMixedLocalizations</key>
index ce8f27cd7d4de70641c271d526d72a559f99f2b5..dd63187ab836b3834a7b19b43c189b618bcc0e56 100644 (file)
@@ -2,8 +2,22 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-       <key>CFBundleDevelopmentRegion</key>
-       <string>en</string>
+       <key>CFBundleName</key>
+       <string>Python Launcher</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.python.PythonLauncher</string>
+       <key>CFBundleVersion</key>
+       <string>%VERSION%</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleSignature</key>
+       <string>PytL</string>
+       <key>CFBundleExecutable</key>
+       <string>Python Launcher</string>
+       <key>CFBundleIconFile</key>
+       <string>PythonLauncher.icns</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
        <key>CFBundleDocumentTypes</key>
        <array>
                <dict>
                        <string>MyDocument</string>
                </dict>
        </array>
-       <key>CFBundleExecutable</key>
-       <string>Python Launcher</string>
-       <key>NSHumanReadableCopyright</key>
-       <string>Copyright © 2001 Python Software Foundation</string>
-       <key>CFBundleGetInfoString</key>
-       <string>%VERSION%, © 2001 Python Software Foundation</string>
-       <key>CFBundleIconFile</key>
-       <string>PythonLauncher.icns</string>
-       <key>CFBundleIdentifier</key>
-       <string>org.python.PythonLauncher</string>
-       <key>CFBundleInfoDictionaryVersion</key>
-       <string>6.0</string>
-       <key>CFBundleName</key>
-       <string>Python Launcher</string>
-       <key>CFBundlePackageType</key>
-       <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>%VERSION%</string>
-       <key>CFBundleSignature</key>
-       <string>PytL</string>
-       <key>CFBundleVersion</key>
-       <string>%VERSION%</string>
+       <key>CFBundleSupportedPlatforms</key>
+       <array>
+               <string>MacOSX</string>
+       </array>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>
index a1fc1511c40e96d5341b4b492d43eee480b56c8d..07dc351398d7b2aad865fbae4bd01f0a50e07121 100644 (file)
@@ -1,9 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
-       <key>CFBundleDevelopmentRegion</key>
-       <string>English</string>
+       <key>CFBundleName</key>
+       <string>Python</string>
+       <key>CFBundleIdentifier</key>
+       <string>%bundleid%</string>
+       <key>CFBundleVersion</key>
+       <string>%version%</string>
+       <key>CFBundlePackageType</key>
+       <string>APPL</string>
+       <key>CFBundleSignature</key>
+       <string>PytX</string>
+       <key>CFBundleExecutable</key>
+       <string>Python</string>
+       <key>CFBundleIconFile</key>
+       <string>PythonInterpreter.icns</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
        <key>CFBundleDocumentTypes</key>
        <array>
                <dict>
                        <string>Viewer</string>
                </dict>
        </array>
-       <key>CFBundleExecutable</key>
-       <string>Python</string>
-       <key>CFBundleGetInfoString</key>
-       <string>%version%, (c) 2001-2024 Python Software Foundation.</string>
+       <key>CFBundleShortVersionString</key>
+       <string>%version%</string>
+       <key>CFBundleSupportedPlatforms</key>
+       <array>
+               <string>MacOSX</string>
+       </array>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
+       <key>NSHighResolutionCapable</key>
+       <true/>
+       <key>NSAppleScriptEnabled</key>
+       <true/>
+       <key>CFBundleAllowMixedLocalizations</key>
+       <true/>
        <key>CFBundleHelpBookFolder</key>
        <array>
                <string>Documentation</string>
-               <string>PythonDocumentation</string>
        </array>
        <key>CFBundleHelpBookName</key>
-       <string>MacPython Help</string>
+       <string>Python Help</string>
        <key>CFBundleHelpTOCFile</key>
        <string>index.html</string>
-       <key>CFBundleIconFile</key>
-       <string>PythonInterpreter.icns</string>
-       <key>CFBundleIdentifier</key>
-       <string>%bundleid%</string>
-       <key>CFBundleInfoDictionaryVersion</key>
-       <string>6.0</string>
-       <key>CFBundleLongVersionString</key>
-       <string>%version%, (c) 2001-2024 Python Software Foundation.</string>
-       <key>CFBundleName</key>
-       <string>Python</string>
-       <key>CFBundlePackageType</key>
-       <string>APPL</string>
-       <key>CFBundleShortVersionString</key>
-       <string>%version%</string>
-       <key>CFBundleSignature</key>
-       <string>PytX</string>
-       <key>CFBundleVersion</key>
-       <string>%version%</string>
        <key>CSResourcesFileMapped</key>
        <true/>
        <key>LSRequiresCarbon</key>
        <true/>
-       <key>NSAppleScriptEnabled</key>
-       <true/>
-       <key>NSHumanReadableCopyright</key>
-       <string>(c) 2001-2024 Python Software Foundation.</string>
-       <key>NSHighResolutionCapable</key>
-       <true/>
-       <key>CFBundleAllowMixedLocalizations</key>
-       <true/>
 </dict>
 </plist>
index 06b4c428fd46b5dc2cf35dbde94f5aef5e495154..41400c91a5f1b0e0e06228fc30dc3b6296d00aa9 100644 (file)
@@ -1,29 +1,31 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
 <dict>
-       <key>CFBundleDevelopmentRegion</key>
-       <string>English</string>
-       <key>CFBundleExecutable</key>
+       <key>CFBundleName</key>
        <string>Python</string>
-       <key>CFBundleGetInfoString</key>
-       <string>Python Runtime and Library</string>
        <key>CFBundleIdentifier</key>
        <string>@PYTHONFRAMEWORKIDENTIFIER@</string>
-       <key>CFBundleInfoDictionaryVersion</key>
-       <string>6.0</string>
-       <key>CFBundleName</key>
-       <string>Python</string>
+       <key>CFBundleVersion</key>
+       <string>%VERSION%</string>
        <key>CFBundlePackageType</key>
        <string>FMWK</string>
-       <key>CFBundleShortVersionString</key>
-       <string>%VERSION%</string>
-       <key>CFBundleLongVersionString</key>
-       <string>%VERSION%, (c) 2001-2024 Python Software Foundation.</string>
        <key>CFBundleSignature</key>
        <string>????</string>
-       <key>CFBundleVersion</key>
+       <key>CFBundleExecutable</key>
+       <string>Python</string>
+       <key>CFBundleInfoDictionaryVersion</key>
+       <string>6.0</string>
+       <key>CFBundleShortVersionString</key>
        <string>%VERSION%</string>
+       <key>CFBundleSupportedPlatforms</key>
+       <array>
+               <string>MacOSX</string>
+       </array>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
+       <key>CFBundleDevelopmentRegion</key>
+       <string>English</string>
        <key>CFBundleAllowMixedLocalizations</key>
        <true/>
 </dict>
diff --git a/Misc/NEWS.d/next/macOS/2025-12-22-10-53-45.gh-issue-142295.fLu-Lh.rst b/Misc/NEWS.d/next/macOS/2025-12-22-10-53-45.gh-issue-142295.fLu-Lh.rst
deleted file mode 100644 (file)
index fa5d1ab..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-Mac framework Info.plist CFBundleShortVersionString now uses x.y.z only
-format to comply with `this Apple developer guideline
-<https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleshortversionstring>`_. Contributed by Martinus Verburg.
diff --git a/Misc/NEWS.d/next/macOS/2026-05-06-18-23-36.gh-issue-142295.O9RmZH.rst b/Misc/NEWS.d/next/macOS/2026-05-06-18-23-36.gh-issue-142295.O9RmZH.rst
new file mode 100644 (file)
index 0000000..b3c4398
--- /dev/null
@@ -0,0 +1,3 @@
+For Python macOS framework builds, update Info.plist files to be more
+compliant with current Apple guidelines. Original patch contributed by
+Martinus Verburg.