oh-my-batch 0.2.3__py3-none-any.whl → 0.2.5__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.
oh_my_batch/cli.py CHANGED
@@ -1,7 +1,6 @@
1
1
  import logging
2
2
  import fire
3
3
 
4
- logging.basicConfig(format='%(asctime)s %(name)s: %(message)s', level=logging.INFO)
5
4
 
6
5
  class JobCli:
7
6
 
@@ -27,5 +26,7 @@ class OhMyBatch:
27
26
  from .misc import Misc
28
27
  return Misc()
29
28
 
29
+
30
30
  def main():
31
+ logging.basicConfig(format='%(asctime)s %(name)s: %(message)s', level=logging.INFO)
31
32
  fire.Fire(OhMyBatch)
oh_my_batch/job.py CHANGED
@@ -189,4 +189,4 @@ def should_submit(job: dict, max_tries: int):
189
189
 
190
190
 
191
191
  def norm_path(path: str):
192
- return os.path.normpath(os.path.abspath(path))
192
+ return os.path.normpath(path)
oh_my_batch/util.py CHANGED
@@ -58,7 +58,9 @@ def ensure_dir(path: str):
58
58
 
59
59
  :param path: Path to directory or file.
60
60
  """
61
- os.makedirs(os.path.dirname(path), exist_ok=True)
61
+ d = os.path.dirname(path)
62
+ if d:
63
+ os.makedirs(os.path.dirname(d), exist_ok=True)
62
64
 
63
65
 
64
66
  def mode_translate(mode: str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oh-my-batch
3
- Version: 0.2.3
3
+ Version: 0.2.5
4
4
  Summary:
5
5
  License: GPL
6
6
  Author: weihong.xu
@@ -13,7 +13,6 @@ Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
- Classifier: Programming Language :: Python :: 3.13
17
16
  Requires-Dist: fire (>=0.7.0,<0.8.0)
18
17
  Description-Content-Type: text/markdown
19
18
 
@@ -3,13 +3,13 @@ oh_my_batch/__main__.py,sha256=sWyFZMwWNvhkanwZSJRGfBBDoIevhC028dTSB67i6yI,61
3
3
  oh_my_batch/assets/__init__.py,sha256=Exub46UbQaz2V2eXpQeiVfnThQpXaNeuyjlGY6gBSZc,130
4
4
  oh_my_batch/assets/functions.sh,sha256=dvPGpOKz4CyUSlE5IAewQc8HUrQJuaZ0j-WZIuxB3Tg,1002
5
5
  oh_my_batch/batch.py,sha256=6qnaXEVyA493heGzzbCrdZXCcnYk8zgl7WP0rmo7KlU,3690
6
- oh_my_batch/cli.py,sha256=jMSM_orAamNoEP7jPsbp0UYPX-UDY1-kHSHO31zELHs,548
6
+ oh_my_batch/cli.py,sha256=Jyz8q2pUYke3mfJS6F_G9S9hApddgXxQw1BsN6Kfkjc,553
7
7
  oh_my_batch/combo.py,sha256=-qgqT7XSvEeyefMPD3-HuX-aozefjSKhbZbPm1pm_18,9324
8
- oh_my_batch/job.py,sha256=q-1WxZQxQNqDV4xZXz5V9RQQ787rhdX18tQWTNBKBjQ,6268
8
+ oh_my_batch/job.py,sha256=Uk0E-WxnexBu9wuUV3uc1aAwVF_5rWdNdLEOB8Y9B-U,6252
9
9
  oh_my_batch/misc.py,sha256=G_iOovRCrShBJJCc82QLN0CvMqW4adOefEoY1GedEiw,452
10
- oh_my_batch/util.py,sha256=okg_kY8dJouyJ2BYCXRl7bxDUAtNH6GLh2UjXRnkoW0,2385
11
- oh_my_batch-0.2.3.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
- oh_my_batch-0.2.3.dist-info/METADATA,sha256=sRJJinfObbY4AVBpO1i86Ds2ognYtQ7upeJ4Q_q3WG8,5496
13
- oh_my_batch-0.2.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
- oh_my_batch-0.2.3.dist-info/entry_points.txt,sha256=ZY2GutSoNjjSyJ4qO2pTeseKUFgoTYdvmgkuZZkwi68,77
15
- oh_my_batch-0.2.3.dist-info/RECORD,,
10
+ oh_my_batch/util.py,sha256=K-XAndE5dgpxBrohAlUhVpeJGT7Q9vUG9ghHc9L0HaU,2426
11
+ oh_my_batch-0.2.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
+ oh_my_batch-0.2.5.dist-info/METADATA,sha256=KxRayqgrzOIz_ng2VHElCtjowYOPlfvaOKzEBoeID5w,5445
13
+ oh_my_batch-0.2.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
14
+ oh_my_batch-0.2.5.dist-info/entry_points.txt,sha256=ZY2GutSoNjjSyJ4qO2pTeseKUFgoTYdvmgkuZZkwi68,77
15
+ oh_my_batch-0.2.5.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any