omnimalloc 0.2.0__tar.gz → 0.3.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 (113) hide show
  1. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/CMakeLists.txt +1 -1
  2. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/PKG-INFO +1 -1
  3. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/pyproject.toml +5 -1
  4. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/primitives/id_type.hpp +1 -0
  5. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/common/registry.py +3 -2
  6. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/primitives/allocation.py +1 -0
  7. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/.clang-format +0 -0
  8. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/.clang-tidy +0 -0
  9. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/.gitignore +0 -0
  10. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/.pre-commit-config.yaml +0 -0
  11. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/.python-version +0 -0
  12. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/LICENSE +0 -0
  13. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/README.md +0 -0
  14. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/examples/01_basic.py +0 -0
  15. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/examples/02_plotting.py +0 -0
  16. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/examples/03_allocators.py +0 -0
  17. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/examples/04_sources.py +0 -0
  18. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/examples/05_benchmark.py +0 -0
  19. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/examples/README.md +0 -0
  20. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/allocators/greedy.cpp +0 -0
  21. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/allocators/greedy.hpp +0 -0
  22. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/bindings.cpp +0 -0
  23. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/primitives/allocation.cpp +0 -0
  24. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/primitives/allocation.hpp +0 -0
  25. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/primitives/buffer_kind.hpp +0 -0
  26. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/cpp/primitives/hash_utils.hpp +0 -0
  27. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/__init__.py +0 -0
  28. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/_cpp.pyi +0 -0
  29. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocate.py +0 -0
  30. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/__init__.py +0 -0
  31. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/base.py +0 -0
  32. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/genetic.py +0 -0
  33. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/greedy.py +0 -0
  34. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/greedy_cpp.py +0 -0
  35. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/hillclimb.py +0 -0
  36. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/minimalloc.py +0 -0
  37. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/naive.py +0 -0
  38. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/random.py +0 -0
  39. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/allocators/utils.py +0 -0
  40. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/__init__.py +0 -0
  41. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/benchmark.py +0 -0
  42. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/converters/__init__.py +0 -0
  43. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/converters/model.py +0 -0
  44. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/converters/onnx.py +0 -0
  45. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/__init__.py +0 -0
  46. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/campaign.py +0 -0
  47. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/export.py +0 -0
  48. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/report.py +0 -0
  49. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/result.py +0 -0
  50. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/utils.py +0 -0
  51. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/results/visualize.py +0 -0
  52. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/sources/__init__.py +0 -0
  53. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/sources/base.py +0 -0
  54. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/sources/generator.py +0 -0
  55. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/sources/huggingface.py +0 -0
  56. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/sources/minimalloc.py +0 -0
  57. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/sources/utils.py +0 -0
  58. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/timer.py +0 -0
  59. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/benchmark/utils.py +0 -0
  60. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/common/__init__.py +0 -0
  61. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/common/directories.py +0 -0
  62. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/common/optional.py +0 -0
  63. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/common/units.py +0 -0
  64. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/primitives/__init__.py +0 -0
  65. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/primitives/memory.py +0 -0
  66. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/primitives/pool.py +0 -0
  67. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/primitives/system.py +0 -0
  68. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/primitives/utils.py +0 -0
  69. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/py.typed +0 -0
  70. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/validate.py +0 -0
  71. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/src/python/omnimalloc/visualize.py +0 -0
  72. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/__init__.py +0 -0
  73. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/conftest.py +0 -0
  74. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/integration/__init__.py +0 -0
  75. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/integration/test_allocators_on_sources.py +0 -0
  76. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/integration/test_examples.py +0 -0
  77. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/integration/test_notebooks.py +0 -0
  78. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/__init__.py +0 -0
  79. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/allocators/__init__.py +0 -0
  80. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/allocators/test_greedy.py +0 -0
  81. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/allocators/test_greedy_cpp.py +0 -0
  82. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/allocators/test_naive.py +0 -0
  83. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/__init__.py +0 -0
  84. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/converters/__init__.py +0 -0
  85. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/converters/test_model.py +0 -0
  86. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/converters/test_onnx.py +0 -0
  87. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/results/__init__.py +0 -0
  88. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/results/test_campaign.py +0 -0
  89. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/results/test_export.py +0 -0
  90. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/results/test_report.py +0 -0
  91. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/results/test_result.py +0 -0
  92. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/results/test_visualize.py +0 -0
  93. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/sources/__init__.py +0 -0
  94. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/sources/test_base.py +0 -0
  95. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/sources/test_generator.py +0 -0
  96. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/sources/test_huggingface.py +0 -0
  97. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/sources/test_minimalloc.py +0 -0
  98. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/test_benchmark.py +0 -0
  99. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/benchmark/test_timer.py +0 -0
  100. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/common/__init__.py +0 -0
  101. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/common/test_directories.py +0 -0
  102. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/common/test_registry.py +0 -0
  103. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/__init__.py +0 -0
  104. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/test_allocation.py +0 -0
  105. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/test_bufferkind.py +0 -0
  106. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/test_memory.py +0 -0
  107. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/test_pool.py +0 -0
  108. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/test_system.py +0 -0
  109. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/primitives/test_utils.py +0 -0
  110. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/test_allocate.py +0 -0
  111. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/test_validate.py +0 -0
  112. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/tests/unit/test_visualize.py +0 -0
  113. {omnimalloc-0.2.0 → omnimalloc-0.3.0}/uv.lock +0 -0
@@ -1,7 +1,7 @@
1
1
  cmake_minimum_required(VERSION 3.18...3.30)
2
2
  project(
3
3
  OmniMalloc
4
- VERSION 0.2.0 # Also update pyproject.toml
4
+ VERSION 0.3.0 # Also update pyproject.toml
5
5
  LANGUAGES CXX)
6
6
 
7
7
  set(CMAKE_CXX_STANDARD 20)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: omnimalloc
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Your one-stop shop for static memory allocation.
5
5
  Keywords: memory,allocation,allocator,static-allocation
6
6
  Author-Email: Fabian Peddinghaus <fabianpedd@gmail.com>
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
4
4
 
5
5
  [project]
6
6
  name = "omnimalloc"
7
- version = "0.2.0" # Also update CMakeLists.txt
7
+ version = "0.3.0" # Also update CMakeLists.txt
8
8
  description = "Your one-stop shop for static memory allocation."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  requires-python = ">=3.10"
@@ -73,8 +73,12 @@ skip = "*-musllinux_*"
73
73
  # test-command = "pytest {project}/tests/unit -x --no-header -q"
74
74
 
75
75
  [tool.cibuildwheel.linux]
76
+ archs = ["auto"]
76
77
  before-all = "yum install -y cmake || apk add cmake"
77
78
 
79
+ [tool.cibuildwheel.macos]
80
+ archs = ["arm64"]
81
+
78
82
  [tool.ruff]
79
83
  line-length = 88
80
84
  target-version = "py310"
@@ -12,6 +12,7 @@
12
12
 
13
13
  namespace omnimalloc {
14
14
 
15
+ // Must match IdType in src/python/omnimalloc/primitives/allocation.py
15
16
  using IdType = std::variant<int64_t, std::string>;
16
17
 
17
18
  struct IdTypeHash {
@@ -12,8 +12,9 @@ from typing_extensions import Self
12
12
  class Registered(ABC):
13
13
  """Mixin for auto-registering and managing subclasses.
14
14
 
15
- Any direct subclass of will maintain its own registry. Any subclass of that
16
- subclass that's not abstract will be registered in the subclass's registry.
15
+ Any direct subclass of Registered will maintain its own registry. Any
16
+ subclass of that subclass that's not abstract will be registered in the
17
+ direct subclass's registry.
17
18
  """
18
19
 
19
20
  _registry: ClassVar[dict[str, type[Self]]]
@@ -5,6 +5,7 @@
5
5
  from omnimalloc._cpp import Allocation, BufferKind
6
6
 
7
7
  # Type alias for allocation identifiers (int or str)
8
+ # Must match IdType in src/cpp/primitives/id_type.hpp
8
9
  IdType = int | str
9
10
 
10
11
  __all__ = ["Allocation", "BufferKind", "IdType"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes