Skip to content

Commit

Permalink
Merge branch 'main' into ianna/update_to_mac_os_12
Browse files Browse the repository at this point in the history
  • Loading branch information
ianna authored Jun 25, 2024
2 parents fb15373 + 0b8b5db commit 249fc74
Show file tree
Hide file tree
Showing 52 changed files with 4,116 additions and 445 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Prepare build files
run: pipx run nox -s prepare

- uses: pypa/cibuildwheel@v2.18.1
- uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_BUILD: "${{ matrix.build }}*"
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

- uses: docker/setup-qemu-action@v3.0.0

- uses: pypa/cibuildwheel@v2.18.1
- uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_BUILD: cp${{ matrix.python }}-*
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
run: ls -l dist/

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
with:
subject-path: "dist/awkward*cpp-*"

- uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@v1.9.0
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
run: pipx run twine check dist/*

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
with:
subject-path: "dist/awkward-*"

Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh attestation verify dist/awkward-*.whl --repo ${{ github.repository }}

- uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@v1.9.0

publish-headers:
name: "Publish header-only libraries alongside release"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/packaging-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ jobs:
- name: Prepare build files
run: pipx run nox -s prepare

- uses: pypa/cibuildwheel@v2.18.1
- uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_ARCHS_MACOS: universal2
CIBW_BUILD: cp39-win_amd64 cp310-manylinux_x86_64 cp38-macosx_universal2
with:
config-file: cibuildwheel.toml
package-dir: awkward-cpp

- uses: pypa/cibuildwheel@v2.18.1
- uses: pypa/cibuildwheel@v2.19.1
if: matrix.os == 'ubuntu-latest'
env:
CIBW_BUILD: cp312-manylinux_x86_64
Expand Down
4 changes: 4 additions & 0 deletions dev/generate-kernel-signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"awkward_ListOffsetArray_drop_none_indexes",
"awkward_ListOffsetArray_reduce_local_nextparents_64",
"awkward_ListOffsetArray_reduce_nonlocal_maxcount_offsetscopy_64",
"awkward_ListOffsetArray_reduce_local_outoffsets_64",
"awkward_UnionArray_flatten_length",
"awkward_UnionArray_flatten_combine",
"awkward_UnionArray_nestedfill_tags_index",
Expand All @@ -123,6 +124,7 @@
"awkward_reduce_sum_int32_bool_64",
"awkward_reduce_sum_int64_bool_64",
"awkward_reduce_sum_bool",
"awkward_reduce_prod",
"awkward_reduce_prod_bool",
"awkward_reduce_countnonzero",
"awkward_sorting_ranges",
Expand Down Expand Up @@ -381,6 +383,8 @@ def kernel_signatures_cuda_py(specification):
from awkward._connect.cuda import fetch_specialization
from awkward._connect.cuda import import_cupy
import math
cupy = import_cupy("Awkward Arrays with CUDA")
"""
)
Expand Down
10 changes: 7 additions & 3 deletions dev/generate-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ def genspectests(specdict):
"""
)
f.write("import pytest\nimport kernels\n\n")
f.write("import pytest\nimport numpy as np\nimport kernels\n\n")
num = 1
if spec.tests == []:
Expand Down Expand Up @@ -894,6 +893,7 @@ def gencpuunittests(specdict):
"awkward_ListOffsetArray_drop_none_indexes",
"awkward_ListOffsetArray_reduce_local_nextparents_64",
"awkward_ListOffsetArray_reduce_nonlocal_maxcount_offsetscopy_64",
"awkward_ListOffsetArray_reduce_local_outoffsets_64",
"awkward_UnionArray_flatten_length",
"awkward_UnionArray_flatten_combine",
"awkward_UnionArray_nestedfill_tags_index",
Expand All @@ -909,6 +909,7 @@ def gencpuunittests(specdict):
"awkward_reduce_sum_int32_bool_64",
"awkward_reduce_sum_int64_bool_64",
"awkward_reduce_sum_bool",
"awkward_reduce_prod",
"awkward_reduce_prod_bool",
"awkward_reduce_countnonzero",
"awkward_sorting_ranges",
Expand Down Expand Up @@ -959,6 +960,8 @@ def gencudakerneltests(specdict):

f.write(
"import cupy\n"
"import cupy.testing as cpt\n"
"import numpy as np\n"
"import pytest\n\n"
"import awkward as ak\n"
"import awkward._connect.cuda as ak_cu\n"
Expand Down Expand Up @@ -1028,7 +1031,7 @@ def gencudakerneltests(specdict):
if isinstance(val, list):
f.write(
" " * 4
+ f"assert cupy.array_equal({arg}[:len(pytest_{arg})], cupy.array(pytest_{arg}))\n"
+ f"cpt.assert_allclose({arg}[:len(pytest_{arg})], cupy.array(pytest_{arg}))\n"
)
else:
f.write(" " * 4 + f"assert {arg} == pytest_{arg}\n")
Expand Down Expand Up @@ -1088,6 +1091,7 @@ def gencudaunittests(specdict):
f.write(
"import re\n"
"import cupy\n"
"import cupy.testing as cpt\n"
"import pytest\n\n"
"import awkward as ak\n"
"import awkward._connect.cuda as ak_cu\n"
Expand Down Expand Up @@ -1224,7 +1228,7 @@ def gencudaunittests(specdict):
if isinstance(val, list):
f.write(
" " * 4
+ f"assert cupy.array_equal({arg}[:len(pytest_{arg})], cupy.array(pytest_{arg}))\n"
+ f"cpt.assert_allclose({arg}[:len(pytest_{arg})], cupy.array(pytest_{arg}))\n"
)
else:
f.write(" " * 4 + f"assert {arg} == pytest_{arg}\n")
Expand Down
Loading

0 comments on commit 249fc74

Please sign in to comment.