Skip to content

Commit dff4d6c

Browse files
authored
Merge branch 'main' into fix_pcodec_soft
2 parents acbf610 + 2309714 commit dff4d6c

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
conda activate env
101101
pytest -v
102102
103-
- uses: codecov/codecov-action@v4
103+
- uses: codecov/codecov-action@v5
104104
with:
105105
token: ${{ secrets.CODECOV_TOKEN }}
106106
verbose: true

docs/release.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Fixes
1616
* Cleanup ``crc32c`` soft dependency.
1717
By :user:`John Kirkham <jakirkham>`, :issue:`637`
1818

19+
Improvements
20+
~~~~~~~~~~~~
21+
* Add `noexcept` to `_utils` C-equiv functions
22+
By :user:`John Kirkham <jakirkham>`, :issue:`641`.
1923

2024
.. _release_0.14.0:
2125

numcodecs/_utils.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
from libc.stdint cimport uint8_t, uint32_t
99

1010

11-
cdef inline void store_le32(uint8_t c[4], uint32_t i) nogil:
11+
cdef inline void store_le32(uint8_t c[4], uint32_t i) noexcept nogil:
1212
c[0] = i & 0xFF
1313
c[1] = (i >> 8) & 0xFF
1414
c[2] = (i >> 16) & 0xFF
1515
c[3] = (i >> 24) & 0xFF
1616

1717

18-
cdef inline uint32_t load_le32(const uint8_t c[4]) nogil:
18+
cdef inline uint32_t load_le32(const uint8_t c[4]) noexcept nogil:
1919
return (
2020
c[0] |
2121
(c[1] << 8) |

numcodecs/compat_ext.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from .compat import ensure_contiguous_ndarray
1212
cdef class Buffer:
1313
"""Convenience class for buffer interface."""
1414

15-
def __cinit__(self, obj, flags):
15+
def __cinit__(self, obj, int flags):
1616
PyObject_GetBuffer(obj, &(self.buffer), flags)
1717
self.acquired = True
1818
self.ptr = <char *> self.buffer.buf

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ docs = [
5050
"sphinx-issues",
5151
"pydata-sphinx-theme",
5252
"numpydoc",
53-
"mock",
5453
]
5554
test = [
5655
"coverage",

0 commit comments

Comments
 (0)