omniq 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

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.
omniq/client.py CHANGED
@@ -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)
omniq/scripts.py CHANGED
@@ -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
@@ -1,14 +1,14 @@
1
1
  omniq/__init__.py,sha256=PoDH4HY02Q_8tshE6OgRkPSWnGpJDvAovNWlV-NeCw0,98
2
2
  omniq/_ops.py,sha256=oSy3o1-0PRj_B1V8Ga7n7y83NpUYoxF872SDxsLpNZY,7656
3
- omniq/client.py,sha256=qqG3nsfgTjGtap8hKsLJd_9vd0Iui_8aMJdJQhQCdmk,4643
3
+ omniq/client.py,sha256=6gh1G92aUYpVWtsqTMm5m7wrpXbI5Vu6PJdV2hwGU0E,4635
4
4
  omniq/clock.py,sha256=YTpVrkx1hyop4GU9DuGXfu23n5KPsgGb_1DINiiV0FU,69
5
5
  omniq/consumer.py,sha256=z-yFYRIDX6HTD5hf4Xls7EYp5_zRw9Jc_B6RQO8o4Ws,11140
6
6
  omniq/ids.py,sha256=bGkDDZfYaZvFEnUD02TylWA05UpDYztQwndIscxFjm8,63
7
7
  omniq/monitor.py,sha256=N0qbGUJfqwUubHLvgMbemswhcQLamwsc4_5OYgqFyr0,4008
8
- omniq/scripts.py,sha256=E5fhtc5m6qhEwCvIz__nwSWrH0L3xGkJXRO29ajY6kI,1316
8
+ omniq/scripts.py,sha256=LfSf7468im9k0gpICx57RAyhYqcFLYKDKN2dQRDmOxw,1246
9
9
  omniq/transport.py,sha256=4Nj-RoyZG0L0aEbCleNCF1bWQHW7J4yVgPGmebWxGPE,1309
10
10
  omniq/types.py,sha256=KXj-Z-uPV7lO3fmmyK6QYL8pJiPoYYei8UcPf0v1YUU,743
11
- omniq-1.0.0.dist-info/METADATA,sha256=G-imH3HvAVfNKvBhNR9jwq4wFDZEWrZgfoH_8zD4q8M,177
12
- omniq-1.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
- omniq-1.0.0.dist-info/top_level.txt,sha256=SMvOWui1e7OpLJn5BC_QsiZQIqsjhNfURCd7Ru9CuRE,6
14
- omniq-1.0.0.dist-info/RECORD,,
11
+ omniq-1.0.1.dist-info/METADATA,sha256=UsVkgfhvqGzPmPll3UQAwNdNsbcnSw11kqlje5P03hA,177
12
+ omniq-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ omniq-1.0.1.dist-info/top_level.txt,sha256=SMvOWui1e7OpLJn5BC_QsiZQIqsjhNfURCd7Ru9CuRE,6
14
+ omniq-1.0.1.dist-info/RECORD,,
File without changes