omniq 1.0.0__tar.gz → 1.0.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.4
2
2
  Name: omniq
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: OmniQ v1 - Redis+Lua queue Python SDK
5
5
  Requires-Python: >=3.9
6
6
  Requires-Dist: redis>=5.0.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "omniq"
7
- version = "1.0.0"
7
+ version = "1.0.1"
8
8
  description = "OmniQ v1 - Redis+Lua queue Python SDK"
9
9
  requires-python = ">=3.9"
10
10
  dependencies = ["redis>=5.0.0", "ulid-py>=1.1.0"]
@@ -40,7 +40,7 @@ class OmniqClient:
40
40
  )
41
41
 
42
42
  if scripts_dir is None:
43
- scripts_dir = default_scripts_dir(__file__)
43
+ scripts_dir = default_scripts_dir()
44
44
  scripts = load_scripts(r, scripts_dir)
45
45
 
46
46
  self._ops = OmniqOps(r=r, scripts=scripts)
@@ -17,9 +17,9 @@ class OmniqScripts:
17
17
  pause_sha: str
18
18
  resume_sha: str
19
19
 
20
- def default_scripts_dir(current_file: str) -> str:
21
- here = os.path.dirname(os.path.abspath(current_file))
22
- return os.path.abspath(os.path.join(here, "..", "..", "scripts", "scripts"))
20
+ def default_scripts_dir() -> str:
21
+ here = os.path.dirname(__file__)
22
+ return os.path.join(here, "core", "scripts")
23
23
 
24
24
  def load_scripts(r: ScriptLoader, scripts_dir: str) -> OmniqScripts:
25
25
  def load_one(name: str) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniq
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: OmniQ v1 - Redis+Lua queue Python SDK
5
5
  Requires-Python: >=3.9
6
6
  Requires-Dist: redis>=5.0.0
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