13
13
os : [ubuntu-20.04, windows-2019, macos-12]
14
14
15
15
steps :
16
- - uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
17
17
18
- - uses : actions/setup-python@v4
18
+ - uses : actions/setup-python@v5
19
19
with :
20
20
python-version : ' 3.10'
21
21
@@ -34,45 +34,32 @@ jobs:
34
34
- name : Build wheels
35
35
36
36
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
43
38
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
56
42
with :
43
+ name : wheels-${{ matrix.os }}
57
44
path : wheelhouse/*.whl
58
45
59
46
build_sdist :
60
47
name : Build sdist
61
48
runs-on : ubuntu-20.04
62
49
63
50
steps :
64
- - uses : actions/checkout@v3
51
+ - uses : actions/checkout@v4
65
52
66
- - uses : actions/setup-python@v4
53
+ - uses : actions/setup-python@v5
67
54
with :
68
55
python-version : ' 3.12'
69
56
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
73
59
74
- - uses : actions/upload-artifact@v3
60
+ - uses : actions/upload-artifact@v4
75
61
with :
62
+ name : sdist
76
63
path : dist/*.tar.gz
77
64
78
65
test_rst :
@@ -81,15 +68,15 @@ jobs:
81
68
runs-on : ubuntu-20.04
82
69
83
70
steps :
84
- - uses : actions/checkout@v3
71
+ - uses : actions/checkout@v4
85
72
86
- - uses : actions/setup-python@v4
73
+ - uses : actions/setup-python@v5
87
74
with :
88
75
python-version : ' 3.12'
89
76
90
- - uses : actions/download-artifact@v3
77
+ - uses : actions/download-artifact@v4
91
78
with :
92
- name : artifact
79
+ name : wheels-ubuntu-20.04
93
80
path : wheelhouse
94
81
95
82
- run : pip install --upgrade pip
@@ -108,12 +95,12 @@ jobs:
108
95
python-version : ['3.9', '3.10', '3.11', '3.12']
109
96
110
97
steps :
111
- - uses : actions/setup-python@v4
98
+ - uses : actions/setup-python@v5
112
99
with :
113
100
python-version : ${{ matrix.python-version }}
114
- - uses : actions/download-artifact@v3
101
+ - uses : actions/download-artifact@v4
115
102
with :
116
- name : artifact
103
+ name : wheels-${{ matrix.os }}
117
104
path : wheelhouse
118
105
- run : pip install --no-index --find-links wheelhouse python_flint
119
106
- run : python -m flint.test --verbose
@@ -129,8 +116,8 @@ jobs:
129
116
# 'python-flint' means install from PyPI sdist
130
117
target : ['.', 'python-flint']
131
118
steps :
132
- - uses : actions/checkout@v3
133
- - uses : actions/setup-python@v4
119
+ - uses : actions/checkout@v4
120
+ - uses : actions/setup-python@v5
134
121
with :
135
122
python-version : ${{ matrix.python-version }}
136
123
- run : bin/pip_install_ubuntu.sh ${{ matrix.target }}
0 commit comments