Skip to content

Commit d5b0f34

Browse files
committed
Update patch to Python 3.12.8.
2 parents c89857a + 5eb3316 commit d5b0f34

File tree

5 files changed

+1309
-334
lines changed

5 files changed

+1309
-334
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
- uses: actions/[email protected]
110110

111111
- name: Set up Python
112-
uses: actions/setup-python@v5.2.0
112+
uses: actions/setup-python@v5.3.0
113113
with:
114114
# Appending -dev ensures that we can always build the dev release.
115115
# It's a no-op for versions that have been published.

.github/workflows/publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v4
1212

1313
- name: Set up Python environment
14-
uses: actions/setup-python@v5.2.0
14+
uses: actions/setup-python@v5.3.0
1515
with:
1616
python-version: "3.X"
1717

Makefile

+12-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ BUILD_NUMBER=custom
1818
# of a release cycle, as official binaries won't be published.
1919
# PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
2020
# PYTHON_VER is the major/minor version (e.g., 3.10)
21-
PYTHON_VERSION=3.12.7
21+
PYTHON_VERSION=3.12.8
2222
PYTHON_PKG_VERSION=$(PYTHON_VERSION)
2323
PYTHON_MICRO_VERSION=$(shell echo $(PYTHON_VERSION) | grep -Eo "\d+\.\d+\.\d+")
2424
PYTHON_PKG_MICRO_VERSION=$(shell echo $(PYTHON_PKG_VERSION) | grep -Eo "\d+\.\d+\.\d+")
@@ -315,6 +315,9 @@ $$(PYTHON_LIB-$(target)): $$(PYTHON_SRCDIR-$(target))/python.exe
315315
make install \
316316
2>&1 | tee -a ../python-$(PYTHON_VERSION).install.log
317317

318+
# Remove any .orig files produced by the compliance patching process
319+
find $$(PYTHON_INSTALL-$(target)) -name "*.orig" -exec rm {} \;
320+
318321
endif
319322

320323
PYTHON_SITECUSTOMIZE-$(target)=$(PROJECT_DIR)/support/$(PYTHON_VER)/$(os)/platform-site/$(target)/sitecustomize.py
@@ -548,6 +551,9 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
548551
# Apply the App Store compliance patch
549552
patch --strip 2 --directory $$(PYTHON_INSTALL_VERSION-macosx)/lib/python$(PYTHON_VER) --input $(PROJECT_DIR)/patch/Python/app-store-compliance.patch
550553

554+
# Remove any .orig files produced by the patching process
555+
find $$(PYTHON_INSTALL_VERSION-macosx) -name "*.orig" -exec rm {} \;
556+
551557
# Rewrite the framework to make it standalone
552558
patch/make-relocatable.sh $$(PYTHON_INSTALL_VERSION-macosx) 2>&1 > /dev/null
553559

@@ -601,6 +607,11 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
601607
@echo ">>> Create helper links in XCframework for $(os)"
602608
$$(foreach sdk,$$(SDKS-$(os)),ln -si $$(SDK_SLICE-$$(sdk)) $$(PYTHON_XCFRAMEWORK-$(os))/$$(sdk); )
603609

610+
ifeq ($(os),iOS)
611+
@echo ">>> Clone testbed project for $(os)"
612+
$(HOST_PYTHON) $$(PYTHON_SRCDIR-$$(firstword $$(SDK_TARGETS-$$(firstword $$(SDKS-$(os))))))/iOS/testbed clone --framework $$(PYTHON_XCFRAMEWORK-$(os)) support/$(PYTHON_VER)/$(os)/testbed
613+
endif
614+
604615
@echo ">>> Create VERSIONS file for $(os)"
605616
echo "Python version: $(PYTHON_VERSION) " > support/$(PYTHON_VER)/$(os)/VERSIONS
606617
echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository:
1212
* `Python 3.10 <https://github.com/beeware/Python-Apple-support/tree/3.10>`__
1313
* `Python 3.11 <https://github.com/beeware/Python-Apple-support/tree/3.11>`__
1414
* `Python 3.13 <https://github.com/beeware/Python-Apple-support/tree/3.13>`__
15+
* `Python 3.14 <https://github.com/beeware/Python-Apple-support/tree/3.14>`__
1516

1617
It works by downloading, patching, and building a fat binary of Python and
1718
selected pre-requisites, and packaging them as frameworks that can be

0 commit comments

Comments
 (0)