Skip to content

Commit 1da6a5d

Browse files
committed
Merge branch 'main' into 3.9
2 parents 1828cce + 600b9e0 commit 1da6a5d

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22
on:
33
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- 3.*
48

59
env:
610
FORCE_COLOR: "1"

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ jobs:
5555
run: |
5656
PYTHON_VERSION=$(grep "Python version:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 3)
5757
BZIP2_VERSION=$(grep "BZip2:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 2)
58-
XZ_VERSION=$(grep "XZ:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 2)
59-
OPENSSL_VERSION=$(grep "OpenSSL:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 2)
6058
LIBFFI_VERSION=$(grep "libFFI:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 2)
59+
OPENSSL_VERSION=$(grep "OpenSSL:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 2)
60+
XZ_VERSION=$(grep "XZ:" support/${{ steps.build-vars.outputs.PYTHON_VER }}/${{ matrix.target }}/VERSIONS | cut -d " " -f 2)
6161
6262
echo "PYTHON_VERSION=${PYTHON_VERSION}" | tee -a ${GITHUB_OUTPUT}
6363
echo "BZIP2_VERSION=${BZIP2_VERSION}" | tee -a ${GITHUB_OUTPUT}
64-
echo "XZ_VERSION=${XZ_VERSION}" | tee -a ${GITHUB_OUTPUT}
65-
echo "OPENSSL_VERSION=${OPENSSL_VERSION}" | tee -a ${GITHUB_OUTPUT}
6664
echo "LIBFFI_VERSION=${LIBFFI_VERSION}" | tee -a ${GITHUB_OUTPUT}
65+
echo "OPENSSL_VERSION=${OPENSSL_VERSION}" | tee -a ${GITHUB_OUTPUT}
66+
echo "XZ_VERSION=${XZ_VERSION}" | tee -a ${GITHUB_OUTPUT}
6767
6868
- name: Upload Build Artifact
6969
uses: actions/[email protected]
@@ -95,8 +95,8 @@ jobs:
9595
9696
Includes:
9797
* Python ${{ needs.build.outputs.PYTHON_VERSION }}
98-
* OpenSSL ${{ needs.build.outputs.OPENSSL_VERSION }}
9998
* BZip2 ${{ needs.build.outputs.BZIP2_VERSION }}
99+
* libFFI ${{ needs.build.outputs.LIBFFI_VERSION }}
100+
* OpenSSL ${{ needs.build.outputs.OPENSSL_VERSION }}
100101
* XZ ${{ needs.build.outputs.XZ_VERSION }}
101-
* LibFFI ${{ needs.build.outputs.LIBFFI_VERSION }}
102102
artifacts: "dist/*"

Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ BUILD_NUMBER=custom
1414
# Version of packages that will be compiled by this meta-package
1515
# PYTHON_VERSION is the full version number (e.g., 3.10.0b3)
1616
# PYTHON_PKG_VERSION is the version number with binary package releases to use
17+
# for macOS binaries. This will be less than PYTHON_VERSION towards the end
18+
# of a release cycle, as official binaries won't be published.
1719
# PYTHON_MICRO_VERSION is the full version number, without any alpha/beta/rc suffix. (e.g., 3.10.0)
1820
# PYTHON_VER is the major/minor version (e.g., 3.10)
1921
PYTHON_VERSION=3.9.19
2022
PYTHON_PKG_VERSION=3.9.13
2123
PYTHON_MICRO_VERSION=$(shell echo $(PYTHON_VERSION) | grep -Eo "\d+\.\d+\.\d+")
24+
PYTHON_PKG_MICRO_VERSION=$(shell echo $(PYTHON_PKG_VERSION) | grep -Eo "\d+\.\d+\.\d+")
2225
PYTHON_VER=$(basename $(PYTHON_VERSION))
2326

2427
# The binary releases of dependencies, published at:
2528
# https://github.com/beeware/cpython-apple-source-deps/releases
2629
BZIP2_VERSION=1.0.8-1
30+
LIBFFI_VERSION=3.4.6-1
2731
OPENSSL_VERSION=3.0.14-1
2832
XZ_VERSION=5.4.7-1
29-
LIBFFI_VERSION=3.4.6-1
3033

3134
# Supported OS
3235
OS_LIST=macOS iOS tvOS watchOS
@@ -101,7 +104,7 @@ downloads/python-$(PYTHON_PKG_VERSION)-macos11.pkg:
101104
@echo ">>> Download macOS Python package"
102105
mkdir -p downloads
103106
curl $(CURL_FLAGS) -o $@ \
104-
https://www.python.org/ftp/python/$(PYTHON_PKG_VERSION)/python-$(PYTHON_PKG_VERSION)-macos11.pkg
107+
https://www.python.org/ftp/python/$(PYTHON_PKG_MICRO_VERSION)/python-$(PYTHON_PKG_VERSION)-macos11.pkg
105108

106109
###########################################################################
107110
# Build for specified target (from $(TARGETS-*))
@@ -239,9 +242,9 @@ PYTHON_STDLIB-$(target)=$$(PYTHON_INSTALL-$(target))/lib/python$(PYTHON_VER)
239242
$$(PYTHON_SRCDIR-$(target))/configure: \
240243
downloads/Python-$(PYTHON_VERSION).tar.gz \
241244
$$(BZIP2_LIB-$(target)) \
242-
$$(XZ_LIB-$(target)) \
245+
$$(LIBFFI_LIB-$(target)) \
243246
$$(OPENSSL_SSL_LIB-$(target)) \
244-
$$(LIBFFI_LIB-$(target))
247+
$$(XZ_LIB-$(target))
245248
@echo ">>> Unpack and configure Python for $(target)"
246249
mkdir -p $$(PYTHON_SRCDIR-$(target))
247250
tar zxf downloads/Python-$(PYTHON_VERSION).tar.gz --strip-components 1 -C $$(PYTHON_SRCDIR-$(target))
@@ -311,12 +314,12 @@ vars-$(target):
311314
@echo "SDK_ROOT-$(target): $$(SDK_ROOT-$(target))"
312315
@echo "BZIP2_INSTALL-$(target): $$(BZIP2_INSTALL-$(target))"
313316
@echo "BZIP2_LIB-$(target): $$(BZIP2_LIB-$(target))"
314-
@echo "XZ_INSTALL-$(target): $$(XZ_INSTALL-$(target))"
315-
@echo "XZ_LIB-$(target): $$(XZ_LIB-$(target))"
316-
@echo "OPENSSL_INSTALL-$(target): $$(OPENSSL_INSTALL-$(target))"
317-
@echo "OPENSSL_SSL_LIB-$(target): $$(OPENSSL_SSL_LIB-$(target))"
318317
@echo "LIBFFI_INSTALL-$(target): $$(LIBFFI_INSTALL-$(target))"
319318
@echo "LIBFFI_LIB-$(target): $$(LIBFFI_LIB-$(target))"
319+
@echo "OPENSSL_INSTALL-$(target): $$(OPENSSL_INSTALL-$(target))"
320+
@echo "OPENSSL_SSL_LIB-$(target): $$(OPENSSL_SSL_LIB-$(target))"
321+
@echo "XZ_INSTALL-$(target): $$(XZ_INSTALL-$(target))"
322+
@echo "XZ_LIB-$(target): $$(XZ_LIB-$(target))"
320323
@echo "PYTHON_SRCDIR-$(target): $$(PYTHON_SRCDIR-$(target))"
321324
@echo "PYTHON_INSTALL-$(target): $$(PYTHON_INSTALL-$(target))"
322325
@echo "PYTHON_FRAMEWORK-$(target): $$(PYTHON_FRAMEWORK-$(target))"
@@ -568,8 +571,8 @@ $$(PYTHON_XCFRAMEWORK-$(os))/Info.plist: \
568571
echo "Build: $(BUILD_NUMBER)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
569572
echo "Min $(os) version: $$(VERSION_MIN-$(os))" >> support/$(PYTHON_VER)/$(os)/VERSIONS
570573
echo "---------------------" >> support/$(PYTHON_VER)/$(os)/VERSIONS
571-
echo "libFFI: $(LIBFFI_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
572574
echo "BZip2: $(BZIP2_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
575+
echo "libFFI: $(LIBFFI_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
573576
echo "OpenSSL: $(OPENSSL_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
574577
echo "XZ: $(XZ_VERSION)" >> support/$(PYTHON_VER)/$(os)/VERSIONS
575578

0 commit comments

Comments
 (0)