Skip to content

Commit 8a962ca

Browse files
authored
Merge pull request #123 from ManimCommunity/fix-wheel-build
Add Python 3.14 support to build workflow
2 parents 9bfbaa7 + 80e3053 commit 8a962ca

File tree

7 files changed

+21
-19
lines changed

7 files changed

+21
-19
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
platform_id: macosx_arm64
3232
architecture: arm64
3333
env:
34-
CIBW_BUILD: cp39-${{ matrix.platform_id }} cp310-${{ matrix.platform_id }} cp311-${{ matrix.platform_id }} cp312-${{ matrix.platform_id }} cp313-${{ matrix.platform_id }}
35-
CIBW_SKIP: pp* cp36* cp37* cp38*
34+
CIBW_BUILD: cp39-${{ matrix.platform_id }} cp310-${{ matrix.platform_id }} cp311-${{ matrix.platform_id }} cp312-${{ matrix.platform_id }} cp313-${{ matrix.platform_id }} cp314-${{ matrix.platform_id }}
35+
CIBW_SKIP: pp* cp38*
3636
CIBW_BEFORE_BUILD_MACOS: "python packing/download_pango_macos.py ${{ matrix.architecture }}"
3737
CIBW_BEFORE_BUILD_WINDOWS: "python packing/download_dlls.py"
3838
CIBW_ENVIRONMENT_WINDOWS: "PKG_CONFIG_PATH='C:\\cibw\\vendor\\lib\\pkgconfig'"
39-
CIBW_ENVIRONMENT_MACOS: "PKG_CONFIG_PATH='/Users/runner/pangobuild/lib/pkgconfig'"
39+
CIBW_ENVIRONMENT_MACOS: "PKG_CONFIG_PATH='/Users/runner/pangobuild/lib/pkgconfig' MACOSX_DEPLOYMENT_TARGET='10.13'"
4040
CIBW_TEST_REQUIRES: pytest pytest-cov
4141
CIBW_TEST_COMMAND: "bash {project}/packing/test_wheels.sh {project}"
4242
steps:
@@ -60,11 +60,11 @@ jobs:
6060
cp packing/LICENSE.bin .
6161
6262
- name: Build wheels
63-
uses: pypa/cibuildwheel@v2.20.0
63+
uses: pypa/cibuildwheel@v3.2.1
6464
env:
6565
PKG_CONFIG_PATH: "C:\\cibw\\vendor\\lib\\pkgconfig"
6666

67-
- uses: actions/upload-artifact@v3
67+
- uses: actions/upload-artifact@v4
6868
with:
6969
path: ./wheelhouse/*.whl
7070
name: wheels-${{ runner.os }}-${{ matrix.platform_id }}
@@ -77,7 +77,7 @@ jobs:
7777
fail-fast: false
7878
matrix:
7979
architecture: [x64, x86]
80-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
80+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
8181
include: [
8282
{platform_id: win_amd64, architecture: x64},
8383
{platform_id: win32, architecture: x86},
@@ -92,7 +92,7 @@ jobs:
9292
architecture: ${{ matrix.architecture }}
9393
allow-prereleases: true
9494

95-
- uses: actions/download-artifact@v3
95+
- uses: actions/download-artifact@v4
9696
with:
9797
name: wheels-${{ runner.os }}-${{ matrix.platform_id }}
9898
path: ~/wheelhouse
@@ -118,7 +118,7 @@ jobs:
118118
fail-fast: false
119119
matrix:
120120
architecture: [x64, arm64]
121-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
121+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
122122
include: [
123123
{platform_id: macosx_x86_64, architecture: x64, os: macos-13},
124124
{platform_id: macosx_arm64, architecture: arm64, os: macos-14},
@@ -133,7 +133,7 @@ jobs:
133133
architecture: ${{ matrix.architecture == 'arm64' && null || matrix.architecture }}
134134
allow-prereleases: true
135135

136-
- uses: actions/download-artifact@v3
136+
- uses: actions/download-artifact@v4
137137
with:
138138
name: wheels-${{ runner.os }}-${{ matrix.platform_id }}
139139
path: ~/wheelhouse
@@ -177,7 +177,7 @@ jobs:
177177
python -m pip install dist/*.tar.gz
178178
179179
- name: Store artifacts
180-
uses: actions/upload-artifact@v3
180+
uses: actions/upload-artifact@v4
181181
with:
182182
path: dist/*.tar.gz
183183
name: manimpango-src
@@ -194,7 +194,7 @@ jobs:
194194
contents: write
195195
if: github.event_name== 'release'
196196
steps:
197-
- uses: actions/download-artifact@v3
197+
- uses: actions/download-artifact@v4
198198
with:
199199
path: downloads/
200200

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
os: [ubuntu-latest, macos-latest]
21-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
21+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2222
steps:
2323
- uses: actions/checkout@v3
2424
- name: Set up Python ${{ matrix.python-version }}
@@ -58,7 +58,7 @@ jobs:
5858
- uses: codecov/codecov-action@v3
5959
with:
6060
file: ./.coverage/coverage.xml
61-
- uses: actions/upload-artifact@v3
61+
- uses: actions/upload-artifact@v4
6262
with:
6363
name: test-artifacts-${{matrix.os}}-${{matrix.python-version}}
6464
path: .pytest_temp/
@@ -70,7 +70,7 @@ jobs:
7070
fail-fast: false
7171
matrix:
7272
os: [windows-2022]
73-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
73+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
7474
architecture: ["x64", "x86"]
7575
steps:
7676
- uses: actions/checkout@v3
@@ -99,7 +99,7 @@ jobs:
9999
- name: Run tests
100100
run: |
101101
pytest -s
102-
- uses: actions/upload-artifact@v3
102+
- uses: actions/upload-artifact@v4
103103
with:
104104
name: test-artifacts-${{matrix.os}}-${{matrix.python-version}} ${{matrix.architecture}}
105105
path: .pytest_temp/

.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ python:
1414
- method: pip
1515
path: .
1616

17+
sphinx:
18+
configuration: docs/conf.py
19+
1720
formats: all

packing/build_pango_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# build and install pango
33
set -e
44

5-
PANGO_VERSION=1.54.0
5+
PANGO_VERSION=1.56.4
66

77
FILE_PATH=$PWD
88
PREFIX="$HOME/pangoprefix"

packing/download_dlls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pathlib import Path
1111
from urllib.request import urlretrieve as download
1212

13-
PANGO_VERSION = "1.54.0-v3"
13+
PANGO_VERSION = "1.56.4-v2"
1414

1515

1616
def get_platform():

packing/download_pango_macos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pathlib import Path
1111
from urllib.request import urlretrieve as download
1212

13-
PANGO_VERSION = "1.54.0-v3"
13+
PANGO_VERSION = "1.56.4-v2"
1414

1515
logging.basicConfig(format="%(levelname)s - %(message)s", level=logging.DEBUG)
1616

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ def update_dict(dict1: dict, dict2: dict):
280280
"Programming Language :: Python :: 3.13",
281281
"Development Status :: 4 - Beta",
282282
"Programming Language :: Python :: 3 :: Only",
283-
"License :: OSI Approved :: MIT License",
284283
"Programming Language :: Cython",
285284
],
286285
project_urls={

0 commit comments

Comments
 (0)