pysemvar 0.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.
pysemvar-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: pysemvar
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author: Isaac Kerley
|
|
6
|
+
Author-email: Isaac Kerley <isaackerley@gmail.com>
|
|
7
|
+
Requires-Dist: gitpython>=3.2.1
|
|
8
|
+
Requires-Python: >=3.15
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
|
pysemvar-0.1.0/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pysemvar"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.15"
|
|
7
|
+
dependencies = ["gitpython>=3.2.1"]
|
|
8
|
+
|
|
9
|
+
[[project.authors]]
|
|
10
|
+
name = "Isaac Kerley"
|
|
11
|
+
email = "isaackerley@gmail.com"
|
|
12
|
+
|
|
13
|
+
[project.scripts]
|
|
14
|
+
pysemvar = "pysemvar:main"
|
|
15
|
+
|
|
16
|
+
[build-system]
|
|
17
|
+
requires = ["uv_build>=0.13.12,<0.14.0"]
|
|
18
|
+
build-backend = "uv_build"
|
|
19
|
+
|
|
20
|
+
[dependency-groups]
|
|
21
|
+
dev = [
|
|
22
|
+
"pytest>=9.2.0",
|
|
23
|
+
"pytest-cov>=7.1.0",
|
|
24
|
+
"ruff>=0.17.6",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[tool.ruff]
|
|
28
|
+
indent-width = 2
|
|
29
|
+
|
|
30
|
+
[tool.ruff.lint]
|
|
31
|
+
ignore = [
|
|
32
|
+
"F841",
|
|
33
|
+
"F821",
|
|
34
|
+
"I001",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[tool.ruff.lint.per-file-ignores]
|
|
38
|
+
"tests/test_repos/**/*.py*" = ["ALL"]
|
|
39
|
+
|
|
40
|
+
[tool.ruff.format]
|
|
41
|
+
quote-style = "single"
|
|
42
|
+
exclude = ["tests/test_repos/**/*.py*"]
|
|
43
|
+
|
|
44
|
+
[tool.pytest.ini_options]
|
|
45
|
+
testpaths = ["tests"]
|
|
46
|
+
addopts = "--cov --import-mode=importlib --cov-fail-under 80"
|
|
47
|
+
|
|
48
|
+
[tool.coverage.run]
|
|
49
|
+
source = ["src/"]
|
|
50
|
+
branch = true
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pysemvar"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "Isaac Kerley", email = "isaackerley@gmail.com" }
|
|
8
|
+
]
|
|
9
|
+
requires-python = ">=3.15"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"gitpython>=3.2.1",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[project.scripts]
|
|
15
|
+
pysemvar = "pysemvar:main"
|
|
16
|
+
|
|
17
|
+
[build-system]
|
|
18
|
+
requires = ["uv_build>=0.13.12,<0.14.0"]
|
|
19
|
+
build-backend = "uv_build"
|
|
20
|
+
|
|
21
|
+
[dependency-groups]
|
|
22
|
+
dev = [
|
|
23
|
+
"pytest>=9.2.0",
|
|
24
|
+
"pytest-cov>=7.1.0",
|
|
25
|
+
"ruff>=0.17.6",
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
[tool.ruff]
|
|
29
|
+
indent-width = 2
|
|
30
|
+
|
|
31
|
+
[tool.ruff.lint]
|
|
32
|
+
ignore = [
|
|
33
|
+
"F841",
|
|
34
|
+
"F821",
|
|
35
|
+
"I001",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[tool.ruff.lint.per-file-ignores]
|
|
39
|
+
"tests/test_repos/**/*.py*" = ["ALL"]
|
|
40
|
+
# "src/pysemvar/__init__" = []
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
[tool.ruff.format]
|
|
44
|
+
quote-style = "single"
|
|
45
|
+
exclude = ["tests/test_repos/**/*.py*"]
|
|
46
|
+
|
|
47
|
+
[tool.pytest]
|
|
48
|
+
|
|
49
|
+
[tool.pytest.ini_options]
|
|
50
|
+
testpaths = ["tests"]
|
|
51
|
+
addopts = "--cov --import-mode=importlib --cov-fail-under 80"
|
|
52
|
+
|
|
53
|
+
[tool.coverage.run]
|
|
54
|
+
source = ["src/"]
|
|
55
|
+
branch = true
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from git import Repo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def main(source_path):
|
|
5
|
+
repo = Repo(source_path)
|
|
6
|
+
if len(repo.tags) > 0:
|
|
7
|
+
return {'tag': repo.tags[-1]}
|
|
8
|
+
else:
|
|
9
|
+
return {'status': 'No tag found'}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def _find_last_tag(repo):
|
|
13
|
+
if len(repo.tags) > 0:
|
|
14
|
+
return repo.tags[-1]
|
|
15
|
+
else:
|
|
16
|
+
return {'status': 'No tag found'}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _find_next_to_last_tag(repo):
|
|
20
|
+
if len(repo.tags) > 1:
|
|
21
|
+
return repo.tags[-2]
|
|
22
|
+
else:
|
|
23
|
+
return {'status': 'No tag found'}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import sys
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def main(args):
|
|
6
|
+
return {'status': 'Success'}
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def create_parser():
|
|
10
|
+
parser = argparse.ArgumentParser()
|
|
11
|
+
parser.add_argument('--input', '-i', default='.', help='The input path')
|
|
12
|
+
return parser
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def cli(): # pragma: no cover
|
|
16
|
+
parser = create_parser()
|
|
17
|
+
args = parser.parse_args(sys.argv[1:])
|
|
18
|
+
main(args)
|