rns-engine 0.9.0__tar.gz → 0.10.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {rns_engine-0.9.0 → rns_engine-0.10.0}/PKG-INFO +13 -7
  2. {rns_engine-0.9.0 → rns_engine-0.10.0}/README.md +7 -4
  3. {rns_engine-0.9.0 → rns_engine-0.10.0}/pyproject.toml +18 -5
  4. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine.egg-info/PKG-INFO +13 -7
  5. rns_engine-0.10.0/src/rns_engine.egg-info/requires.txt +13 -0
  6. rns_engine-0.10.0/tests/test_packaging.py +40 -0
  7. rns_engine-0.9.0/src/rns_engine.egg-info/requires.txt +0 -5
  8. rns_engine-0.9.0/tests/test_packaging.py +0 -8
  9. {rns_engine-0.9.0 → rns_engine-0.10.0}/CAPACITY_PLANNING.md +0 -0
  10. {rns_engine-0.9.0 → rns_engine-0.10.0}/CUDA_PARALLEL_LANES.md +0 -0
  11. {rns_engine-0.9.0 → rns_engine-0.10.0}/LICENSE +0 -0
  12. {rns_engine-0.9.0 → rns_engine-0.10.0}/MANIFEST.in +0 -0
  13. {rns_engine-0.9.0 → rns_engine-0.10.0}/PRE_CUDA_READINESS.md +0 -0
  14. {rns_engine-0.9.0 → rns_engine-0.10.0}/benchmarks/weighted_int32_baseline.py +0 -0
  15. {rns_engine-0.9.0 → rns_engine-0.10.0}/colab/T4_EXACT_GEMM_BRINGUP.ipynb +0 -0
  16. {rns_engine-0.9.0 → rns_engine-0.10.0}/setup.cfg +0 -0
  17. {rns_engine-0.9.0 → rns_engine-0.10.0}/setup.py +0 -0
  18. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/__init__.py +0 -0
  19. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/_core.cpp +0 -0
  20. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/_weighted.cpp +0 -0
  21. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/capacity.py +0 -0
  22. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/coefficients.py +0 -0
  23. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/cuda_contract.py +0 -0
  24. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/engine.py +0 -0
  25. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/exact_gemm.py +0 -0
  26. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/lane_plan.py +0 -0
  27. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/pre_cuda.py +0 -0
  28. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/rail_planning.py +0 -0
  29. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/signed.py +0 -0
  30. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/weighted.py +0 -0
  31. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine/wide.py +0 -0
  32. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine.egg-info/SOURCES.txt +0 -0
  33. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine.egg-info/dependency_links.txt +0 -0
  34. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine.egg-info/entry_points.txt +0 -0
  35. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine.egg-info/not-zip-safe +0 -0
  36. {rns_engine-0.9.0 → rns_engine-0.10.0}/src/rns_engine.egg-info/top_level.txt +0 -0
  37. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_capacity.py +0 -0
  38. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_coefficients.py +0 -0
  39. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_cuda_contract.py +0 -0
  40. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_exact_gemm.py +0 -0
  41. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_pre_cuda.py +0 -0
  42. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_pre_cuda_assets.py +0 -0
  43. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_rail_planning.py +0 -0
  44. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_rns.py +0 -0
  45. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_session.py +0 -0
  46. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_signed.py +0 -0
  47. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_weighted.py +0 -0
  48. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_weighted_benchmark.py +0 -0
  49. {rns_engine-0.9.0 → rns_engine-0.10.0}/tests/test_wide.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rns_engine
3
- Version: 0.9.0
3
+ Version: 0.10.0
4
4
  Summary: Exact RNS engine with session/cache API.
5
5
  Author: Evan Wesley
6
6
  License-Expression: AGPL-3.0-only
@@ -10,15 +10,18 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
13
14
  Classifier: Programming Language :: C++
14
15
  Classifier: Operating System :: OS Independent
15
- Requires-Python: >=3.10
16
+ Requires-Python: <3.15,>=3.10
16
17
  Description-Content-Type: text/markdown
17
18
  License-File: LICENSE
18
19
  Requires-Dist: numpy>=1.23
19
20
  Provides-Extra: test
20
21
  Requires-Dist: pytest; extra == "test"
21
- Requires-Dist: numpy==2.2.6; extra == "test"
22
+ Requires-Dist: tomli>=1; python_version < "3.11" and extra == "test"
23
+ Requires-Dist: numpy==2.2.6; python_version < "3.14" and extra == "test"
24
+ Requires-Dist: numpy==2.4.5; python_version >= "3.14" and extra == "test"
22
25
  Dynamic: license-file
23
26
 
24
27
  # rns_engine
@@ -69,7 +72,7 @@ The centered signed interpretation lives in:
69
72
  pip install rns_engine
70
73
  ```
71
74
 
72
- Supported Python versions: **3.10–3.13**.
75
+ Supported Python versions: **3.10–3.14**.
73
76
 
74
77
  ### AVX2 note
75
78
 
@@ -506,7 +509,7 @@ python -m pytest tests/ -v
506
509
 
507
510
  Requirements:
508
511
 
509
- - Python 3.10–3.13
512
+ - Python 3.10–3.14
510
513
  - C++17 compiler
511
514
  - Access to the build dependencies declared in `pyproject.toml`
512
515
 
@@ -536,8 +539,11 @@ rns.HAS_AVX2
536
539
 
537
540
  ## Current release
538
541
 
539
- ### v0.9.0
542
+ ### v0.10.0
540
543
 
544
+ - prebuilt CPython 3.14 wheels for Linux x86-64, macOS Intel and Apple silicon, and Windows x64
545
+ - direct native build and full test coverage on Python 3.10–3.14
546
+ - Python 3.14-compatible pybind11 and NumPy build dependencies
541
547
  - configurable correctness-first CRT oracle for arbitrary pairwise-coprime rails
542
548
  - two lawful seven-rail profiles closing the 126-bit eight-plane target
543
549
  - exact signed radix-128 decomposition and reconstruction
@@ -552,7 +558,7 @@ rns.HAS_AVX2
552
558
  - fused native four-rail weighted signed INT32 accumulation
553
559
  - canonical centered signed encoding and no-wrap certificates
554
560
 
555
- The seven-rail body in 0.9 is a CPU correctness oracle, not a native CUDA or production-speed wide RNS kernel.
561
+ Version 0.10 changes packaging and interpreter compatibility only; it does not change the RNS arithmetic body. The seven-rail body remains a CPU correctness oracle, not a native CUDA or production-speed wide RNS kernel.
556
562
 
557
563
  ---
558
564
 
@@ -46,7 +46,7 @@ The centered signed interpretation lives in:
46
46
  pip install rns_engine
47
47
  ```
48
48
 
49
- Supported Python versions: **3.10–3.13**.
49
+ Supported Python versions: **3.10–3.14**.
50
50
 
51
51
  ### AVX2 note
52
52
 
@@ -483,7 +483,7 @@ python -m pytest tests/ -v
483
483
 
484
484
  Requirements:
485
485
 
486
- - Python 3.10–3.13
486
+ - Python 3.10–3.14
487
487
  - C++17 compiler
488
488
  - Access to the build dependencies declared in `pyproject.toml`
489
489
 
@@ -513,8 +513,11 @@ rns.HAS_AVX2
513
513
 
514
514
  ## Current release
515
515
 
516
- ### v0.9.0
516
+ ### v0.10.0
517
517
 
518
+ - prebuilt CPython 3.14 wheels for Linux x86-64, macOS Intel and Apple silicon, and Windows x64
519
+ - direct native build and full test coverage on Python 3.10–3.14
520
+ - Python 3.14-compatible pybind11 and NumPy build dependencies
518
521
  - configurable correctness-first CRT oracle for arbitrary pairwise-coprime rails
519
522
  - two lawful seven-rail profiles closing the 126-bit eight-plane target
520
523
  - exact signed radix-128 decomposition and reconstruction
@@ -529,7 +532,7 @@ rns.HAS_AVX2
529
532
  - fused native four-rail weighted signed INT32 accumulation
530
533
  - canonical centered signed encoding and no-wrap certificates
531
534
 
532
- The seven-rail body in 0.9 is a CPU correctness oracle, not a native CUDA or production-speed wide RNS kernel.
535
+ Version 0.10 changes packaging and interpreter compatibility only; it does not change the RNS arithmetic body. The seven-rail body remains a CPU correctness oracle, not a native CUDA or production-speed wide RNS kernel.
533
536
 
534
537
  ---
535
538
 
@@ -1,13 +1,20 @@
1
1
  [build-system]
2
- requires = ["setuptools>=77", "wheel", "packaging>=24.2", "pybind11>=2.13", "numpy==2.2.6"]
2
+ requires = [
3
+ "setuptools>=77",
4
+ "wheel",
5
+ "packaging>=24.2",
6
+ "pybind11>=3.0.0",
7
+ "numpy==2.2.6; python_version < '3.14'",
8
+ "numpy==2.4.5; python_version >= '3.14'",
9
+ ]
3
10
  build-backend = "setuptools.build_meta"
4
11
 
5
12
  [project]
6
13
  name = "rns_engine"
7
- version = "0.9.0"
14
+ version = "0.10.0"
8
15
  description = "Exact RNS engine with session/cache API."
9
16
  readme = "README.md"
10
- requires-python = ">=3.10"
17
+ requires-python = ">=3.10,<3.15"
11
18
  authors = [
12
19
  { name = "Evan Wesley" }
13
20
  ]
@@ -21,12 +28,18 @@ classifiers = [
21
28
  "Programming Language :: Python :: 3.11",
22
29
  "Programming Language :: Python :: 3.12",
23
30
  "Programming Language :: Python :: 3.13",
31
+ "Programming Language :: Python :: 3.14",
24
32
  "Programming Language :: C++",
25
33
  "Operating System :: OS Independent",
26
34
  ]
27
35
 
28
36
  [project.optional-dependencies]
29
- test = ["pytest", "numpy==2.2.6"]
37
+ test = [
38
+ "pytest",
39
+ "tomli>=1; python_version < '3.11'",
40
+ "numpy==2.2.6; python_version < '3.14'",
41
+ "numpy==2.4.5; python_version >= '3.14'",
42
+ ]
30
43
 
31
44
  [project.scripts]
32
45
  rns-pre-cuda = "rns_engine.pre_cuda:main"
@@ -40,7 +53,7 @@ where = ["src"]
40
53
  include = ["rns_engine", "rns_engine.*"]
41
54
 
42
55
  [tool.cibuildwheel]
43
- build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*"]
56
+ build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
44
57
  skip = ["pp*", "*-musllinux*"]
45
58
  dependency-versions = "latest"
46
59
  test-extras = ["test"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rns_engine
3
- Version: 0.9.0
3
+ Version: 0.10.0
4
4
  Summary: Exact RNS engine with session/cache API.
5
5
  Author: Evan Wesley
6
6
  License-Expression: AGPL-3.0-only
@@ -10,15 +10,18 @@ Classifier: Programming Language :: Python :: 3.10
10
10
  Classifier: Programming Language :: Python :: 3.11
11
11
  Classifier: Programming Language :: Python :: 3.12
12
12
  Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
13
14
  Classifier: Programming Language :: C++
14
15
  Classifier: Operating System :: OS Independent
15
- Requires-Python: >=3.10
16
+ Requires-Python: <3.15,>=3.10
16
17
  Description-Content-Type: text/markdown
17
18
  License-File: LICENSE
18
19
  Requires-Dist: numpy>=1.23
19
20
  Provides-Extra: test
20
21
  Requires-Dist: pytest; extra == "test"
21
- Requires-Dist: numpy==2.2.6; extra == "test"
22
+ Requires-Dist: tomli>=1; python_version < "3.11" and extra == "test"
23
+ Requires-Dist: numpy==2.2.6; python_version < "3.14" and extra == "test"
24
+ Requires-Dist: numpy==2.4.5; python_version >= "3.14" and extra == "test"
22
25
  Dynamic: license-file
23
26
 
24
27
  # rns_engine
@@ -69,7 +72,7 @@ The centered signed interpretation lives in:
69
72
  pip install rns_engine
70
73
  ```
71
74
 
72
- Supported Python versions: **3.10–3.13**.
75
+ Supported Python versions: **3.10–3.14**.
73
76
 
74
77
  ### AVX2 note
75
78
 
@@ -506,7 +509,7 @@ python -m pytest tests/ -v
506
509
 
507
510
  Requirements:
508
511
 
509
- - Python 3.10–3.13
512
+ - Python 3.10–3.14
510
513
  - C++17 compiler
511
514
  - Access to the build dependencies declared in `pyproject.toml`
512
515
 
@@ -536,8 +539,11 @@ rns.HAS_AVX2
536
539
 
537
540
  ## Current release
538
541
 
539
- ### v0.9.0
542
+ ### v0.10.0
540
543
 
544
+ - prebuilt CPython 3.14 wheels for Linux x86-64, macOS Intel and Apple silicon, and Windows x64
545
+ - direct native build and full test coverage on Python 3.10–3.14
546
+ - Python 3.14-compatible pybind11 and NumPy build dependencies
541
547
  - configurable correctness-first CRT oracle for arbitrary pairwise-coprime rails
542
548
  - two lawful seven-rail profiles closing the 126-bit eight-plane target
543
549
  - exact signed radix-128 decomposition and reconstruction
@@ -552,7 +558,7 @@ rns.HAS_AVX2
552
558
  - fused native four-rail weighted signed INT32 accumulation
553
559
  - canonical centered signed encoding and no-wrap certificates
554
560
 
555
- The seven-rail body in 0.9 is a CPU correctness oracle, not a native CUDA or production-speed wide RNS kernel.
561
+ Version 0.10 changes packaging and interpreter compatibility only; it does not change the RNS arithmetic body. The seven-rail body remains a CPU correctness oracle, not a native CUDA or production-speed wide RNS kernel.
556
562
 
557
563
  ---
558
564
 
@@ -0,0 +1,13 @@
1
+ numpy>=1.23
2
+
3
+ [test]
4
+ pytest
5
+
6
+ [test:python_version < "3.11"]
7
+ tomli>=1
8
+
9
+ [test:python_version < "3.14"]
10
+ numpy==2.2.6
11
+
12
+ [test:python_version >= "3.14"]
13
+ numpy==2.4.5
@@ -0,0 +1,40 @@
1
+ from importlib.metadata import version
2
+ from pathlib import Path
3
+
4
+ try:
5
+ import tomllib
6
+ except ModuleNotFoundError: # Python 3.10
7
+ import tomli as tomllib
8
+
9
+ import rns_engine
10
+
11
+
12
+ def _pyproject():
13
+ with (Path(__file__).resolve().parents[1] / "pyproject.toml").open("rb") as handle:
14
+ return tomllib.load(handle)
15
+
16
+
17
+ def test_runtime_version_matches_distribution_metadata():
18
+ assert rns_engine.__version__ == version("rns_engine")
19
+ assert rns_engine.__version__ != "0+unknown"
20
+
21
+
22
+ def test_python_314_is_declared_and_built():
23
+ project = _pyproject()
24
+ metadata = project["project"]
25
+ cibuildwheel = project["tool"]["cibuildwheel"]
26
+
27
+ assert metadata["requires-python"] == ">=3.10,<3.15"
28
+ assert "Programming Language :: Python :: 3.14" in metadata["classifiers"]
29
+ assert "cp314-*" in cibuildwheel["build"]
30
+
31
+
32
+ def test_python_314_uses_compatible_native_build_dependencies():
33
+ project = _pyproject()
34
+ build_requires = project["build-system"]["requires"]
35
+ test_requires = project["project"]["optional-dependencies"]["test"]
36
+
37
+ assert "pybind11>=3.0.0" in build_requires
38
+ assert "numpy==2.4.5; python_version >= '3.14'" in build_requires
39
+ assert "numpy==2.4.5; python_version >= '3.14'" in test_requires
40
+ assert "tomli>=1; python_version < '3.11'" in test_requires
@@ -1,5 +0,0 @@
1
- numpy>=1.23
2
-
3
- [test]
4
- pytest
5
- numpy==2.2.6
@@ -1,8 +0,0 @@
1
- from importlib.metadata import version
2
-
3
- import rns_engine
4
-
5
-
6
- def test_runtime_version_matches_distribution_metadata():
7
- assert rns_engine.__version__ == version("rns_engine")
8
- assert rns_engine.__version__ != "0+unknown"
File without changes
File without changes
File without changes
File without changes