Require PyArrow in the Python package

Keep the arrow extra available for existing requirements. Update wheel checks and install instructions, and verify that integer packing leaves PyArrow unloaded.
This commit is contained in:
Jan Petykiewicz 2026-11-18 12:36:58 -08:00
commit f474e9848c

View file

@ -7,7 +7,7 @@ import unittest
ROOT = Path(__file__).resolve().parents[1]
# A separate interpreter verifies that base packing does not import PyArrow.
# A separate interpreter checks that PyArrow stays unloaded during packing.
subprocess.run(
[sys.executable, "-I", "-c", """
import sys
@ -15,9 +15,9 @@ from importlib.metadata import version
import pheon
from pheon._native import library
assert pheon.__version__ == version('pheon')
assert 'pyarrow' not in sys.modules
assert library.parent == __import__('pathlib').Path(pheon.__file__).parent
assert pheon.pack_int2([1, -2]) == bytes.fromhex('0001fffe')
assert 'pyarrow' not in sys.modules
"""],
check=True,
)