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:
parent
8efeb04aab
commit
f474e9848c
1 changed files with 20 additions and 23 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue