gitbolt 0.0.0.dev1__tar.gz → 0.0.0.dev3__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.
Files changed (34) hide show
  1. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/PKG-INFO +1 -1
  2. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/pyproject.toml +2 -1
  3. gitbolt-0.0.0.dev3/src/gitbolt/__init__.py +41 -0
  4. gitbolt-0.0.0.dev3/src/gitbolt/constants.py +10 -0
  5. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt.egg-info/PKG-INFO +1 -1
  6. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt.egg-info/SOURCES.txt +1 -0
  7. gitbolt-0.0.0.dev1/src/gitbolt/__init__.py +0 -18
  8. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/LICENSE +0 -0
  9. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/README.md +0 -0
  10. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/setup.cfg +0 -0
  11. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/_internal_init.py +0 -0
  12. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/add.py +0 -0
  13. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/base.py +0 -0
  14. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/exceptions.py +0 -0
  15. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/__init__.py +0 -0
  16. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/_internal_init.py +0 -0
  17. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/add.py +0 -0
  18. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/base.py +0 -0
  19. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/constants.py +0 -0
  20. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/exceptions.py +0 -0
  21. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/impl/__init__.py +0 -0
  22. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/impl/simple.py +0 -0
  23. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/ls_tree.py +0 -0
  24. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/runner/__init__.py +0 -0
  25. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/runner/base.py +0 -0
  26. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/runner/simple_impl.py +0 -0
  27. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/git_subprocess/utils.py +0 -0
  28. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/ls_tree.py +0 -0
  29. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/models.py +0 -0
  30. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/py.typed +0 -0
  31. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt/utils.py +0 -0
  32. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt.egg-info/dependency_links.txt +0 -0
  33. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/src/gitbolt.egg-info/requires.txt +0 -0
  34. {gitbolt-0.0.0.dev1 → gitbolt-0.0.0.dev3}/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.dev1
3
+ Version: 0.0.0.dev3
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.0dev1"
3
+ version = "0.0.0dev3"
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,41 @@
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
+
20
+
21
+ from gitbolt.constants import GIT_DIR as GIT_DIR
22
+ # endregion
23
+
24
+
25
+ def get_git(git_root_dir: Path = Path.cwd()) -> Git:
26
+ """
27
+ Get operational and programmatic ``Git``.
28
+
29
+ Examples:
30
+
31
+ * Get git version:
32
+
33
+ >>> import subprocess
34
+ >>> import gitbolt
35
+ >>> git = gitbolt.get_git()
36
+ >>> assert git.version == subprocess.run(['git', 'version'], capture_output=True, text=True).stdout.strip()
37
+
38
+ :param git_root_dir: Path to the git repo root directory. Defaults to current working directory.
39
+ """
40
+ from gitbolt.git_subprocess.impl.simple import SimpleGitCommand
41
+ return SimpleGitCommand(git_root_dir)
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env python3
2
+ # coding=utf-8
3
+
4
+ """
5
+ Constants related to gitbolt.
6
+ """
7
+ from pathlib import Path
8
+
9
+ GIT_DIR_STR = '.git'
10
+ GIT_DIR = Path(GIT_DIR_STR)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitbolt
3
- Version: 0.0.0.dev1
3
+ Version: 0.0.0.dev3
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>
@@ -5,6 +5,7 @@ src/gitbolt/__init__.py
5
5
  src/gitbolt/_internal_init.py
6
6
  src/gitbolt/add.py
7
7
  src/gitbolt/base.py
8
+ src/gitbolt/constants.py
8
9
  src/gitbolt/exceptions.py
9
10
  src/gitbolt/ls_tree.py
10
11
  src/gitbolt/models.py
@@ -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