oh-my-batch 0.2.3__tar.gz → 0.2.4__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.1
2
2
  Name: oh-my-batch
3
- Version: 0.2.3
3
+ Version: 0.2.4
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
 
@@ -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)
@@ -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
  [tool.poetry]
2
2
  name = "oh-my-batch"
3
- version = "0.2.3"
3
+ version = "0.2.4"
4
4
  description = ""
5
5
  authors = ["weihong.xu <xuweihong.cn@gmail.com>"]
6
6
  license = "GPL"
@@ -17,4 +17,4 @@ build-backend = "poetry.core.masonry.api"
17
17
 
18
18
  [tool.poetry.scripts]
19
19
  oh-my-batch = "oh_my_batch.cli:main"
20
- omb = "oh_my_batch.cli:main"
20
+ omb = "oh_my_batch.cli:main"
File without changes
File without changes