• Home
  • Raw
  • Download

Lines Matching +full:python3 +full:- +full:pip

1 ---
21 runs-on: ubuntu-latest
23 - name: Checkout PyYAML
26 - name: Install a python
27 uses: actions/setup-python@v2
29 python-version: 3.x
31 - name: Build sdist
36 python -V
37 python -m pip install build
39 python -m build .
42 [[ $(shopt -s nullglob; ls dist/*.tar.gz | wc -w) == 1 ]] || {
47 - name: Test sdist
52 sudo apt install libyaml-dev -y
55 python -m pip uninstall Cython -y || true
58 # We should auto-install with libyaml since it's present.
59 python -m pip install dist/*.tar.gz -v
63 - name: Upload sdist artifact
64 uses: actions/upload-artifact@v2
72 runs-on: ubuntu-latest
76 - { platform: manylinux1, arch: x86_64 }
77 - { platform: manylinux2014, arch: x86_64 }
78 # - { platform: manylinux2014, arch: aarch64 }
79 # - { platform: manylinux2014, arch: s390x }
83 - name: Check cached libyaml state
90 - name: configure docker foreign arch support
91 uses: docker/setup-qemu-action@v1
92 if: matrix.cfg.arch != 'x86_64' && steps.cached_libyaml.outputs.cache-hit != 'true'
94 - name: Checkout pyyaml
96 if: steps.cached_libyaml.outputs.cache-hit != 'true'
98 - name: Build libyaml
100 docker run --rm
101 --volume "$(pwd):/io"
102 --env LIBYAML_REF
103 --env LIBYAML_REPO
104 --workdir /io
107 if: steps.cached_libyaml.outputs.cache-hit != 'true'
109 - name: ensure output is world readable (or cache fill fails with Permission Denied)
111 sudo chmod -R a+r ./libyaml/
112 if: steps.cached_libyaml.outputs.cache-hit != 'true'
118 runs-on: ubuntu-latest
122 - { platform: manylinux1, arch: x86_64, spec: cp36 }
123 # - { platform: manylinux1, arch: x86_64, spec: cp37 }
124 # - { platform: manylinux1, arch: x86_64, spec: cp38 }
125 # - { platform: manylinux1, arch: x86_64, spec: cp39 }
126 # - { platform: manylinux2014, arch: x86_64, spec: cp310 }
127 - { platform: manylinux2014, arch: x86_64, spec: cp311 }
128 # - { platform: manylinux2014, arch: aarch64, spec: cp36 }
129 # - { platform: manylinux2014, arch: aarch64, spec: cp37 }
130 # - { platform: manylinux2014, arch: aarch64, spec: cp38 }
131 # - { platform: manylinux2014, arch: aarch64, spec: cp39 }
132 # - { platform: manylinux2014, arch: aarch64, spec: cp310 }
133 # - { platform: manylinux2014, arch: aarch64, spec: cp311 }
134 # - { platform: manylinux2014, arch: s390x, spec: cp36 }
135 # - { platform: manylinux2014, arch: s390x, spec: cp37 }
136 # - { platform: manylinux2014, arch: s390x, spec: cp38 }
137 # - { platform: manylinux2014, arch: s390x, spec: cp39 }
138 # - { platform: manylinux2014, arch: s390x, spec: cp310 }
139 # - { platform: manylinux2014, arch: s390x, spec: cp311 }
142 - name: Checkout PyYAML
145 - name: Fetch cached libyaml
152 - name: Ensure libyaml fetched
154 if: steps.cached_libyaml.outputs.cache-hit != 'true'
156 - name: configure docker foreign arch support
157 uses: docker/setup-qemu-action@v1
160 - name: Build/Test/Package
163 CIBW_BUILD: ${{matrix.spec}}-manylinux_${{matrix.arch}}
174 set -eux
175 python3 -V
176 python3 -m pip install -U --user cibuildwheel
177 python3 -m cibuildwheel --platform auto --output-dir dist .
179 - name: Upload artifacts
180 uses: actions/upload-artifact@v2
184 if-no-files-found: error
191 - arch: x86_64
192 # - arch: arm64
193 # runs_on: [self-hosted, macOS, arm64]
195 # run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
199 shell: ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
200 runs-on: ${{ matrix.runs_on || 'macos-11' }}
202 - name: Check cached libyaml state
209 - name: Checkout PyYAML
211 if: steps.cached_libyaml.outputs.cache-hit != 'true'
213 - name: Build libyaml
218 set -eux
221 echo "finished artifact arch is $(lipo -archs libyaml/src/.libs/libyaml.a)"
222 if: steps.cached_libyaml.outputs.cache-hit != 'true'
228 runs-on: ${{ matrix.runs_on || 'macos-11' }}
231 shell: ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
235 - spec: cp36-macosx_x86_64
237 # - spec: cp37-macosx_x86_64
238 # - spec: cp38-macosx_x86_64
239 # - spec: cp39-macosx_x86_64
240 # - spec: cp310-macosx_x86_64
241 - spec: cp311-macosx_x86_64
243 # # build for arm64 under a hacked macOS 12 self-hosted x86_64-on-arm64 runner until arm64 i…
244 …# FIXME: ? cp38-macosx_arm64 requires special handling and fails some test_zdist tests under cibw …
245 # - spec: cp39-macosx_arm64
247 # runs_on: [self-hosted, macOS, arm64]
249 # run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
252 # - spec: cp310-macosx_arm64
254 # runs_on: [self-hosted, macOS, arm64]
256 # run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
259 # - spec: cp311-macosx_arm64
261 # runs_on: [self-hosted, macOS, arm64]
263 # run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
267 - name: Checkout PyYAML
270 - name: Get cached libyaml state
277 - name: Ensure libyaml fetched
279 if: steps.cached_libyaml.outputs.cache-hit != 'true'
281 - name: Build/Test/Package
291 python3 -V
292 python3 -m pip install -U --user ${{ matrix.cibw_version || 'cibuildwheel' }}
293 python3 -m cibuildwheel --platform auto --output-dir dist .
295 - name: Upload artifacts
296 uses: actions/upload-artifact@v2
300 if-no-files-found: error
304 runs-on: ${{matrix.platform}}
308 - platform: windows-2019
310 - platform: windows-2019
313 - name: Get cached libyaml state
320 - name: Build libyaml
322 if: steps.cached_libyaml.outputs.cache-hit != 'true'
327 if [[ ! -d ./libyaml ]]; then
328 git clone -b ${{ env.LIBYAML_REF }} ${{ env.LIBYAML_REPO }} 2>&1
332 git clean -fdx
338 cmake.exe -G "Visual Studio 16 2019" -A ${{ matrix.arch }} -DYAML_STATIC_LIB_NAME=yaml ..
339 cmake.exe --build . --config Release
346 runs-on: ${{matrix.platform}}
350 - platform: windows-2019
354 # - platform: windows-2019
358 # - platform: windows-2019
362 # - platform: windows-2019
366 # - platform: windows-2019
370 - platform: windows-2019
374 - platform: windows-2019
378 # - platform: windows-2019
382 # - platform: windows-2019
386 # - platform: windows-2019
390 # - platform: windows-2019
394 - platform: windows-2019
400 - name: Set git to use LF
402 git config --global core.autocrlf false
403 git config --global core.eol lf
405 - name: Checkout pyyaml
408 - name: Get cached libyaml state
415 - name: Ensure libyaml fetched
417 if: steps.cached_libyaml.outputs.cache-hit != 'true'
419 - name: Install python ${{ matrix.spec }}
420 uses: actions/setup-python@v2
423 python-version: ${{ matrix.spec }}
425 - name: Build/Test/Package
431 set -eux
432 python -V
433 python -m pip install "Cython<3.0" wheel
436 --with-libyaml build_ext \
437 -I libyaml/include \
438 -L libyaml/build/Release \
439 -D YAML_DECLARE_STATIC \
443 python -m pip install dist/*.whl
446 - name: Upload artifacts
447 uses: actions/upload-artifact@v2
451 if-no-files-found: error