gitbolt 0.0.0.dev4__tar.gz → 0.0.0.dev5__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.dev4 → gitbolt-0.0.0.dev5}/PKG-INFO +2 -1
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/pyproject.toml +13 -3
- gitbolt-0.0.0.dev5/src/gitbolt/pytest_plugin.py +40 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt.egg-info/PKG-INFO +2 -1
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt.egg-info/SOURCES.txt +2 -0
- gitbolt-0.0.0.dev5/src/gitbolt.egg-info/entry_points.txt +2 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt.egg-info/requires.txt +1 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/LICENSE +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/README.md +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/setup.cfg +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/__init__.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/_internal_init.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/add.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/base.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/constants.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/exceptions.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/__init__.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/_internal_init.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/add.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/base.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/constants.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/exceptions.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/impl/__init__.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/impl/simple.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/ls_tree.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/runner/__init__.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/runner/base.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/runner/simple_impl.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/git_subprocess/utils.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/ls_tree.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/models.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/py.typed +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt/utils.py +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/src/gitbolt.egg-info/dependency_links.txt +0 -0
- {gitbolt-0.0.0.dev4 → gitbolt-0.0.0.dev5}/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.dev5
|
|
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>
|
|
@@ -27,6 +27,7 @@ Requires-Python: >=3.12
|
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
License-File: LICENSE
|
|
29
29
|
Requires-Dist: vt-err-hndlr==0.0.0dev1
|
|
30
|
+
Requires-Dist: pytest
|
|
30
31
|
Provides-Extra: pygit2
|
|
31
32
|
Requires-Dist: pygit2; extra == "pygit2"
|
|
32
33
|
Dynamic: license-file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "gitbolt"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.0dev5"
|
|
4
4
|
description = "Fast, flexible and type-safe Git commands in Python."
|
|
5
5
|
requires-python = ">=3.12"
|
|
6
6
|
readme = "README.md"
|
|
@@ -36,7 +36,8 @@ classifiers = [
|
|
|
36
36
|
"Typing :: Typed"
|
|
37
37
|
]
|
|
38
38
|
dependencies = [
|
|
39
|
-
"vt-err-hndlr == 0.0.0dev1"
|
|
39
|
+
"vt-err-hndlr == 0.0.0dev1",
|
|
40
|
+
"pytest"
|
|
40
41
|
]
|
|
41
42
|
|
|
42
43
|
[project.optional-dependencies]
|
|
@@ -47,7 +48,7 @@ pygit2 = ['pygit2']
|
|
|
47
48
|
# btw, this error doesn't show in the latest developer version. So, this error will go away with 1.17.0 relase
|
|
48
49
|
dev = ["mypy==1.15.0", "ruff"]
|
|
49
50
|
doc = ['sphinx', 'sphinx-argparse']
|
|
50
|
-
test = ['pytest
|
|
51
|
+
test = ['pytest-cov']
|
|
51
52
|
multitest = ['tox']
|
|
52
53
|
|
|
53
54
|
|
|
@@ -58,3 +59,12 @@ issues = "https://github.com/Vaastav-Technologies/py-gitbolt/issues"
|
|
|
58
59
|
|
|
59
60
|
[tool.setuptools.packages.find]
|
|
60
61
|
where = ['src']
|
|
62
|
+
|
|
63
|
+
[project.entry-points.pytest11]
|
|
64
|
+
gitbolt_fixtures = "gitbolt.pytest_plugin"
|
|
65
|
+
|
|
66
|
+
[[tool.mypy.overrides]]
|
|
67
|
+
# pytest currently has no py.typed or stubs installed
|
|
68
|
+
# so let mypy try to best make sense of the data-types for pytest package
|
|
69
|
+
module = ["pytest.*"]
|
|
70
|
+
follow_untyped_imports = true
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# coding=utf-8
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Third-party importable pytest plugins for ``gitbolt``.
|
|
6
|
+
"""
|
|
7
|
+
import subprocess
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
|
|
10
|
+
import pytest
|
|
11
|
+
|
|
12
|
+
REMOTE_DIR_NAME = "remote"
|
|
13
|
+
LOCAL_DIR_NAME = "local"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.fixture
|
|
17
|
+
def repo_root(tmpdir):
|
|
18
|
+
"""
|
|
19
|
+
Create a test repo root to perform tests in.
|
|
20
|
+
|
|
21
|
+
:param tmpdir: temporary directory for test.
|
|
22
|
+
:return: temporary directory
|
|
23
|
+
"""
|
|
24
|
+
return tmpdir
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@pytest.fixture
|
|
28
|
+
def repo_remote(repo_root) -> Path:
|
|
29
|
+
subprocess.run(
|
|
30
|
+
["git", "init", "--bare", REMOTE_DIR_NAME], cwd=repo_root, check=True
|
|
31
|
+
)
|
|
32
|
+
return repo_root / REMOTE_DIR_NAME
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
@pytest.fixture
|
|
36
|
+
def repo_local(repo_root, repo_remote) -> Path:
|
|
37
|
+
subprocess.run(
|
|
38
|
+
["git", "clone", REMOTE_DIR_NAME, LOCAL_DIR_NAME], cwd=repo_root, check=True
|
|
39
|
+
)
|
|
40
|
+
return repo_root / LOCAL_DIR_NAME
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gitbolt
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev5
|
|
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>
|
|
@@ -27,6 +27,7 @@ Requires-Python: >=3.12
|
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
License-File: LICENSE
|
|
29
29
|
Requires-Dist: vt-err-hndlr==0.0.0dev1
|
|
30
|
+
Requires-Dist: pytest
|
|
30
31
|
Provides-Extra: pygit2
|
|
31
32
|
Requires-Dist: pygit2; extra == "pygit2"
|
|
32
33
|
Dynamic: license-file
|
|
@@ -10,10 +10,12 @@ src/gitbolt/exceptions.py
|
|
|
10
10
|
src/gitbolt/ls_tree.py
|
|
11
11
|
src/gitbolt/models.py
|
|
12
12
|
src/gitbolt/py.typed
|
|
13
|
+
src/gitbolt/pytest_plugin.py
|
|
13
14
|
src/gitbolt/utils.py
|
|
14
15
|
src/gitbolt.egg-info/PKG-INFO
|
|
15
16
|
src/gitbolt.egg-info/SOURCES.txt
|
|
16
17
|
src/gitbolt.egg-info/dependency_links.txt
|
|
18
|
+
src/gitbolt.egg-info/entry_points.txt
|
|
17
19
|
src/gitbolt.egg-info/requires.txt
|
|
18
20
|
src/gitbolt.egg-info/top_level.txt
|
|
19
21
|
src/gitbolt/git_subprocess/__init__.py
|
|
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
|