ltq 0.3.0__tar.gz → 0.3.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ltq
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Add your description here
5
5
  Author: Tom Clesius
6
6
  Author-email: Tom Clesius <tomclesius@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ltq"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Tom Clesius", email = "tomclesius@gmail.com" }]
@@ -19,7 +19,7 @@ requires = ["uv_build>=0.9.26,<0.10.0"]
19
19
  build-backend = "uv_build"
20
20
 
21
21
  [tool.bumpversion]
22
- current_version = "0.3.0"
22
+ current_version = "0.3.1"
23
23
  commit = true
24
24
  tag = true
25
25
  message = "v{new_version}"
@@ -2,7 +2,6 @@ from __future__ import annotations
2
2
 
3
3
  import asyncio
4
4
  from functools import partial
5
- from pathlib import Path
6
5
  from typing import TYPE_CHECKING, Any, Awaitable, Callable, ParamSpec, TypeVar
7
6
 
8
7
  import redis.asyncio as redis
@@ -38,15 +37,13 @@ class Worker:
38
37
  self.concurrency: int = concurrency
39
38
  self.poll_sleep: float = poll_sleep
40
39
 
41
-
42
40
  def task(
43
41
  self,
44
42
  queue_name: str | None = None,
45
43
  ttl: int | None = None,
46
44
  ) -> Callable[[Callable[P, Awaitable[R]]], Task[P, R]]:
47
45
  def decorator(fn: Callable[P, Awaitable[R]]) -> Task[P, R]:
48
- filename = Path(fn.__code__.co_filename).stem
49
- task_name = f"{filename}:{fn.__qualname__}"
46
+ task_name = f"{fn.__module__}:{fn.__qualname__}"
50
47
  queue = Queue(self.client, queue_name or task_name)
51
48
  task = Task(
52
49
  name=task_name,
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
File without changes
File without changes
File without changes