Simplify Python bindings and package builds
Read each input path through one opened stream, including gzip detection, and use direct numeric converter lookup while preserving byte-order handling and caller data. Read the package version from installed metadata and report range errors consistently as ValueError. Require the supplied Cargo.lock instead of generating it during builds, use the standard sdist command, and update package checks and development guides. Validation: 15 Python tests pass against source and the rebuilt installed wheel; the source archive and platform wheel build successfully.
This commit is contained in:
parent
54aa757678
commit
a723ba2265
1 changed files with 40 additions and 38 deletions
|
|
@ -10,12 +10,12 @@ ROOT = Path(__file__).resolve().parents[1]
|
|||
# A separate interpreter verifies that base packing does not import PyArrow.
|
||||
subprocess.run(
|
||||
[sys.executable, "-I", "-c", """
|
||||
import importlib.util
|
||||
import sys
|
||||
from importlib.metadata import version
|
||||
import pheon
|
||||
from pheon._native import library
|
||||
assert pheon.__version__ == version('pheon')
|
||||
assert 'pyarrow' not in sys.modules
|
||||
assert importlib.util.find_spec('klamath_rs_ext') is None
|
||||
assert library.parent == __import__('pathlib').Path(pheon.__file__).parent
|
||||
assert pheon.pack_int2([1, -2]) == bytes.fromhex('0001fffe')
|
||||
"""],
|
||||
|
|
|
|||
Loading…
Reference in a new issue