1313 os : [ubuntu-20.04, windows-2019, macos-12]
1414
1515 steps :
16- - uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1717
18- - uses : actions/setup-python@v4
18+ - uses : actions/setup-python@v5
1919 with :
2020 python-version : ' 3.10'
2121
@@ -34,45 +34,32 @@ jobs:
3434 - name : Build wheels
3535 uses : pypa/cibuildwheel@v2.16.5
3636 env :
37- CIBW_BUILD : cp39-* cp310-* cp311-* cp312-*
38- CIBW_SKIP : " *-win32 *-manylinux_i686 *-musllinux_*"
39- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
40- CIBW_MANYLINUX_I686_IMAGE : manylinux2014
41- CIBW_BEFORE_ALL_LINUX : bin/cibw_before_all_linux.sh
42- CIBW_BEFORE_ALL_MACOS : bin/cibw_before_all_macosx_x86_64.sh
37+ # override setting in pyproject.toml to use msys2 instead of msys64 bash
4338 CIBW_BEFORE_ALL_WINDOWS : msys2 -c bin/cibw_before_all_windows.sh
44- CIBW_BEFORE_BUILD_WINDOWS : msys2 -c bin/cibw_before_build_windows.sh
45- CIBW_BEFORE_BUILD : pip install numpy setuptools cython delvewheel
46- CIBW_ENVIRONMENT : >
47- C_INCLUDE_PATH=$(pwd)/.local/include/
48- LIBRARY_PATH=$(pwd)/.local/lib/
49- LD_LIBRARY_PATH=$(pwd)/.local/lib:$LD_LIBRARY_PATH
50- PYTHON_FLINT_MINGW64=true
51- CIBW_REPAIR_WHEEL_COMMAND_WINDOWS : >-
52- bin\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}
53- CIBW_TEST_COMMAND : python -c "import flint; print(str(flint.fmpz(2)))"
54-
55- - uses : actions/upload-artifact@v3
39+ CIBW_BEFORE_BUILD_WINDOWS : pip install delvewheel && msys2 -c bin/cibw_before_build_windows.sh
40+
41+ - uses : actions/upload-artifact@v4
5642 with :
43+ name : wheels-${{ matrix.os }}
5744 path : wheelhouse/*.whl
5845
5946 build_sdist :
6047 name : Build sdist
6148 runs-on : ubuntu-20.04
6249
6350 steps :
64- - uses : actions/checkout@v3
51+ - uses : actions/checkout@v4
6552
66- - uses : actions/setup-python@v4
53+ - uses : actions/setup-python@v5
6754 with :
6855 python-version : ' 3.12'
6956
70- - run : pip install --upgrade pip
71- - run : pip install cython setuptools
72- - run : python setup.py sdist
57+ - run : pip install build
58+ - run : python -m build --sdist
7359
74- - uses : actions/upload-artifact@v3
60+ - uses : actions/upload-artifact@v4
7561 with :
62+ name : sdist
7663 path : dist/*.tar.gz
7764
7865 test_rst :
@@ -81,15 +68,15 @@ jobs:
8168 runs-on : ubuntu-20.04
8269
8370 steps :
84- - uses : actions/checkout@v3
71+ - uses : actions/checkout@v4
8572
86- - uses : actions/setup-python@v4
73+ - uses : actions/setup-python@v5
8774 with :
8875 python-version : ' 3.12'
8976
90- - uses : actions/download-artifact@v3
77+ - uses : actions/download-artifact@v4
9178 with :
92- name : artifact
79+ name : wheels-ubuntu-20.04
9380 path : wheelhouse
9481
9582 - run : pip install --upgrade pip
@@ -108,12 +95,12 @@ jobs:
10895 python-version : ['3.9', '3.10', '3.11', '3.12']
10996
11097 steps :
111- - uses : actions/setup-python@v4
98+ - uses : actions/setup-python@v5
11299 with :
113100 python-version : ${{ matrix.python-version }}
114- - uses : actions/download-artifact@v3
101+ - uses : actions/download-artifact@v4
115102 with :
116- name : artifact
103+ name : wheels-${{ matrix.os }}
117104 path : wheelhouse
118105 - run : pip install --no-index --find-links wheelhouse python_flint
119106 - run : python -m flint.test --verbose
@@ -129,8 +116,8 @@ jobs:
129116 # 'python-flint' means install from PyPI sdist
130117 target : ['.', 'python-flint']
131118 steps :
132- - uses : actions/checkout@v3
133- - uses : actions/setup-python@v4
119+ - uses : actions/checkout@v4
120+ - uses : actions/setup-python@v5
134121 with :
135122 python-version : ${{ matrix.python-version }}
136123 - run : bin/pip_install_ubuntu.sh ${{ matrix.target }}
0 commit comments