@@ -14,16 +14,16 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - uses : actions/checkout@v4
17- - uses : actions/setup-python@v5
18- name : Install Python
17+ - name : Install uv and set Python version
18+ uses : astral-sh/setup-uv@v6
1919 with :
20- python-version : ' 3.11 '
20+ python-version : ' 3.12 '
2121 - name : Install dependencies
2222 run : |
23- pip install --upgrade pip wheel setuptools build
23+ uv sync --locked --group build
2424 - name : Build sdist
2525 run : |
26- python -m build --sdist --outdir ./dist
26+ uv run python -m build --sdist --outdir ./dist
2727 - uses : actions/upload-artifact@v4
2828 with :
2929 name : wheel-sdist
3939 fail-fast : false
4040 matrix :
4141 include :
42- - artifact : wheel-linux_x86_64_python38
43- python : /opt/python/cp38-cp38/bin/python
44- container : ghcr.io/openjij/openjij-builder-minimum-manylinux_2_28_x86_64:latest
4542 - artifact : wheel-linux_x86_64_python39
4643 python : /opt/python/cp39-cp39/bin/python
4744 container : ghcr.io/openjij/openjij-builder-minimum-manylinux_2_28_x86_64:latest
5451 - artifact : wheel-linux_x86_64_python312
5552 python : /opt/python/cp312-cp312/bin/python
5653 container : ghcr.io/openjij/openjij-builder-minimum-manylinux_2_28_x86_64:latest
54+ - artifact : wheel-linux_x86_64_python313
55+ python : /opt/python/cp313-cp313/bin/python
56+ container : ghcr.io/openjij/openjij-builder-minimum-manylinux_2_28_x86_64:latest
5757
5858 steps :
5959 - uses : actions/checkout@v4
@@ -64,29 +64,12 @@ jobs:
6464 ls /opt/python
6565 ${{matrix.python}} --version > python_version.txt
6666 cat python_version.txt
67- - name : Pip-Tools
68- shell : bash
69- run : |
70- set -eux
71- ${{matrix.python}} -m pip install pip-tools
72- ${{matrix.python}} -m piptools compile setup.cfg
73- ${{matrix.python}} -m piptools compile build-requirements.in
74- - uses : actions/cache@v4
75- with :
76- path : |
77- ~/.cache/pip
78- /var/cache/dnf/
79- key : ${{ runner.os }}-intel-${{ hashFiles('python_version.txt') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('build-requirements.txt') }}
80- restore-keys : |
81- ${{ runner.os }}-intel-${{ hashFiles('python_version.txt') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('build-requirements.txt') }}
82- ${{ runner.os }}-intel-${{ hashFiles('python_version.txt') }}-${{ hashFiles('requirements.txt') }}
83- ${{ runner.os }}-intel-${{ hashFiles('python_version.txt') }}
84- ${{ runner.os }}-intel-
8567 - name : Install Dependencies
8668 shell : bash
8769 run : |
8870 set -eux
89- ${{matrix.python}} -m piptools sync requirements.txt build-requirements.txt
71+ ${{matrix.python}} -m pip install --upgrade pip
72+ ${{matrix.python}} -m pip install --upgrade build auditwheel
9073 - name : Build
9174 run : |
9275 set -x
@@ -117,9 +100,6 @@ jobs:
117100 run : |
118101 set -x
119102 source /opt/intel/oneapi/setvars.sh --force --config="/tmp/tmp/config.txt"
120- ${{matrix.python}} -m auditwheel -h
121- ${{matrix.python}} -m auditwheel show -h
122- ${{matrix.python}} -m auditwheel repair -h
123103 du -ah ./dist
124104 cd dist
125105 for f in *.whl; do ${{matrix.python}} -m auditwheel show $f; done
@@ -140,10 +120,6 @@ jobs:
140120 fail-fast : false
141121 matrix :
142122 include :
143- - artifact : wheel-linux_aarch64_python38
144- os : ubuntu-latest
145- arch : aarch64
146- CIBW_BUILD : cp38-manylinux_aarch64
147123 - artifact : wheel-linux_aarch64_python39
148124 os : ubuntu-latest
149125 arch : aarch64
@@ -160,6 +136,10 @@ jobs:
160136 os : ubuntu-latest
161137 arch : aarch64
162138 CIBW_BUILD : cp312-manylinux_aarch64
139+ - artifact : wheel-linux_aarch64_python313
140+ os : ubuntu-latest
141+ arch : aarch64
142+ CIBW_BUILD : cp313-manylinux_aarch64
163143 steps :
164144 - uses : actions/checkout@v4
165145 - name : Set up QEME
@@ -175,7 +155,6 @@ jobs:
175155176156 env :
177157 CIBW_BUILD : ${{matrix.CIBW_BUILD}}
178- CIBW_SKIP : " cp313-*"
179158 CIBW_ENVIRONMENT : " "
180159 CIBW_PLATFORM : linux
181160 CIBW_ARCHS : ${{matrix.arch}}
@@ -189,7 +168,7 @@ jobs:
189168 CIBW_BEFORE_BUILD_LINUX : >
190169 source scl_source enable gcc-toolset-11 &&
191170 pip install 'pybind11<3' cmake ninja
192- CIBW_PROJECT_REQUIRES_PYTHON : " >=3.8 ,<3.13 "
171+ CIBW_PROJECT_REQUIRES_PYTHON : " >=3.9 ,<3.14 "
193172 - uses : actions/upload-artifact@v4
194173 with :
195174 name : ${{matrix.artifact}}
@@ -216,10 +195,10 @@ jobs:
216195 - name : Build wheels on macos x86_64
217196218197 env :
219- CIBW_SKIP : " cp313-* pp*"
198+ CIBW_SKIP : " pp*"
220199 CIBW_PLATFORM : macos
221200 CIBW_ARCHS : x86_64
222- CIBW_PROJECT_REQUIRES_PYTHON : " >=3.8 ,<3.13 "
201+ CIBW_PROJECT_REQUIRES_PYTHON : " >=3.9 ,<3.14 "
223202 CIBW_ENVIRONMENT : >
224203 MACOSX_DEPLOYMENT_TARGET=${{ matrix.MACOSX_DEPLOYMENT_TARGET }}
225204 - uses : actions/upload-artifact@v4
@@ -248,10 +227,10 @@ jobs:
248227 - name : Build wheels on macos arm64
249228250229 env :
251- CIBW_SKIP : " cp313-* pp*"
230+ CIBW_SKIP : " pp*"
252231 CIBW_PLATFORM : macos
253232 CIBW_ARCHS : arm64
254- CIBW_PROJECT_REQUIRES_PYTHON : " >=3.8 ,<3.13 "
233+ CIBW_PROJECT_REQUIRES_PYTHON : " >=3.9 ,<3.14 "
255234 CIBW_ENVIRONMENT : " MACOSX_DEPLOYMENT_TARGET=${{ matrix.MACOSX_DEPLOYMENT_TARGET }}"
256235 - uses : actions/upload-artifact@v4
257236 with :
@@ -276,24 +255,6 @@ jobs:
276255 - name : Add msbuild to PATH
277256 if : ${{ matrix.os == 'windows-latest'}}
278257279- - name : Prepare Cache
280- if : ${{ matrix.os == 'windows-latest'}}
281- shell : bash
282- run : |
283- set -eux
284- ls C:/vcpkg
285- MSBuild.exe -version > msbuild_version.txt
286- cat msbuild_version.txt
287- - name : Cache vcpkg
288- uses : actions/cache@v4
289- if : ${{ matrix.os == 'windows-latest'}}
290- with :
291- path : |
292- C:/Users/runneradmin/AppData/Local/vcpkg/archives
293- key : ${{ matrix.os }}-vcpkg-${{ hashFiles('msbuild_version.txt') }}
294- restore-keys : |
295- ${{ matrix.os }}-vcpkg-${{ hashFiles('msbuild_version.txt') }}
296- ${{ matrix.os }}-vcpkg
297258 - name : Install Dependency
298259 shell : bash
299260 run : |
@@ -307,11 +268,10 @@ jobs:
307268 - name : Build wheels on ${{ matrix.CIBW_PLATFORM }} ${{matrix.arch}}
308269309270 env :
310- CIBW_SKIP : " cp313-*"
311271 CIBW_ENVIRONMENT : ${{ matrix.CIBW_ENVIRONMENT }}
312272 CIBW_PLATFORM : ${{ matrix.CIBW_PLATFORM }}
313273 CIBW_ARCHS : ${{matrix.arch}}
314- CIBW_PROJECT_REQUIRES_PYTHON : " >=3.8 ,<3.13 "
274+ CIBW_PROJECT_REQUIRES_PYTHON : " >=3.9 ,<3.14 "
315275
316276 - uses : actions/upload-artifact@v4
317277 with :
0 commit comments