git-batch 2.0.18__tar.gz → 2.1.0__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: git-batch
3
- Version: 2.0.18
3
+ Version: 2.1.0
4
4
  Summary: Clone single branch from all repositories listed in a file.
5
5
  Home-page: https://github.com/thegeeklab/git-batch/
6
6
  License: MIT
@@ -22,9 +22,10 @@ Classifier: Programming Language :: Python :: 3.8
22
22
  Classifier: Programming Language :: Python :: 3.9
23
23
  Classifier: Programming Language :: Python :: 3.10
24
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
25
26
  Classifier: Topic :: Software Development
26
27
  Classifier: Topic :: Utilities
27
- Requires-Dist: GitPython (==3.1.37)
28
+ Requires-Dist: GitPython (==3.1.40)
28
29
  Requires-Dist: colorama (==0.4.6)
29
30
  Requires-Dist: python-json-logger (==2.0.7)
30
31
  Project-URL: Documentation, https://github.com/thegeeklab/git-batch/
@@ -1,3 +1,3 @@
1
1
  """Default package."""
2
2
 
3
- __version__ = "2.0.18"
3
+ __version__ = "2.1.0"
@@ -2,7 +2,6 @@
2
2
  """Global utility methods and classes."""
3
3
 
4
4
  import os
5
- from distutils.util import strtobool
6
5
 
7
6
 
8
7
  def normalize_path(path):
@@ -12,6 +11,30 @@ def normalize_path(path):
12
11
  return None
13
12
 
14
13
 
14
+ def strtobool(value):
15
+ """Convert a string representation of truth to true or false."""
16
+
17
+ _map = {
18
+ "y": True,
19
+ "yes": True,
20
+ "t": True,
21
+ "true": True,
22
+ "on": True,
23
+ "1": True,
24
+ "n": False,
25
+ "no": False,
26
+ "f": False,
27
+ "false": False,
28
+ "off": False,
29
+ "0": False
30
+ }
31
+
32
+ try:
33
+ return _map[str(value).lower()]
34
+ except KeyError as err:
35
+ raise ValueError(f'"{value}" is not a valid bool value') from err
36
+
37
+
15
38
  def to_bool(string):
16
39
  return bool(strtobool(str(string)))
17
40
 
@@ -15,6 +15,7 @@ classifiers = [
15
15
  "Programming Language :: Python :: 3.9",
16
16
  "Programming Language :: Python :: 3.10",
17
17
  "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
18
19
  "Topic :: Utilities",
19
20
  "Topic :: Software Development",
20
21
  ]
@@ -32,10 +33,10 @@ packages = [
32
33
  ]
33
34
  readme = "README.md"
34
35
  repository = "https://github.com/thegeeklab/git-batch/"
35
- version = "2.0.18"
36
+ version = "2.1.0"
36
37
 
37
38
  [tool.poetry.dependencies]
38
- GitPython = "3.1.37"
39
+ GitPython = "3.1.40"
39
40
  colorama = "0.4.6"
40
41
  python = "^3.7.0"
41
42
  python-json-logger = "2.0.7"
@@ -44,7 +45,7 @@ python-json-logger = "2.0.7"
44
45
  git-batch = "gitbatch.cli:main"
45
46
 
46
47
  [tool.poetry.group.dev.dependencies]
47
- ruff = "0.0.291"
48
+ ruff = "0.0.292"
48
49
  pytest = "7.4.2"
49
50
  pytest-mock = "3.11.1"
50
51
  pytest-cov = "4.1.0"
File without changes
File without changes
File without changes