Compare commits

...
10 Commits
Author SHA1 Message Date
Erik Gomez ee131ea377 typo 2026-05-12 14:44:47 -05:00
Erik Gomez d01d71e461 Merge pull request #83 from macadmins/openssl-fix
Openssl fix
2026-05-12 14:36:05 -05:00
Erik Gomez 3ab1b19d91 also look for path 2026-05-12 14:35:01 -05:00
Erik Gomez 489aae7e56 add a sitecustomize 2026-05-12 14:26:09 -05:00
Erik Gomez 58b420cad8 remove other conficts 2026-05-12 13:14:07 -05:00
Erik Gomez 51eb423040 remove old dependencies 2026-05-12 13:11:26 -05:00
Erik Gomez 1e068ede06 Merge pull request #82 from macadmins/dependabot/github_actions/metcalfc/changelog-generator-0440d0932f9a0dd1cc9ecd8412830761351323bd
Bump metcalfc/changelog-generator from b794d7e4101afb6a8fe5c97eaedaf789d43b1288 to 0440d0932f9a0dd1cc9ecd8412830761351323bd
2026-05-12 13:08:22 -05:00
Erik Gomez 5793ebc6b2 Merge pull request #81 from macadmins/dependabot/github_actions/apple-actions/import-codesign-certs-5142e029c445c10ffc7149d172e540235a065466
Bump apple-actions/import-codesign-certs from b2e261033a9e248f91a9b57201e8d1e12b15a24e to 5142e029c445c10ffc7149d172e540235a065466
2026-05-12 13:07:23 -05:00
dependabot[bot] 555c378e7a Bump metcalfc/changelog-generator
Bumps [metcalfc/changelog-generator](https://github.com/metcalfc/changelog-generator) from b794d7e4101afb6a8fe5c97eaedaf789d43b1288 to 0440d0932f9a0dd1cc9ecd8412830761351323bd.
- [Release notes](https://github.com/metcalfc/changelog-generator/releases)
- [Changelog](https://github.com/metcalfc/changelog-generator/blob/main/release-notes.png)
- [Commits](https://github.com/metcalfc/changelog-generator/compare/b794d7e4101afb6a8fe5c97eaedaf789d43b1288...0440d0932f9a0dd1cc9ecd8412830761351323bd)

---
updated-dependencies:
- dependency-name: metcalfc/changelog-generator
  dependency-version: 0440d0932f9a0dd1cc9ecd8412830761351323bd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-12 18:05:39 +00:00
dependabot[bot] e4e16613c6 Bump apple-actions/import-codesign-certs
Bumps [apple-actions/import-codesign-certs](https://github.com/apple-actions/import-codesign-certs) from b2e261033a9e248f91a9b57201e8d1e12b15a24e to 5142e029c445c10ffc7149d172e540235a065466.
- [Release notes](https://github.com/apple-actions/import-codesign-certs/releases)
- [Commits](https://github.com/apple-actions/import-codesign-certs/compare/b2e261033a9e248f91a9b57201e8d1e12b15a24e...5142e029c445c10ffc7149d172e540235a065466)

---
updated-dependencies:
- dependency-name: apple-actions/import-codesign-certs
  dependency-version: 5142e029c445c10ffc7149d172e540235a065466
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-12 18:05:30 +00:00
7 changed files with 83 additions and 47 deletions

No files matched your search

+3 -3
View File
@@ -23,14 +23,14 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install Apple Developer ID Application certificates - name: Install Apple Developer ID Application certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }} p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }}
p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }} p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }}
- name: Install Apple Developer ID Installer certificates - name: Install Apple Developer ID Installer certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
create-keychain: false # do not create a new keychain for this value create-keychain: false # do not create a new keychain for this value
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
@@ -52,7 +52,7 @@ jobs:
- name: Generate changelog - name: Generate changelog
id: changelog id: changelog
uses: metcalfc/changelog-generator@b794d7e4101afb6a8fe5c97eaedaf789d43b1288 # v4.7.0 uses: metcalfc/changelog-generator@0440d0932f9a0dd1cc9ecd8412830761351323bd # v4.7.0
with: with:
myToken: ${{ secrets.GITHUB_TOKEN }} myToken: ${{ secrets.GITHUB_TOKEN }}
reverse: 'true' reverse: 'true'
+3 -3
View File
@@ -23,14 +23,14 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install Apple Developer ID Application certificates - name: Install Apple Developer ID Application certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }} p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }}
p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }} p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }}
- name: Install Apple Developer ID Installer certificates - name: Install Apple Developer ID Installer certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
create-keychain: false # do not create a new keychain for this value create-keychain: false # do not create a new keychain for this value
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
@@ -52,7 +52,7 @@ jobs:
- name: Generate changelog - name: Generate changelog
id: changelog id: changelog
uses: metcalfc/changelog-generator@b794d7e4101afb6a8fe5c97eaedaf789d43b1288 # v4.7.0 uses: metcalfc/changelog-generator@0440d0932f9a0dd1cc9ecd8412830761351323bd # v4.7.0
with: with:
myToken: ${{ secrets.GITHUB_TOKEN }} myToken: ${{ secrets.GITHUB_TOKEN }}
reverse: 'true' reverse: 'true'
+3 -3
View File
@@ -23,14 +23,14 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install Apple Developer ID Application certificates - name: Install Apple Developer ID Application certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }} p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }}
p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }} p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }}
- name: Install Apple Developer ID Installer certificates - name: Install Apple Developer ID Installer certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
create-keychain: false # do not create a new keychain for this value create-keychain: false # do not create a new keychain for this value
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
@@ -52,7 +52,7 @@ jobs:
- name: Generate changelog - name: Generate changelog
id: changelog id: changelog
uses: metcalfc/changelog-generator@b794d7e4101afb6a8fe5c97eaedaf789d43b1288 # v4.7.0 uses: metcalfc/changelog-generator@0440d0932f9a0dd1cc9ecd8412830761351323bd # v4.7.0
with: with:
myToken: ${{ secrets.GITHUB_TOKEN }} myToken: ${{ secrets.GITHUB_TOKEN }}
reverse: 'true' reverse: 'true'
+3 -4
View File
@@ -23,14 +23,14 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Install Apple Developer ID Application certificates - name: Install Apple Developer ID Application certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }} p12-file-base64: ${{ secrets.APP_CERTIFICATES_P12_MAOS }}
p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }} p12-password: ${{ secrets.APP_CERTIFICATES_P12_PASSWORD_MAOS }}
- name: Install Apple Developer ID Installer certificates - name: Install Apple Developer ID Installer certificates
uses: apple-actions/import-codesign-certs@b2e261033a9e248f91a9b57201e8d1e12b15a24e # v7.0.0 uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with: with:
create-keychain: false # do not create a new keychain for this value create-keychain: false # do not create a new keychain for this value
keychain-password: ${{ github.run_id }} keychain-password: ${{ github.run_id }}
@@ -52,7 +52,7 @@ jobs:
- name: Generate changelog - name: Generate changelog
id: changelog id: changelog
uses: metcalfc/changelog-generator@b794d7e4101afb6a8fe5c97eaedaf789d43b1288 # v4.7.0 uses: metcalfc/changelog-generator@0440d0932f9a0dd1cc9ecd8412830761351323bd # v4.7.0
with: with:
myToken: ${{ secrets.GITHUB_TOKEN }} myToken: ${{ secrets.GITHUB_TOKEN }}
reverse: 'true' reverse: 'true'
@@ -69,7 +69,6 @@ jobs:
body: | body: |
# Notes # Notes
Python ${{env.PYTHON_VERSION}} Framework Python ${{env.PYTHON_VERSION}} Framework
Python 3.14.5 Framework
## Changes ## Changes
- Upgraded Python to 3.14.5 - Upgraded Python to 3.14.5
+10
View File
@@ -139,6 +139,15 @@ build_framework() {
"$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework" "$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework"
} }
install_sitecustomize() {
# Drop a sitecustomize.py that points OpenSSL at certifi's CA bundle via
# SSL_CERT_FILE at interpreter startup. Works around macadmins/python#38:
# python.org's framework has the OpenSSL CA path compiled in to
# /Library/Frameworks/... which doesn't match our relocated install.
local site_packages="$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework/Versions/${PYTHON_BIN_VERSION}/lib/python${PYTHON_BIN_VERSION}/site-packages"
/bin/cp "${TOOLSDIR}/managed_python_sitecustomize.py" "$site_packages/sitecustomize.py"
}
codesign_framework() { codesign_framework() {
local identity="${APPLICATION_ID:--}" # `-` means ad-hoc local identity="${APPLICATION_ID:--}" # `-` means ad-hoc
local framework_root="$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework" local framework_root="$TOOLSDIR/$TYPE/payload${FRAMEWORKDIR}/Python3.framework"
@@ -274,6 +283,7 @@ download_tool munki-pkg "$MP_SHA" \
"https://github.com/munki/munki-pkg/archive/${MP_SHA}.zip" \ "https://github.com/munki/munki-pkg/archive/${MP_SHA}.zip" \
"$MP_ZIP" "$MP_BINDIR" "$MP_ZIP" "$MP_BINDIR"
build_framework build_framework
install_sitecustomize
codesign_framework codesign_framework
build_pkg build_pkg
notarize_and_staple notarize_and_staple
+48
View File
@@ -0,0 +1,48 @@
"""
Site-customization for the macadmins Python framework.
Why this file exists:
The python.org Python.framework is built with OpenSSL's default CA-bundle
path hardcoded to /Library/Frameworks/Python.framework/Versions/<X.Y>/etc/
openssl/cert.pem. Our framework installs under /Library/ManagedFrameworks/
Python/Python3.framework/..., so that hardcoded path doesn't exist on
target machines. Stdlib SSL (urllib.request, http.client.HTTPSConnection,
ssl.SSLContext with default verify paths, etc.) then fails to find a CA
bundle and certificate validation errors out.
A regular python.org install ships /Applications/Python 3.X/Install
Certificates.command that fixes this by symlinking the expected path to
certifi's bundled cacert.pem. We can't do the equivalent because the
expected path is outside our framework — touching it would conflict with
a python.org install if the user has one.
What it does:
Sets SSL_CERT_FILE to certifi's bundled cert path during interpreter
startup. OpenSSL reads SSL_CERT_FILE ahead of its compiled-in path, so
stdlib SSL operations get a working CA bundle.
Falls back to certifi only when SSL_CERT_FILE is unset OR points at a
path that doesn't exist on disk. A valid user override (e.g. a corporate
CA bundle at `export SSL_CERT_FILE=/opt/corp/ca.pem`) is preserved;
a stale or typo'd path gets corrected to certifi.
References:
macadmins/python#38
gregneagle/relocatable-python#13
"""
import os
import os.path
def _ssl_cert_file_is_valid():
path = os.environ.get("SSL_CERT_FILE")
return bool(path) and os.path.isfile(path)
if not _ssl_cert_file_is_valid():
try:
import certifi
except ImportError:
pass
else:
os.environ["SSL_CERT_FILE"] = certifi.where()
+13 -34
View File
@@ -1,58 +1,37 @@
asn1crypto==1.5.1 asn1crypto==1.5.1
aspy.yaml==1.3.0 aspy.yaml==1.3.0
attrs==26.1.0 attrs==26.1.0
black==26.3.1; python_version >= "3.10" black==26.3.1
black==25.11.0; python_version < "3.10"
certifi==2026.4.22 certifi==2026.4.22
cffi==2.0.0 cffi==2.0.0
cfgv==3.5.0; python_version >= "3.10" cfgv==3.5.0
cfgv==3.4.0; python_version < "3.10"
charset-normalizer==3.4.7 charset-normalizer==3.4.7
click==8.3.3; python_version >= "3.10" click==8.3.3
click==8.1.8; python_version < "3.10"
distlib==0.4.0 distlib==0.4.0
attrs==25.3.0
black==25.1.0
certifi==2025.6.15
cffi==1.17.1
cfgv==3.4.0
charset-normalizer==3.4.2
click==8.2.1
distlib==0.3.9
docklib==2.0.0 docklib==2.0.0
entrypoints==0.4 entrypoints==0.4
filelock==3.29.0; python_version >= "3.10" filelock==3.29.0
filelock==3.19.1; python_version < "3.10"
flake8==7.3.0 flake8==7.3.0
flake8-bugbear==25.11.29; python_version >= "3.10" flake8-bugbear==25.11.29
flake8-bugbear==24.12.12; python_version < "3.10" identify==2.6.19
identify==2.6.19; python_version >= "3.10"
identify==2.6.15; python_version < "3.10"
idna==3.14 idna==3.14
isort==8.0.1; python_version >= "3.10" isort==8.0.1
isort==6.1.0; python_version < "3.10"
mccabe==0.7.0 mccabe==0.7.0
mypy-extensions==1.1.0 mypy-extensions==1.1.0
nodeenv==1.10.0 nodeenv==1.10.0
packaging==26.2 packaging==26.2
pathspec==1.1.1 pathspec==1.1.1
platformdirs==4.9.6; python_version >= "3.10" platformdirs==4.9.6
platformdirs==4.4.0; python_version < "3.10" pre-commit==4.6.0
pre-commit==4.6.0; python_version >= "3.10"
pre-commit==4.3.0; python_version < "3.10"
pycodestyle==2.14.0 pycodestyle==2.14.0
pycparser==3.0; python_version >= "3.10" pycparser==3.0
pycparser==2.23; python_version < "3.10"
pyflakes==3.4.0 pyflakes==3.4.0
pyobjc==12.1; python_version >= "3.10" pyobjc==12.1
pyobjc==11.1; python_version < "3.10"
PyYAML==6.0.3 PyYAML==6.0.3
requests==2.34.0; python_version >= "3.10" requests==2.34.0
requests==2.32.5; python_version < "3.10"
six==1.17.0 six==1.17.0
tokenize-rt==6.2.0 tokenize-rt==6.2.0
tomli==2.4.1 tomli==2.4.1
urllib3==2.7.0; python_version >= "3.10" urllib3==2.7.0
urllib3==2.6.3; python_version < "3.10"
virtualenv==21.3.2 virtualenv==21.3.2
xattr==1.3.0 xattr==1.3.0