gitbolt 0.0.0.dev4__py3-none-any.whl → 0.0.0.dev5__py3-none-any.whl
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/pytest_plugin.py +40 -0
- {gitbolt-0.0.0.dev4.dist-info → gitbolt-0.0.0.dev5.dist-info}/METADATA +2 -1
- {gitbolt-0.0.0.dev4.dist-info → gitbolt-0.0.0.dev5.dist-info}/RECORD +7 -5
- gitbolt-0.0.0.dev5.dist-info/entry_points.txt +2 -0
- {gitbolt-0.0.0.dev4.dist-info → gitbolt-0.0.0.dev5.dist-info}/WHEEL +0 -0
- {gitbolt-0.0.0.dev4.dist-info → gitbolt-0.0.0.dev5.dist-info}/licenses/LICENSE +0 -0
- {gitbolt-0.0.0.dev4.dist-info → gitbolt-0.0.0.dev5.dist-info}/top_level.txt +0 -0
gitbolt/pytest_plugin.py
ADDED
|
@@ -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
|
|
@@ -7,6 +7,7 @@ gitbolt/exceptions.py,sha256=7YvR7whZYM1hlWZk4GxHbeNgJ0KJXElg5VFA1Vi-fiA,989
|
|
|
7
7
|
gitbolt/ls_tree.py,sha256=PrDSoh4Pnqh6g4AfX8kwgez_zHYaH4yqknULbFbisUY,6269
|
|
8
8
|
gitbolt/models.py,sha256=iwIO-ugHYiKS57I_LPo3uDFEQlAtu2mnn5AjZHHQg04,18828
|
|
9
9
|
gitbolt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
+
gitbolt/pytest_plugin.py,sha256=YPYqZN0Mi2kcZIXGl5bGXe-Y-NvgymnT58FpnFPiYPU,832
|
|
10
11
|
gitbolt/utils.py,sha256=XftX3LIKtfzjQaUZUF3QYaFJFM-QdFjc05ZrZSMSdeM,6315
|
|
11
12
|
gitbolt/git_subprocess/__init__.py,sha256=yEyJKH_iXFBkdgQMwE8vnHnhVTrjs2RkQUjUCF25SzU,590
|
|
12
13
|
gitbolt/git_subprocess/_internal_init.py,sha256=C6jfsbjXhIFHaDH9GE-wLPAN9WMlUU57rRLWvfpZuAs,255
|
|
@@ -21,8 +22,9 @@ gitbolt/git_subprocess/impl/simple.py,sha256=yY7tMI4B093ssooZB4UvffVQaCrFVD1bAIr
|
|
|
21
22
|
gitbolt/git_subprocess/runner/__init__.py,sha256=LPxbj3AwKLXyDxxCLwAVtl5b5SKjaNDj99lkKz6VSOU,177
|
|
22
23
|
gitbolt/git_subprocess/runner/base.py,sha256=Sof2WaNyYULiObRF7WjaGs7-yGrdyeHUXchE2tg1820,1562
|
|
23
24
|
gitbolt/git_subprocess/runner/simple_impl.py,sha256=V-6efvcQLP6gpUKSwRfnNI-Zd9nBxaN0EuAnpn-5LwU,2494
|
|
24
|
-
gitbolt-0.0.0.
|
|
25
|
-
gitbolt-0.0.0.
|
|
26
|
-
gitbolt-0.0.0.
|
|
27
|
-
gitbolt-0.0.0.
|
|
28
|
-
gitbolt-0.0.0.
|
|
25
|
+
gitbolt-0.0.0.dev5.dist-info/licenses/LICENSE,sha256=pOzr5bMWS6mHi3vro8d5vw0qW1i14rVq2XFrDuystVY,11372
|
|
26
|
+
gitbolt-0.0.0.dev5.dist-info/METADATA,sha256=ddzCTnVG2oGLM46wDDrRg-kanPhsJNODJsroolpf5jM,11249
|
|
27
|
+
gitbolt-0.0.0.dev5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
gitbolt-0.0.0.dev5.dist-info/entry_points.txt,sha256=Q078Wjss4skreUs8hzAEJ8sUcH4Rhjc9emZ4jRXCiBM,52
|
|
29
|
+
gitbolt-0.0.0.dev5.dist-info/top_level.txt,sha256=QCXclkzSPZjgamcwB6XuKJexaJ1as_TLUUSGdIDA7VY,8
|
|
30
|
+
gitbolt-0.0.0.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|