Skip to content

Commit

Permalink
Merge branch 'main' into 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Dec 13, 2024
2 parents 548a044 + 5eb3316 commit 1833f11
Show file tree
Hide file tree
Showing 5 changed files with 1,135 additions and 150 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- uses: actions/[email protected]

- name: Set up Python
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
with:
# Appending -dev ensures that we can always build the dev release.
# It's a no-op for versions that have been published.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python environment
uses: actions/setup-python@v5.2.0
uses: actions/setup-python@v5.3.0
with:
python-version: "3.X"

Expand Down
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BUILD_NUMBER=custom
# of a release cycle, as official binaries won't be published.
# PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
# PYTHON_VER is the major/minor version (e.g., 3.10)
PYTHON_VERSION=3.11.10
PYTHON_VERSION=3.11.11
PYTHON_PKG_VERSION=3.11.9
PYTHON_MICRO_VERSION=$(shell echo $(PYTHON_VERSION) | grep -Eo "\d+\.\d+\.\d+")
PYTHON_PKG_MICRO_VERSION=$(shell echo $(PYTHON_PKG_VERSION) | grep -Eo "\d+\.\d+\.\d+")
Expand Down Expand Up @@ -322,6 +322,9 @@ $$(PYTHON_LIB-$(target)): $$(PYTHON_SRCDIR-$(target))/python.exe
make install \
2>&1 | tee -a ../python-$(PYTHON_VERSION).install.log

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

endif

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

# Remove any .orig files produced by the patching process
find $$(PYTHON_INSTALL_VERSION-macosx) -name "*.orig" -exec rm {} \;

# Rewrite the framework to make it standalone
patch/make-relocatable.sh $$(PYTHON_INSTALL_VERSION-macosx) 2>&1 > /dev/null

Expand Down Expand Up @@ -608,6 +614,11 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
@echo ">>> Create helper links in XCframework for $(os)"
$$(foreach sdk,$$(SDKS-$(os)),ln -si $$(SDK_SLICE-$$(sdk)) $$(PYTHON_XCFRAMEWORK-$(os))/$$(sdk); )

ifeq ($(os),iOS)
@echo ">>> Clone testbed project for $(os)"
$(HOST_PYTHON) $$(PYTHON_SRCDIR-$$(firstword $$(SDK_TARGETS-$$(firstword $$(SDKS-$(os))))))/iOS/testbed clone --framework $$(PYTHON_XCFRAMEWORK-$(os)) support/$(PYTHON_VER)/$(os)/testbed
endif

@echo ">>> Create VERSIONS file for $(os)"
echo "Python version: $(PYTHON_VERSION) " > support/$(PYTHON_VER)/$(os)/VERSIONS
echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repository:
* `Python 3.10 <https://github.com/beeware/Python-Apple-support/tree/3.10>`__
* `Python 3.12 <https://github.com/beeware/Python-Apple-support/tree/3.12>`__
* `Python 3.13 <https://github.com/beeware/Python-Apple-support/tree/3.13>`__
* `Python 3.14 <https://github.com/beeware/Python-Apple-support/tree/3.14>`__

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

0 comments on commit 1833f11

Please sign in to comment.