AutoGitSemVer 0.8.1__tar.gz → 0.8.2__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.
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/PKG-INFO +1 -1
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/__init__.py +1 -1
- autogitsemver-0.8.1/src/BuildBinary.py +0 -93
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.copier-answers.yml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/CODEOWNERS +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/actions/release_impl/action.yml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/pull_request_template.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/release_sources.yaml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/workflows/CICD.yml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/workflows/CICD_impl.yml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.github/workflows/codeql.yml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.gitignore +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.pre-commit-config.yaml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/.python-version +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/CODE_OF_CONDUCT.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/CONTRIBUTING.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/DEVELOPMENT.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/GOVERNANCE.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/LICENSE +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/MAINTAINERS.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/README.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/SECURITY.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/minisign_key.pub +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/pyproject.toml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/AutoGitSemVerSchema.json +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/EntryPoint.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/Lib.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/py.typed +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/scripts/UpdatePythonVersion.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/scripts/__init__.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer.yaml +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/ConfigurationSchema/AutoGitSemVerSchema.SimpleSchema +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/ConfigurationSchema/README.md +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/tests/EntryPoint_UnitTest.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/tests/Lib_UnitTest.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/tests/scripts/UpdatePythonVersion_UnitTest.py +0 -0
- {autogitsemver-0.8.1 → autogitsemver-0.8.2}/uv.lock +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Note that this value will be overwritten by calls to `python ../../Build.py update_version` based
|
|
4
4
|
# on changes observed in the git repository. The default value below will be used until the value
|
|
5
5
|
# here is explicitly updated by the Continuous Integration system.
|
|
6
|
-
__version__ = "0.8.
|
|
6
|
+
__version__ = "0.8.2"
|
|
7
7
|
|
|
8
8
|
from .Lib import GenerateStyle, GetSemanticVersion, GetSemanticVersionResult
|
|
9
9
|
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"""Builds the binary for this project."""
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import importlib
|
|
5
|
-
import re
|
|
6
|
-
|
|
7
|
-
from functools import cache
|
|
8
|
-
from pathlib import Path
|
|
9
|
-
|
|
10
|
-
from cx_Freeze import setup, Executable
|
|
11
|
-
from dbrownell_Common import PathEx
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# ----------------------------------------------------------------------
|
|
15
|
-
@cache
|
|
16
|
-
def _GetName() -> str:
|
|
17
|
-
return "AutoGitSemVer"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# ----------------------------------------------------------------------
|
|
21
|
-
@cache
|
|
22
|
-
def _GetVersionAndDocstring() -> tuple[str, str]:
|
|
23
|
-
mod = importlib.import_module(_GetName())
|
|
24
|
-
return mod.__version__, mod.__doc__ or ""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
# ----------------------------------------------------------------------
|
|
28
|
-
@cache
|
|
29
|
-
def _GetEntryPoint() -> Path:
|
|
30
|
-
return PathEx.EnsureFile(Path(__file__).parent / _GetName() / "EntryPoint.py")
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# ----------------------------------------------------------------------
|
|
34
|
-
@cache
|
|
35
|
-
def _GetCopyright() -> str:
|
|
36
|
-
match = re.search(
|
|
37
|
-
r"""(?#
|
|
38
|
-
Copyright )Copyright(?#
|
|
39
|
-
Mark [Optional] )(?P<mark>\s+\([cC]\))?(?#
|
|
40
|
-
Year )\s+(?P<year>\d{4})(?#
|
|
41
|
-
Year Range [Optional] )(?:\s*-\s*\d{2,4})?(?#
|
|
42
|
-
Suffix )(?P<suffix>.+)(?#
|
|
43
|
-
End of line )$(?#
|
|
44
|
-
)""",
|
|
45
|
-
PathEx.EnsureFile(Path(__file__).parent.parent / "LICENSE.txt").read_text(),
|
|
46
|
-
flags=re.MULTILINE,
|
|
47
|
-
)
|
|
48
|
-
|
|
49
|
-
current_year = datetime.datetime.now().year
|
|
50
|
-
|
|
51
|
-
if not match:
|
|
52
|
-
return f"Copyright {current_year} David Brownell"
|
|
53
|
-
|
|
54
|
-
initial_year = int(match.group("year"))
|
|
55
|
-
|
|
56
|
-
if current_year == initial_year:
|
|
57
|
-
year_suffix = ""
|
|
58
|
-
elif current_year // 100 != initial_year // 100:
|
|
59
|
-
year_suffix = f"-{current_year}"
|
|
60
|
-
else:
|
|
61
|
-
year_suffix = f"-{current_year % 100}"
|
|
62
|
-
|
|
63
|
-
return f"Copyright{match.group('mark')} {initial_year}{year_suffix} David Brownell"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
# ----------------------------------------------------------------------
|
|
67
|
-
setup(
|
|
68
|
-
name=_GetName(),
|
|
69
|
-
version=_GetVersionAndDocstring()[0],
|
|
70
|
-
description=_GetVersionAndDocstring()[1],
|
|
71
|
-
executables=[
|
|
72
|
-
Executable(
|
|
73
|
-
_GetEntryPoint(),
|
|
74
|
-
base="console",
|
|
75
|
-
copyright=_GetCopyright(),
|
|
76
|
-
# icon=<icon_filename>,
|
|
77
|
-
target_name=_GetName(),
|
|
78
|
-
# trademarks=<trademarks>,
|
|
79
|
-
),
|
|
80
|
-
],
|
|
81
|
-
options={
|
|
82
|
-
"build_exe": {
|
|
83
|
-
"excludes": [
|
|
84
|
-
"tcl",
|
|
85
|
-
"tkinter",
|
|
86
|
-
],
|
|
87
|
-
"no_compress": False,
|
|
88
|
-
"optimize": 0,
|
|
89
|
-
# "packages": [],
|
|
90
|
-
# "include_files": [],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
)
|
|
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
|
|
File without changes
|
{autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/AutoGitSemVer/scripts/UpdatePythonVersion.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{autogitsemver-0.8.1 → autogitsemver-0.8.2}/src/ConfigurationSchema/AutoGitSemVerSchema.SimpleSchema
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|