Skip to content

Commit

Permalink
Fetch tags for publication (#203)
Browse files Browse the repository at this point in the history
* Update wheels.yml to fetch tags for publication

* Update ci.yml to commensurate checkout version

* Try also fetch depth 0

* Remove deprecated awkward API call
  • Loading branch information
nsmith- authored Sep 7, 2023
1 parent d6b2eb2 commit ec81bc7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v3
Expand All @@ -39,7 +39,7 @@ jobs:


steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ jobs:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0

- name: Build SDist
run: pipx run build --sdist
Expand All @@ -34,9 +36,11 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-tags: true
fetch-depth: 0

- uses: pypa/cibuildwheel@v2.14.1
env:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install_requires =
test =
pytest >=4.6
scipy
awkward >=2;python_version>"3.7"
awkward >=2.2.2;python_version>"3.7"
awkward <2;python_version<="3.7"
dask-awkward;python_version>"3.7"
dev =
Expand Down
2 changes: 1 addition & 1 deletion src/correctionlib/highlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _call_as_numpy(
x.is_numpy or not isinstance(x, awkward.contents.Content) for x in array_args
):
vargs = [
awkward.to_numpy(awkward.typetracer.empty_if_typetracer(arg))
awkward.to_numpy(awkward.typetracer.length_zero_if_typetracer(arg))
for arg in array_args
]
bargs = numpy.broadcast_arrays(*vargs)
Expand Down

0 comments on commit ec81bc7

Please sign in to comment.