From 8f39b31b24b53404a3a77b1a9f17827402a81fd6 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Wed, 6 May 2026 18:53:37 -0400 Subject: [PATCH] gh-142295: Update macOS framework build Info.plist files. For Python macOS framework builds, update Info.plist files to be more compliant with current Apple guidelines. Original patch contributed by Martinus Verburg. --- Mac/IDLE/IDLE.app/Contents/Info.plist | 46 +++++++------ Mac/PythonLauncher/Info.plist.in | 46 +++++++------ Mac/Resources/app/Info.plist.in | 69 +++++++++---------- Mac/Resources/framework/Info.plist.in | 34 ++++----- ...-12-22-10-53-45.gh-issue-142295.fLu-Lh.rst | 3 - ...-05-06-18-23-36.gh-issue-142295.O9RmZH.rst | 3 + 6 files changed, 104 insertions(+), 97 deletions(-) delete mode 100644 Misc/NEWS.d/next/macOS/2025-12-22-10-53-45.gh-issue-142295.fLu-Lh.rst create mode 100644 Misc/NEWS.d/next/macOS/2026-05-06-18-23-36.gh-issue-142295.O9RmZH.rst diff --git a/Mac/IDLE/IDLE.app/Contents/Info.plist b/Mac/IDLE/IDLE.app/Contents/Info.plist index 8549e405e2a65a..696625e64cdf32 100644 --- a/Mac/IDLE/IDLE.app/Contents/Info.plist +++ b/Mac/IDLE/IDLE.app/Contents/Info.plist @@ -1,9 +1,23 @@ - + - CFBundleDevelopmentRegion - English + CFBundleName + IDLE + CFBundleIdentifier + org.python.IDLE + CFBundleVersion + %version% + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleExecutable + IDLE + CFBundleIconFile + IDLE.icns + CFBundleInfoDictionaryVersion + 6.0 CFBundleDocumentTypes @@ -34,26 +48,16 @@ Editor - CFBundleExecutable - IDLE - CFBundleGetInfoString - %version%, © 2001-2024 Python Software Foundation - CFBundleIconFile - IDLE.icns - CFBundleIdentifier - org.python.IDLE - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - IDLE - CFBundlePackageType - APPL CFBundleShortVersionString %version% - CFBundleSignature - ???? - CFBundleVersion - %version% + CFBundleSupportedPlatforms + + MacOSX + + NSHumanReadableCopyright + Copyright © 2001 Python Software Foundation. All rights reserved. + CFBundleDevelopmentRegion + English NSHighResolutionCapable CFBundleAllowMixedLocalizations diff --git a/Mac/PythonLauncher/Info.plist.in b/Mac/PythonLauncher/Info.plist.in index ce8f27cd7d4de7..dd63187ab836b3 100644 --- a/Mac/PythonLauncher/Info.plist.in +++ b/Mac/PythonLauncher/Info.plist.in @@ -2,8 +2,22 @@ - CFBundleDevelopmentRegion - en + CFBundleName + Python Launcher + CFBundleIdentifier + org.python.PythonLauncher + CFBundleVersion + %VERSION% + CFBundlePackageType + APPL + CFBundleSignature + PytL + CFBundleExecutable + Python Launcher + CFBundleIconFile + PythonLauncher.icns + CFBundleInfoDictionaryVersion + 6.0 CFBundleDocumentTypes @@ -37,28 +51,16 @@ MyDocument - CFBundleExecutable - Python Launcher - NSHumanReadableCopyright - Copyright © 2001 Python Software Foundation - CFBundleGetInfoString - %VERSION%, © 2001 Python Software Foundation - CFBundleIconFile - PythonLauncher.icns - CFBundleIdentifier - org.python.PythonLauncher - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - Python Launcher - CFBundlePackageType - APPL CFBundleShortVersionString %VERSION% - CFBundleSignature - PytL - CFBundleVersion - %VERSION% + CFBundleSupportedPlatforms + + MacOSX + + NSHumanReadableCopyright + Copyright © 2001 Python Software Foundation. All rights reserved. + CFBundleDevelopmentRegion + English NSMainNibFile MainMenu NSPrincipalClass diff --git a/Mac/Resources/app/Info.plist.in b/Mac/Resources/app/Info.plist.in index a1fc1511c40e96..07dc351398d7b2 100644 --- a/Mac/Resources/app/Info.plist.in +++ b/Mac/Resources/app/Info.plist.in @@ -1,9 +1,23 @@ - + - CFBundleDevelopmentRegion - English + CFBundleName + Python + CFBundleIdentifier + %bundleid% + CFBundleVersion + %version% + CFBundlePackageType + APPL + CFBundleSignature + PytX + CFBundleExecutable + Python + CFBundleIconFile + PythonInterpreter.icns + CFBundleInfoDictionaryVersion + 6.0 CFBundleDocumentTypes @@ -17,48 +31,33 @@ Viewer - CFBundleExecutable - Python - CFBundleGetInfoString - %version%, (c) 2001-2024 Python Software Foundation. + CFBundleShortVersionString + %version% + CFBundleSupportedPlatforms + + MacOSX + + NSHumanReadableCopyright + Copyright © 2001 Python Software Foundation. All rights reserved. + CFBundleDevelopmentRegion + English + NSHighResolutionCapable + + NSAppleScriptEnabled + + CFBundleAllowMixedLocalizations + CFBundleHelpBookFolder Documentation - PythonDocumentation CFBundleHelpBookName - MacPython Help + Python Help CFBundleHelpTOCFile index.html - CFBundleIconFile - PythonInterpreter.icns - CFBundleIdentifier - %bundleid% - CFBundleInfoDictionaryVersion - 6.0 - CFBundleLongVersionString - %version%, (c) 2001-2024 Python Software Foundation. - CFBundleName - Python - CFBundlePackageType - APPL - CFBundleShortVersionString - %version% - CFBundleSignature - PytX - CFBundleVersion - %version% CSResourcesFileMapped LSRequiresCarbon - NSAppleScriptEnabled - - NSHumanReadableCopyright - (c) 2001-2024 Python Software Foundation. - NSHighResolutionCapable - - CFBundleAllowMixedLocalizations - diff --git a/Mac/Resources/framework/Info.plist.in b/Mac/Resources/framework/Info.plist.in index 06b4c428fd46b5..41400c91a5f1b0 100644 --- a/Mac/Resources/framework/Info.plist.in +++ b/Mac/Resources/framework/Info.plist.in @@ -1,29 +1,31 @@ - - + + - CFBundleDevelopmentRegion - English - CFBundleExecutable + CFBundleName Python - CFBundleGetInfoString - Python Runtime and Library CFBundleIdentifier @PYTHONFRAMEWORKIDENTIFIER@ - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - Python + CFBundleVersion + %VERSION% CFBundlePackageType FMWK - CFBundleShortVersionString - %VERSION% - CFBundleLongVersionString - %VERSION%, (c) 2001-2024 Python Software Foundation. CFBundleSignature ???? - CFBundleVersion + CFBundleExecutable + Python + CFBundleInfoDictionaryVersion + 6.0 + CFBundleShortVersionString %VERSION% + CFBundleSupportedPlatforms + + MacOSX + + NSHumanReadableCopyright + Copyright © 2001 Python Software Foundation. All rights reserved. + CFBundleDevelopmentRegion + English CFBundleAllowMixedLocalizations 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 index fa5d1ab8a5258c..00000000000000 --- a/Misc/NEWS.d/next/macOS/2025-12-22-10-53-45.gh-issue-142295.fLu-Lh.rst +++ /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 -`_. 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 index 00000000000000..b3c43989cd10c3 --- /dev/null +++ b/Misc/NEWS.d/next/macOS/2026-05-06-18-23-36.gh-issue-142295.O9RmZH.rst @@ -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.