gitbolt 0.0.0.dev1__tar.gz → 0.0.0.dev2__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.
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/PKG-INFO +1 -1
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/pyproject.toml +2 -1
- gitbolt-0.0.0.dev2/src/gitbolt/__init__.py +38 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt.egg-info/PKG-INFO +1 -1
- gitbolt-0.0.0.dev1/src/gitbolt/__init__.py +0 -18
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/LICENSE +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/README.md +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/setup.cfg +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/_internal_init.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/add.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/base.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/exceptions.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/__init__.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/_internal_init.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/add.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/base.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/constants.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/exceptions.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/impl/__init__.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/impl/simple.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/ls_tree.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/runner/__init__.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/runner/base.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/runner/simple_impl.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/git_subprocess/utils.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/ls_tree.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/models.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/py.typed +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt/utils.py +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt.egg-info/SOURCES.txt +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt.egg-info/dependency_links.txt +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt.egg-info/requires.txt +0 -0
- {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev2}/src/gitbolt.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitbolt
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev2
|
|
4
4
|
Summary: Fast, flexible and type-safe Git commands in Python.
|
|
5
5
|
Author-email: Suhas Krishna Srivastava <suhas.srivastava@vaastav.tech>
|
|
6
6
|
Maintainer-email: Suhas Krishna Srivastava <suhas.srivastava@vaastav.tech>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "gitbolt"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.0dev2"
|
|
4
4
|
description = "Fast, flexible and type-safe Git commands in Python."
|
|
5
5
|
requires-python = ">=3.12"
|
|
6
6
|
readme = "README.md"
|
|
@@ -44,6 +44,7 @@ pygit2 = ['pygit2']
|
|
|
44
44
|
|
|
45
45
|
[dependency-groups]
|
|
46
46
|
# TODO: report the mypy recent version (1.16.0, 1.16.1 issue) RuntimeError: ('Not implemented', <class 'mypy.types.TypeGuardedType'>)
|
|
47
|
+
# btw, this error doesn't show in the latest developer version. So, this error will go away with 1.17.0 relase
|
|
47
48
|
dev = ["mypy==1.15.0", "ruff"]
|
|
48
49
|
doc = ['sphinx', 'sphinx-argparse']
|
|
49
50
|
test = ['pytest', 'pytest-cov']
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# coding=utf-8
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Git command interfaces with default implementation using subprocess calls.
|
|
6
|
+
"""
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
# region imports
|
|
10
|
+
# region base related imports
|
|
11
|
+
from gitbolt.base import Git as Git
|
|
12
|
+
from gitbolt.base import CanOverrideGitOpts as CanOverrideGitOpts
|
|
13
|
+
from gitbolt.base import HasGitUnderneath as HasGitUnderneath
|
|
14
|
+
from gitbolt.base import GitSubCommand as GitSubCommand
|
|
15
|
+
from gitbolt.base import LsTree as LsTree
|
|
16
|
+
from gitbolt.base import Version as Version
|
|
17
|
+
from gitbolt.base import Add as Add
|
|
18
|
+
# endregion
|
|
19
|
+
# endregion
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def get_git(git_root_dir: Path = Path.cwd()) -> Git:
|
|
23
|
+
"""
|
|
24
|
+
Get operational and programmatic ``Git``.
|
|
25
|
+
|
|
26
|
+
Examples:
|
|
27
|
+
|
|
28
|
+
* Get git version:
|
|
29
|
+
|
|
30
|
+
>>> import subprocess
|
|
31
|
+
>>> import gitbolt
|
|
32
|
+
>>> git = gitbolt.get_git()
|
|
33
|
+
>>> assert git.version == subprocess.run(['git', 'version'], capture_output=True, text=True).stdout.strip()
|
|
34
|
+
|
|
35
|
+
:param git_root_dir: Path to the git repo root directory. Defaults to current working directory.
|
|
36
|
+
"""
|
|
37
|
+
from gitbolt.git_subprocess.impl.simple import SimpleGitCommand
|
|
38
|
+
return SimpleGitCommand(git_root_dir)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitbolt
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev2
|
|
4
4
|
Summary: Fast, flexible and type-safe Git commands in Python.
|
|
5
5
|
Author-email: Suhas Krishna Srivastava <suhas.srivastava@vaastav.tech>
|
|
6
6
|
Maintainer-email: Suhas Krishna Srivastava <suhas.srivastava@vaastav.tech>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python3
|
|
2
|
-
# coding=utf-8
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
Git command interfaces with default implementation using subprocess calls.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
# region imports
|
|
9
|
-
# region base related imports
|
|
10
|
-
from gitbolt.base import Git as Git
|
|
11
|
-
from gitbolt.base import CanOverrideGitOpts as CanOverrideGitOpts
|
|
12
|
-
from gitbolt.base import HasGitUnderneath as HasGitUnderneath
|
|
13
|
-
from gitbolt.base import GitSubCommand as GitSubCommand
|
|
14
|
-
from gitbolt.base import LsTree as LsTree
|
|
15
|
-
from gitbolt.base import Version as Version
|
|
16
|
-
from gitbolt.base import Add as Add
|
|
17
|
-
# endregion
|
|
18
|
-
# endregion
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|