2222 - uses : actions/checkout@v4
2323 - uses : actions/setup-python@v5
2424 with :
25- python-version : 3.9
25+ python-version : 3.12
2626 - uses : actions/cache@v4
2727 id : cache
2828 with :
9494 fetch-depth : 0
9595 - uses : actions/setup-python@v5
9696 with :
97- python-version : 3.9
97+ python-version : 3.12
9898 - uses : actions/cache@v4
9999 id : cache
100100 with :
@@ -137,7 +137,7 @@ jobs:
137137 runs-on : macos-13
138138 strategy :
139139 matrix :
140- python-version : ["3.10", 3.11]
140+ python-version : ["3.10", 3.11, 3.12 ]
141141 fail-fast : false
142142 steps :
143143 - uses : actions/checkout@v4
@@ -151,7 +151,9 @@ jobs:
151151 - name : Build macOS wheels
152152 run : |
153153 python --version
154- python -m pip install delocate wheel setuptools numpy six --no-cache-dir
154+ python -m pip install delocate wheel setuptools numpy six pip-tools --no-cache-dir
155+ # This is needed because the requirements are different on every OS and Python version
156+ pip-compile --strip-extras --no-emit-index-url --allow-unsafe larq_compute_engine/requirements.in
155157
156158 ./configure.py
157159 # This matches `release_macox_x86` in .tensorflow.bazelrc
@@ -182,7 +184,7 @@ jobs:
182184 runs-on : macos-14
183185 strategy :
184186 matrix :
185- python-version : ["3.10", 3.11]
187+ python-version : ["3.10", 3.11, 3.12 ]
186188 fail-fast : false
187189 steps :
188190 - uses : actions/checkout@v4
@@ -196,7 +198,9 @@ jobs:
196198 - name : Build macOS wheels
197199 run : |
198200 python --version
199- python -m pip install delocate wheel setuptools numpy six --no-cache-dir
201+ python -m pip install delocate wheel setuptools numpy six pip-tools --no-cache-dir
202+ # This is needed because the requirements are different on every OS and Python version
203+ pip-compile --strip-extras --no-emit-index-url --allow-unsafe larq_compute_engine/requirements.in
200204
201205 ./configure.py
202206 # This matches `release_macox_arm64` in .tensorflow.bazelrc
@@ -227,7 +231,7 @@ jobs:
227231 runs-on : ubuntu-latest
228232 strategy :
229233 matrix :
230- python-version : ["3.10", 3.11]
234+ python-version : ["3.10", 3.11, 3.12 ]
231235 fail-fast : false
232236 steps :
233237 - uses : actions/checkout@v4
@@ -238,6 +242,11 @@ jobs:
238242 continue-on-error : true
239243 with :
240244 credentials_json : ${{ secrets.gcs_bazel_cache }}
245+ - name : Generate requirements.txt
246+ run : |
247+ python -m pip install pip-tools --no-cache-dir
248+ # This is needed because the requirements are different on every OS and Python version
249+ pip-compile --strip-extras --no-emit-index-url --allow-unsafe larq_compute_engine/requirements.in
241250 - name : Build manylinux2014 wheels
242251 run : |
243252 if [[ -n $GOOGLE_APPLICATION_CREDENTIALS ]]; then
@@ -272,7 +281,7 @@ jobs:
272281 runs-on : windows-2019
273282 strategy :
274283 matrix :
275- python-version : ["3.10", 3.11]
284+ python-version : ["3.10", 3.11, 3.12 ]
276285 fail-fast : false
277286 steps :
278287 - name : Configure Pagefile
@@ -301,7 +310,7 @@ jobs:
301310
302311 python --version
303312 python -m pip install wheel setuptools numpy six pip-tools --no-cache-dir
304- # This is needed because the requirements on windows are different than on other systems
313+ # This is needed because the requirements are different on every OS and Python version
305314 pip-compile --strip-extras --no-emit-index-url --allow-unsafe larq_compute_engine/requirements.in
306315
307316 # Fix for path length limit: replace workspace name by 'lce'
0 commit comments