checkpointer 2.6.1__tar.gz → 2.7.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.
@@ -0,0 +1 @@
1
+ 3.11
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: checkpointer
3
- Version: 2.6.1
3
+ Version: 2.7.0
4
4
  Summary: A Python library for memoizing function results with support for multiple storage backends, async runtimes, and automatic cache invalidation
5
5
  Project-URL: Repository, https://github.com/Reddan/checkpointer.git
6
6
  Author: Hampus Hallman
@@ -12,9 +12,10 @@ License: Copyright 2018-2025 Hampus Hallman
12
12
 
13
13
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
14
  License-File: LICENSE
15
+ Classifier: Programming Language :: Python :: 3.11
15
16
  Classifier: Programming Language :: Python :: 3.12
16
17
  Classifier: Programming Language :: Python :: 3.13
17
- Requires-Python: >=3.12
18
+ Requires-Python: >=3.11
18
19
  Description-Content-Type: text/markdown
19
20
 
20
21
  # checkpointer · [![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/Reddan/checkpointer/blob/master/LICENSE) [![pypi](https://img.shields.io/pypi/v/checkpointer)](https://pypi.org/project/checkpointer/) [![pypi](https://img.shields.io/pypi/pyversions/checkpointer)](https://pypi.org/project/checkpointer/)
@@ -26,7 +26,7 @@ class CheckpointerOpts(TypedDict, total=False):
26
26
  hash_by: Callable | None
27
27
  should_expire: Callable[[datetime], bool] | None
28
28
  capture: bool
29
- fn_hash: str | None
29
+ fn_hash: ObjectHash | None
30
30
 
31
31
  class Checkpointer:
32
32
  def __init__(self, **opts: Unpack[CheckpointerOpts]):
@@ -61,14 +61,14 @@ class CheckpointFn(Generic[Fn]):
61
61
  return self
62
62
 
63
63
  def _lazyinit(self):
64
+ params = self.checkpointer
64
65
  wrapped = unwrap_fn(self.fn)
65
66
  fn_file = Path(wrapped.__code__.co_filename).name
66
67
  fn_name = re.sub(r"[^\w.]", "", wrapped.__qualname__)
67
68
  update_wrapper(cast(Callable, self), wrapped)
68
- store_format = self.checkpointer.format
69
- Storage = STORAGE_MAP[store_format] if isinstance(store_format, str) else store_format
69
+ Storage = STORAGE_MAP[params.format] if isinstance(params.format, str) else params.format
70
70
  deep_hashes = [child._set_ident().fn_hash_raw for child in iterate_checkpoint_fns(self)]
71
- self.fn_hash = self.checkpointer.fn_hash or str(ObjectHash().write_text(self.fn_hash_raw, *deep_hashes))
71
+ self.fn_hash = str(params.fn_hash or ObjectHash().write_text(self.fn_hash_raw, *deep_hashes))
72
72
  self.fn_subdir = f"{fn_file}/{fn_name}/{self.fn_hash[:16]}"
73
73
  self.is_async: bool = self.fn.is_async if isinstance(self.fn, CheckpointFn) else inspect.iscoroutinefunction(self.fn)
74
74
  self.storage = Storage(self)
@@ -91,20 +91,21 @@ class CheckpointFn(Generic[Fn]):
91
91
  return self
92
92
 
93
93
  def get_checkpoint_id(self, args: tuple, kw: dict) -> str:
94
- hash_params = [self.checkpointer.hash_by(*args, **kw)] if self.checkpointer.hash_by else (args, kw)
95
- call_hash = ObjectHash(self.fn_hash, *hash_params, digest_size=16)
94
+ hash_by = self.checkpointer.hash_by
95
+ hash_params = hash_by(*args, **kw) if hash_by else (args, kw)
96
+ call_hash = ObjectHash(hash_params, digest_size=16)
96
97
  return f"{self.fn_subdir}/{call_hash}"
97
98
 
98
99
  async def _store_on_demand(self, args: tuple, kw: dict, rerun: bool):
100
+ params = self.checkpointer
99
101
  checkpoint_id = self.get_checkpoint_id(args, kw)
100
- checkpoint_path = self.checkpointer.root_path / checkpoint_id
101
- verbosity = self.checkpointer.verbosity
102
+ checkpoint_path = params.root_path / checkpoint_id
102
103
  refresh = rerun \
103
104
  or not self.storage.exists(checkpoint_path) \
104
- or (self.checkpointer.should_expire and self.checkpointer.should_expire(self.storage.checkpoint_date(checkpoint_path)))
105
+ or (params.should_expire and params.should_expire(self.storage.checkpoint_date(checkpoint_path)))
105
106
 
106
107
  if refresh:
107
- print_checkpoint(verbosity >= 1, "MEMORIZING", checkpoint_id, "blue")
108
+ print_checkpoint(params.verbosity >= 1, "MEMORIZING", checkpoint_id, "blue")
108
109
  data = self.fn(*args, **kw)
109
110
  if inspect.iscoroutine(data):
110
111
  data = await data
@@ -113,11 +114,11 @@ class CheckpointFn(Generic[Fn]):
113
114
 
114
115
  try:
115
116
  data = self.storage.load(checkpoint_path)
116
- print_checkpoint(verbosity >= 2, "REMEMBERED", checkpoint_id, "green")
117
+ print_checkpoint(params.verbosity >= 2, "REMEMBERED", checkpoint_id, "green")
117
118
  return data
118
119
  except (EOFError, FileNotFoundError):
119
120
  pass
120
- print_checkpoint(verbosity >= 1, "CORRUPTED", checkpoint_id, "yellow")
121
+ print_checkpoint(params.verbosity >= 1, "CORRUPTED", checkpoint_id, "yellow")
121
122
  return await self._store_on_demand(args, kw, True)
122
123
 
123
124
  def _call(self, args: tuple, kw: dict, rerun=False):
@@ -2,23 +2,32 @@ import ctypes
2
2
  import hashlib
3
3
  import io
4
4
  import re
5
+ import sys
5
6
  from collections.abc import Iterable
6
7
  from contextlib import nullcontext, suppress
7
8
  from decimal import Decimal
8
9
  from itertools import chain
9
10
  from pickle import HIGHEST_PROTOCOL as PROTOCOL
10
11
  from types import BuiltinFunctionType, FunctionType, GeneratorType, MethodType, ModuleType, UnionType
11
- from typing import Any, TypeAliasType, TypeVar
12
+ from typing import Any, TypeVar
12
13
  from .utils import ContextVar, get_fn_body
13
14
 
14
15
  np, torch = None, None
15
16
 
16
17
  with suppress(Exception):
17
18
  import numpy as np
18
-
19
19
  with suppress(Exception):
20
20
  import torch
21
21
 
22
+ class _Never:
23
+ def __getattribute__(self, _: str):
24
+ pass
25
+
26
+ if sys.version_info >= (3, 12):
27
+ from typing import TypeAliasType
28
+ else:
29
+ TypeAliasType = _Never
30
+
22
31
  def encode_type(t: type | FunctionType) -> str:
23
32
  return f"{t.__module__}:{t.__qualname__}"
24
33
 
@@ -49,4 +49,4 @@ colored = colored_ if allow_color() else noop
49
49
 
50
50
  def print_checkpoint(should_log: bool, title: str, text: str, color: Color):
51
51
  if should_log:
52
- print(f"{colored(f" {title} ", "grey", color)} {colored(text, color)}")
52
+ print(f'{colored(f" {title} ", "grey", color)} {colored(text, color)}')
@@ -3,9 +3,12 @@ import tokenize
3
3
  from contextlib import contextmanager
4
4
  from io import StringIO
5
5
  from types import coroutine
6
- from typing import Any, Callable, Coroutine, Generator, Iterable, cast
6
+ from typing import Any, Callable, Coroutine, Generator, Generic, Iterable, TypeVar, cast
7
7
 
8
- def distinct[T](seq: Iterable[T]) -> list[T]:
8
+ T = TypeVar("T")
9
+ T_Callable = TypeVar("T_Callable", bound=Callable)
10
+
11
+ def distinct(seq: Iterable[T]) -> list[T]:
9
12
  return list(dict.fromkeys(seq))
10
13
 
11
14
  def transpose(tuples, default_num_returns=0):
@@ -30,22 +33,22 @@ def get_cell_contents(fn: Callable) -> Iterable[tuple[str, Any]]:
30
33
  except ValueError:
31
34
  pass
32
35
 
33
- def unwrap_fn[T: Callable](fn: T, checkpoint_fn=False) -> T:
36
+ def unwrap_fn(fn: T_Callable, checkpoint_fn=False) -> T_Callable:
34
37
  from .checkpoint import CheckpointFn
35
38
  while True:
36
39
  if (checkpoint_fn and isinstance(fn, CheckpointFn)) or not hasattr(fn, "__wrapped__"):
37
- return cast(T, fn)
40
+ return cast(T_Callable, fn)
38
41
  fn = getattr(fn, "__wrapped__")
39
42
 
40
- async def resolved_awaitable[T](value: T) -> T:
43
+ async def resolved_awaitable(value: T) -> T:
41
44
  return value
42
45
 
43
46
  @coroutine
44
- def coroutine_as_generator[T](coroutine: Coroutine[None, None, T]) -> Generator[None, None, T]:
47
+ def coroutine_as_generator(coroutine: Coroutine[None, None, T]) -> Generator[None, None, T]:
45
48
  val = yield from coroutine
46
49
  return val
47
50
 
48
- def sync_resolve_coroutine[T](coroutine: Coroutine[None, None, T]) -> T:
51
+ def sync_resolve_coroutine(coroutine: Coroutine[None, None, T]) -> T:
49
52
  gen = cast(Generator, coroutine_as_generator(coroutine))
50
53
  try:
51
54
  while True:
@@ -81,7 +84,7 @@ class AttrDict(dict):
81
84
  d = getattr(d, attr, None)
82
85
  return d
83
86
 
84
- class ContextVar[T]:
87
+ class ContextVar(Generic[T]):
85
88
  def __init__(self, value: T):
86
89
  self.value = value
87
90
 
@@ -93,7 +96,7 @@ class ContextVar[T]:
93
96
  finally:
94
97
  self.value = old
95
98
 
96
- class iterate_and_upcoming[T]:
99
+ class iterate_and_upcoming(Generic[T]):
97
100
  def __init__(self, it: Iterable[T]) -> None:
98
101
  self.it = iter(it)
99
102
  self.previous: tuple[()] | tuple[T] = ()
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "checkpointer"
3
- version = "2.6.1"
4
- requires-python = ">=3.12"
3
+ version = "2.7.0"
4
+ requires-python = ">=3.11"
5
5
  dependencies = []
6
6
  authors = [
7
7
  {name = "Hampus Hallman"}
@@ -10,6 +10,7 @@ description = "A Python library for memoizing function results with support for
10
10
  readme = "README.md"
11
11
  license = {file = "LICENSE"}
12
12
  classifiers = [
13
+ "Programming Language :: Python :: 3.11",
13
14
  "Programming Language :: Python :: 3.12",
14
15
  "Programming Language :: Python :: 3.13",
15
16
  ]
@@ -24,7 +25,7 @@ dev = [
24
25
  "poethepoet>=0.30.0",
25
26
  "pytest>=8.3.3",
26
27
  "pytest-asyncio>=0.24.0",
27
- "relib>=1.2.1",
28
+ "relib>=1.0.8",
28
29
  "torch>=2.5.1",
29
30
  ]
30
31
 
@@ -1,10 +1,14 @@
1
1
  version = 1
2
2
  revision = 1
3
- requires-python = ">=3.12"
3
+ requires-python = ">=3.11"
4
+ resolution-markers = [
5
+ "python_full_version >= '3.12'",
6
+ "python_full_version < '3.12'",
7
+ ]
4
8
 
5
9
  [[package]]
6
10
  name = "checkpointer"
7
- version = "2.6.1"
11
+ version = "2.7.0"
8
12
  source = { editable = "." }
9
13
 
10
14
  [package.dev-dependencies]
@@ -14,7 +18,8 @@ dev = [
14
18
  { name = "poethepoet" },
15
19
  { name = "pytest" },
16
20
  { name = "pytest-asyncio" },
17
- { name = "relib" },
21
+ { name = "relib", version = "1.0.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.12'" },
22
+ { name = "relib", version = "1.2.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.12'" },
18
23
  { name = "torch" },
19
24
  ]
20
25
 
@@ -27,7 +32,7 @@ dev = [
27
32
  { name = "poethepoet", specifier = ">=0.30.0" },
28
33
  { name = "pytest", specifier = ">=8.3.3" },
29
34
  { name = "pytest-asyncio", specifier = ">=0.24.0" },
30
- { name = "relib", specifier = ">=1.2.1" },
35
+ { name = "relib", specifier = ">=1.0.8" },
31
36
  { name = "torch", specifier = ">=2.5.1" },
32
37
  ]
33
38
 
@@ -85,6 +90,16 @@ version = "3.0.2"
85
90
  source = { registry = "https://pypi.org/simple" }
86
91
  sdist = { url = "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0", size = 20537 }
87
92
  wheels = [
93
+ { url = "https://files.pythonhosted.org/packages/6b/28/bbf83e3f76936960b850435576dd5e67034e200469571be53f69174a2dfd/MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d", size = 14353 },
94
+ { url = "https://files.pythonhosted.org/packages/6c/30/316d194b093cde57d448a4c3209f22e3046c5bb2fb0820b118292b334be7/MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93", size = 12392 },
95
+ { url = "https://files.pythonhosted.org/packages/f2/96/9cdafba8445d3a53cae530aaf83c38ec64c4d5427d975c974084af5bc5d2/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832", size = 23984 },
96
+ { url = "https://files.pythonhosted.org/packages/f1/a4/aefb044a2cd8d7334c8a47d3fb2c9f328ac48cb349468cc31c20b539305f/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84", size = 23120 },
97
+ { url = "https://files.pythonhosted.org/packages/8d/21/5e4851379f88f3fad1de30361db501300d4f07bcad047d3cb0449fc51f8c/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca", size = 23032 },
98
+ { url = "https://files.pythonhosted.org/packages/00/7b/e92c64e079b2d0d7ddf69899c98842f3f9a60a1ae72657c89ce2655c999d/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798", size = 24057 },
99
+ { url = "https://files.pythonhosted.org/packages/f9/ac/46f960ca323037caa0a10662ef97d0a4728e890334fc156b9f9e52bcc4ca/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e", size = 23359 },
100
+ { url = "https://files.pythonhosted.org/packages/69/84/83439e16197337b8b14b6a5b9c2105fff81d42c2a7c5b58ac7b62ee2c3b1/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4", size = 23306 },
101
+ { url = "https://files.pythonhosted.org/packages/9a/34/a15aa69f01e2181ed8d2b685c0d2f6655d5cca2c4db0ddea775e631918cd/MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d", size = 15094 },
102
+ { url = "https://files.pythonhosted.org/packages/da/b8/3a3bd761922d416f3dc5d00bfbed11f66b1ab89a0c2b6e887240a30b0f6b/MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b", size = 15521 },
88
103
  { url = "https://files.pythonhosted.org/packages/22/09/d1f21434c97fc42f09d290cbb6350d44eb12f09cc62c9476effdb33a18aa/MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf", size = 14274 },
89
104
  { url = "https://files.pythonhosted.org/packages/6b/b0/18f76bba336fa5aecf79d45dcd6c806c280ec44538b3c13671d49099fdd0/MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225", size = 12348 },
90
105
  { url = "https://files.pythonhosted.org/packages/e0/25/dd5c0f6ac1311e9b40f4af06c78efde0f3b5cbf02502f8ef9501294c425b/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028", size = 24149 },
@@ -141,6 +156,16 @@ version = "2.2.1"
141
156
  source = { registry = "https://pypi.org/simple" }
142
157
  sdist = { url = "https://files.pythonhosted.org/packages/f2/a5/fdbf6a7871703df6160b5cf3dd774074b086d278172285c52c2758b76305/numpy-2.2.1.tar.gz", hash = "sha256:45681fd7128c8ad1c379f0ca0776a8b0c6583d2f69889ddac01559dfe4390918", size = 20227662 }
143
158
  wheels = [
159
+ { url = "https://files.pythonhosted.org/packages/59/14/645887347124e101d983e1daf95b48dc3e136bf8525cb4257bf9eab1b768/numpy-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:40f9e544c1c56ba8f1cf7686a8c9b5bb249e665d40d626a23899ba6d5d9e1484", size = 21217379 },
160
+ { url = "https://files.pythonhosted.org/packages/9f/fd/2279000cf29f58ccfd3778cbf4670dfe3f7ce772df5e198c5abe9e88b7d7/numpy-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f9b57eaa3b0cd8db52049ed0330747b0364e899e8a606a624813452b8203d5f7", size = 14388520 },
161
+ { url = "https://files.pythonhosted.org/packages/58/b0/034eb5d5ba12d66ab658ff3455a31f20add0b78df8203c6a7451bd1bee21/numpy-2.2.1-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:bc8a37ad5b22c08e2dbd27df2b3ef7e5c0864235805b1e718a235bcb200cf1cb", size = 5389286 },
162
+ { url = "https://files.pythonhosted.org/packages/5d/69/6f3cccde92e82e7835fdb475c2bf439761cbf8a1daa7c07338e1e132dfec/numpy-2.2.1-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:9036d6365d13b6cbe8f27a0eaf73ddcc070cae584e5ff94bb45e3e9d729feab5", size = 6930345 },
163
+ { url = "https://files.pythonhosted.org/packages/d1/72/1cd38e91ab563e67f584293fcc6aca855c9ae46dba42e6b5ff4600022899/numpy-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:51faf345324db860b515d3f364eaa93d0e0551a88d6218a7d61286554d190d73", size = 14335748 },
164
+ { url = "https://files.pythonhosted.org/packages/f2/d4/f999444e86986f3533e7151c272bd8186c55dda554284def18557e013a2a/numpy-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:38efc1e56b73cc9b182fe55e56e63b044dd26a72128fd2fbd502f75555d92591", size = 16391057 },
165
+ { url = "https://files.pythonhosted.org/packages/99/7b/85cef6a3ae1b19542b7afd97d0b296526b6ef9e3c43ea0c4d9c4404fb2d0/numpy-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:31b89fa67a8042e96715c68e071a1200c4e172f93b0fbe01a14c0ff3ff820fc8", size = 15556943 },
166
+ { url = "https://files.pythonhosted.org/packages/69/7e/b83cc884c3508e91af78760f6b17ab46ad649831b1fa35acb3eb26d9e6d2/numpy-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4c86e2a209199ead7ee0af65e1d9992d1dce7e1f63c4b9a616500f93820658d0", size = 18180785 },
167
+ { url = "https://files.pythonhosted.org/packages/b2/9f/eb4a9a38867de059dcd4b6e18d47c3867fbd3795d4c9557bb49278f94087/numpy-2.2.1-cp311-cp311-win32.whl", hash = "sha256:b34d87e8a3090ea626003f87f9392b3929a7bbf4104a05b6667348b6bd4bf1cd", size = 6568983 },
168
+ { url = "https://files.pythonhosted.org/packages/6d/1e/be3b9f3073da2f8c7fa361fcdc231b548266b0781029fdbaf75eeab997fd/numpy-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:360137f8fb1b753c5cde3ac388597ad680eccbbbb3865ab65efea062c4a1fd16", size = 12917260 },
144
169
  { url = "https://files.pythonhosted.org/packages/62/12/b928871c570d4a87ab13d2cc19f8817f17e340d5481621930e76b80ffb7d/numpy-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:694f9e921a0c8f252980e85bce61ebbd07ed2b7d4fa72d0e4246f2f8aa6642ab", size = 20909861 },
145
170
  { url = "https://files.pythonhosted.org/packages/3d/c3/59df91ae1d8ad7c5e03efd63fd785dec62d96b0fe56d1f9ab600b55009af/numpy-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3683a8d166f2692664262fd4900f207791d005fb088d7fdb973cc8d663626faa", size = 14095776 },
146
171
  { url = "https://files.pythonhosted.org/packages/af/4e/8ed5868efc8e601fb69419644a280e9c482b75691466b73bfaab7d86922c/numpy-2.2.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:780077d95eafc2ccc3ced969db22377b3864e5b9a0ea5eb347cc93b3ea900315", size = 5126239 },
@@ -370,6 +395,15 @@ version = "6.0.2"
370
395
  source = { registry = "https://pypi.org/simple" }
371
396
  sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631 }
372
397
  wheels = [
398
+ { url = "https://files.pythonhosted.org/packages/f8/aa/7af4e81f7acba21a4c6be026da38fd2b872ca46226673c89a758ebdc4fd2/PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774", size = 184612 },
399
+ { url = "https://files.pythonhosted.org/packages/8b/62/b9faa998fd185f65c1371643678e4d58254add437edb764a08c5a98fb986/PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee", size = 172040 },
400
+ { url = "https://files.pythonhosted.org/packages/ad/0c/c804f5f922a9a6563bab712d8dcc70251e8af811fce4524d57c2c0fd49a4/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c", size = 736829 },
401
+ { url = "https://files.pythonhosted.org/packages/51/16/6af8d6a6b210c8e54f1406a6b9481febf9c64a3109c541567e35a49aa2e7/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317", size = 764167 },
402
+ { url = "https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85", size = 762952 },
403
+ { url = "https://files.pythonhosted.org/packages/9b/97/ecc1abf4a823f5ac61941a9c00fe501b02ac3ab0e373c3857f7d4b83e2b6/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4", size = 735301 },
404
+ { url = "https://files.pythonhosted.org/packages/45/73/0f49dacd6e82c9430e46f4a027baa4ca205e8b0a9dce1397f44edc23559d/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e", size = 756638 },
405
+ { url = "https://files.pythonhosted.org/packages/22/5f/956f0f9fc65223a58fbc14459bf34b4cc48dec52e00535c79b8db361aabd/PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5", size = 143850 },
406
+ { url = "https://files.pythonhosted.org/packages/ed/23/8da0bbe2ab9dcdd11f4f4557ccaf95c10b9811b13ecced089d43ce59c3c8/PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44", size = 161980 },
373
407
  { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873 },
374
408
  { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302 },
375
409
  { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154 },
@@ -390,10 +424,28 @@ wheels = [
390
424
  { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446 },
391
425
  ]
392
426
 
427
+ [[package]]
428
+ name = "relib"
429
+ version = "1.0.8"
430
+ source = { registry = "https://pypi.org/simple" }
431
+ resolution-markers = [
432
+ "python_full_version < '3.12'",
433
+ ]
434
+ dependencies = [
435
+ { name = "numpy", marker = "python_full_version < '3.12'" },
436
+ { name = "termcolor", marker = "python_full_version < '3.12'" },
437
+ ]
438
+ wheels = [
439
+ { url = "https://files.pythonhosted.org/packages/cc/2e/0ad818236f0d451b378fed6c985798f27e94140e567c76876f7c0823af4b/relib-1.0.8-py3-none-any.whl", hash = "sha256:4c99fb9da7c1e40cbdc088a0d2f0000ce16caf16674dc1c5a8bff9e68664d315", size = 8907 },
440
+ ]
441
+
393
442
  [[package]]
394
443
  name = "relib"
395
444
  version = "1.2.1"
396
445
  source = { registry = "https://pypi.org/simple" }
446
+ resolution-markers = [
447
+ "python_full_version >= '3.12'",
448
+ ]
397
449
  sdist = { url = "https://files.pythonhosted.org/packages/21/0e/eeac07953e649a92c8c92d646d3c5706624e9254f5f5d35837cf4a7132d9/relib-1.2.1.tar.gz", hash = "sha256:1c12ad491e5adf7e1f961fa26a2c08a5c1c741508ae487d9d4aff125a5433526", size = 6163 }
398
450
  wheels = [
399
451
  { url = "https://files.pythonhosted.org/packages/af/d3/6baacf316516e809c6e14f83a1b3de69d3b06b067066d5ae361fb0399f33/relib-1.2.1-py3-none-any.whl", hash = "sha256:587883d7cdd479b8518619b25b871ea39395658407442a707e71501a5c67a737", size = 7879 },
@@ -462,12 +514,16 @@ dependencies = [
462
514
  { name = "nvidia-nccl-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
463
515
  { name = "nvidia-nvjitlink-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
464
516
  { name = "nvidia-nvtx-cu12", marker = "platform_machine == 'x86_64' and sys_platform == 'linux'" },
465
- { name = "setuptools" },
517
+ { name = "setuptools", marker = "python_full_version >= '3.12'" },
466
518
  { name = "sympy" },
467
519
  { name = "triton", marker = "python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'" },
468
520
  { name = "typing-extensions" },
469
521
  ]
470
522
  wheels = [
523
+ { url = "https://files.pythonhosted.org/packages/d1/35/e8b2daf02ce933e4518e6f5682c72fd0ed66c15910ea1fb4168f442b71c4/torch-2.5.1-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:de5b7d6740c4b636ef4db92be922f0edc425b65ed78c5076c43c42d362a45457", size = 906474467 },
524
+ { url = "https://files.pythonhosted.org/packages/40/04/bd91593a4ca178ece93ca55f27e2783aa524aaccbfda66831d59a054c31e/torch-2.5.1-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:340ce0432cad0d37f5a31be666896e16788f1adf8ad7be481196b503dad675b9", size = 91919450 },
525
+ { url = "https://files.pythonhosted.org/packages/0d/4a/e51420d46cfc90562e85af2fee912237c662ab31140ab179e49bd69401d6/torch-2.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:603c52d2fe06433c18b747d25f5c333f9c1d58615620578c326d66f258686f9a", size = 203098237 },
526
+ { url = "https://files.pythonhosted.org/packages/d0/db/5d9cbfbc7968d79c5c09a0bc0bc3735da079f2fd07cc10498a62b320a480/torch-2.5.1-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:31f8c39660962f9ae4eeec995e3049b5492eb7360dd4f07377658ef4d728fa4c", size = 63884466 },
471
527
  { url = "https://files.pythonhosted.org/packages/8b/5c/36c114d120bfe10f9323ed35061bc5878cc74f3f594003854b0ea298942f/torch-2.5.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:ed231a4b3a5952177fafb661213d690a72caaad97d5824dd4fc17ab9e15cec03", size = 906389343 },
472
528
  { url = "https://files.pythonhosted.org/packages/6d/69/d8ada8b6e0a4257556d5b4ddeb4345ea8eeaaef3c98b60d1cca197c7ad8e/torch-2.5.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:3f4b7f10a247e0dcd7ea97dc2d3bfbfc90302ed36d7f3952b0008d0df264e697", size = 91811673 },
473
529
  { url = "https://files.pythonhosted.org/packages/5f/ba/607d013b55b9fd805db2a5c2662ec7551f1910b4eef39653eeaba182c5b2/torch-2.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:73e58e78f7d220917c5dbfad1a40e09df9929d3b95d25e57d9f8558f84c9a11c", size = 203046841 },
@@ -483,6 +539,7 @@ dependencies = [
483
539
  { name = "filelock" },
484
540
  ]
485
541
  wheels = [
542
+ { url = "https://files.pythonhosted.org/packages/86/17/d9a5cf4fcf46291856d1e90762e36cbabd2a56c7265da0d1d9508c8e3943/triton-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f34f6e7885d1bf0eaaf7ba875a5f0ce6f3c13ba98f9503651c1e6dc6757ed5c", size = 209506424 },
486
543
  { url = "https://files.pythonhosted.org/packages/78/eb/65f5ba83c2a123f6498a3097746607e5b2f16add29e36765305e4ac7fdd8/triton-3.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c8182f42fd8080a7d39d666814fa36c5e30cc00ea7eeeb1a2983dbb4c99a0fdc", size = 209551444 },
487
544
  ]
488
545
 
@@ -501,6 +558,9 @@ version = "6.0.0"
501
558
  source = { registry = "https://pypi.org/simple" }
502
559
  sdist = { url = "https://files.pythonhosted.org/packages/db/7d/7f3d619e951c88ed75c6037b246ddcf2d322812ee8ea189be89511721d54/watchdog-6.0.0.tar.gz", hash = "sha256:9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282", size = 131220 }
503
560
  wheels = [
561
+ { url = "https://files.pythonhosted.org/packages/e0/24/d9be5cd6642a6aa68352ded4b4b10fb0d7889cb7f45814fb92cecd35f101/watchdog-6.0.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6eb11feb5a0d452ee41f824e271ca311a09e250441c262ca2fd7ebcf2461a06c", size = 96393 },
562
+ { url = "https://files.pythonhosted.org/packages/63/7a/6013b0d8dbc56adca7fdd4f0beed381c59f6752341b12fa0886fa7afc78b/watchdog-6.0.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ef810fbf7b781a5a593894e4f439773830bdecb885e6880d957d5b9382a960d2", size = 88392 },
563
+ { url = "https://files.pythonhosted.org/packages/d1/40/b75381494851556de56281e053700e46bff5b37bf4c7267e858640af5a7f/watchdog-6.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:afd0fe1b2270917c5e23c2a65ce50c2a4abb63daafb0d419fde368e272a76b7c", size = 89019 },
504
564
  { url = "https://files.pythonhosted.org/packages/39/ea/3930d07dafc9e286ed356a679aa02d777c06e9bfd1164fa7c19c288a5483/watchdog-6.0.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:bdd4e6f14b8b18c334febb9c4425a878a2ac20efd1e0b231978e7b150f92a948", size = 96471 },
505
565
  { url = "https://files.pythonhosted.org/packages/12/87/48361531f70b1f87928b045df868a9fd4e253d9ae087fa4cf3f7113be363/watchdog-6.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:c7c15dda13c4eb00d6fb6fc508b3c0ed88b9d5d374056b239c4ad1611125c860", size = 88449 },
506
566
  { url = "https://files.pythonhosted.org/packages/5b/7e/8f322f5e600812e6f9a31b75d242631068ca8f4ef0582dd3ae6e72daecc8/watchdog-6.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6f10cb2d5902447c7d0da897e2c6768bca89174d0c6e1e30abec5421af97a5b0", size = 89054 },
@@ -1 +0,0 @@
1
- 3.12.7
File without changes
File without changes
File without changes