AutoGitSemVer 0.8.2__tar.gz → 0.8.4__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.2 → autogitsemver-0.8.4}/.copier-answers.yml +1 -1
- autogitsemver-0.8.4/.gitignore +16 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/DEVELOPMENT.md +1 -1
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/PKG-INFO +6 -4
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/README.md +5 -3
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/pyproject.toml +19 -4
- autogitsemver-0.8.4/src/AutoGitSemVer/__init__.py +17 -0
- autogitsemver-0.8.4/uv.lock +903 -0
- autogitsemver-0.8.2/.gitignore +0 -21
- autogitsemver-0.8.2/src/AutoGitSemVer/__init__.py +0 -14
- autogitsemver-0.8.2/uv.lock +0 -714
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/CODEOWNERS +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/ISSUE_TEMPLATE/custom.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/actions/release_impl/action.yml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/pull_request_template.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/release_sources.yaml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/workflows/CICD.yml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/workflows/CICD_impl.yml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.github/workflows/codeql.yml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.pre-commit-config.yaml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/.python-version +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/CODE_OF_CONDUCT.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/CONTRIBUTING.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/GOVERNANCE.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/LICENSE +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/MAINTAINERS.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/SECURITY.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/minisign_key.pub +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer/AutoGitSemVerSchema.json +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer/EntryPoint.py +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer/Lib.py +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer/py.typed +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer/scripts/UpdatePythonVersion.py +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer/scripts/__init__.py +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/AutoGitSemVer.yaml +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/ConfigurationSchema/AutoGitSemVerSchema.SimpleSchema +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/src/ConfigurationSchema/README.md +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/tests/EntryPoint_UnitTest.py +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/tests/Lib_UnitTest.py +0 -0
- {autogitsemver-0.8.2 → autogitsemver-0.8.4}/tests/scripts/UpdatePythonVersion_UnitTest.py +0 -0
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
| Automated Testing | `uv run pytest` or<br/>`uv run pytest --no-cov` | Run automated tests using [pytest](https://docs.pytest.org/) and extract code coverage using [coverage](https://coverage.readthedocs.io/) based on settings in `pyproject.toml`. | :white_check_mark: | :white_check_mark: |
|
|
20
20
|
| Semantic Version Generation | `uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/AutoGitSemVer/__init__.py ./src` | Generate a new [Semantic Version](https://semver.org/) based on git commits using [AutoGitSemVer](https://github.com/davidbrownell/AutoGitSemVer). Version information is stored in `./src/AutoGitSemVer/__init__.py`. | | :white_check_mark: |
|
|
21
21
|
| Python Package Creation | `uv build` | Create a python package using [uv](https://github.com/astral-sh/uv) based on settings in `pyproject.toml`. Generated packages will be written to `./dist`. | | :white_check_mark: |
|
|
22
|
-
| Sign Artifacts | `uv run
|
|
22
|
+
| Sign Artifacts | `uv run python -c "import minisign; minisign.SecretKey.from_file(<temp_filename>).sign_file(<filename>, trusted_comment='<package_name> v<package_version>', drop_signature=True)` | Signs artifacts using [py-minisign](https://github.com/x13a/py-minisign). Note that the private key is stored as a [GitHub secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions). | | :white_check_mark: |
|
|
23
23
|
| Python Package Publishing | `uv publish` | Publish a python package to [PyPi](https://pypi.org/) using [uv](https://github.com/astral-sh/uv) based on settings in `pyproject.toml`. | | :white_check_mark: |
|
|
24
24
|
|
|
25
25
|
## Contributing Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AutoGitSemVer
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.4
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Project-URL: Homepage, https://github.com/davidbrownell/AutoGitSemVer
|
|
6
6
|
Project-URL: Documentation, https://github.com/davidbrownell/AutoGitSemVer
|
|
@@ -260,11 +260,13 @@ A simple example of a configuration file can be found [here](https://github.com/
|
|
|
260
260
|
| Via [pip](https://pip.pypa.io/en/stable/) | `pip install AutoGitSemVer` |
|
|
261
261
|
|
|
262
262
|
### Verifying Signed Artifacts
|
|
263
|
-
Artifacts are signed and
|
|
263
|
+
Artifacts are signed and verified using [py-minisign](https://github.com/x13a/py-minisign) and the public key in the file `./minisign_key.pub`.
|
|
264
264
|
|
|
265
265
|
To verify that an artifact is valid, visit [the latest release](https://github.com/davidbrownell/AutoGitSemVer/releases/latest) and download the `.minisign` signature file that corresponds to the artifact, then run the following command, replacing `<filename>` with the name of the artifact to be verified:
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
```shell
|
|
268
|
+
uv run --with py-minisign python -c "import minisign; minisign.PublicKey.from_file('minisign_key.pub').verify_file('<filename>'); print('The file has been verified.')"
|
|
269
|
+
```
|
|
268
270
|
|
|
269
271
|
## Development
|
|
270
272
|
Please visit [Contributing](https://github.com/davidbrownell/AutoGitSemVer/blob/main/CONTRIBUTING.md) and [Development](https://github.com/davidbrownell/AutoGitSemVer/blob/main/DEVELOPMENT.md) for information on contributing to this project.
|
|
@@ -282,4 +284,4 @@ Additional information can be found at these locations.
|
|
|
282
284
|
| Security | [SECURITY.md](https://github.com/davidbrownell/AutoGitSemVer/blob/main/SECURITY.md) | Information about how to privately report security issues associated with this project. |
|
|
283
285
|
|
|
284
286
|
## License
|
|
285
|
-
AutoGitSemVer is licensed under the <a href="https://choosealicense.com/licenses/MIT/" target="_blank">MIT</a> license.
|
|
287
|
+
`AutoGitSemVer` is licensed under the <a href="https://choosealicense.com/licenses/MIT/" target="_blank">MIT</a> license.
|
|
@@ -227,11 +227,13 @@ A simple example of a configuration file can be found [here](https://github.com/
|
|
|
227
227
|
| Via [pip](https://pip.pypa.io/en/stable/) | `pip install AutoGitSemVer` |
|
|
228
228
|
|
|
229
229
|
### Verifying Signed Artifacts
|
|
230
|
-
Artifacts are signed and
|
|
230
|
+
Artifacts are signed and verified using [py-minisign](https://github.com/x13a/py-minisign) and the public key in the file `./minisign_key.pub`.
|
|
231
231
|
|
|
232
232
|
To verify that an artifact is valid, visit [the latest release](https://github.com/davidbrownell/AutoGitSemVer/releases/latest) and download the `.minisign` signature file that corresponds to the artifact, then run the following command, replacing `<filename>` with the name of the artifact to be verified:
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
```shell
|
|
235
|
+
uv run --with py-minisign python -c "import minisign; minisign.PublicKey.from_file('minisign_key.pub').verify_file('<filename>'); print('The file has been verified.')"
|
|
236
|
+
```
|
|
235
237
|
|
|
236
238
|
## Development
|
|
237
239
|
Please visit [Contributing](https://github.com/davidbrownell/AutoGitSemVer/blob/main/CONTRIBUTING.md) and [Development](https://github.com/davidbrownell/AutoGitSemVer/blob/main/DEVELOPMENT.md) for information on contributing to this project.
|
|
@@ -249,4 +251,4 @@ Additional information can be found at these locations.
|
|
|
249
251
|
| Security | [SECURITY.md](https://github.com/davidbrownell/AutoGitSemVer/blob/main/SECURITY.md) | Information about how to privately report security issues associated with this project. |
|
|
250
252
|
|
|
251
253
|
## License
|
|
252
|
-
AutoGitSemVer is licensed under the <a href="https://choosealicense.com/licenses/MIT/" target="_blank">MIT</a> license.
|
|
254
|
+
`AutoGitSemVer` is licensed under the <a href="https://choosealicense.com/licenses/MIT/" target="_blank">MIT</a> license.
|
|
@@ -13,6 +13,7 @@ dependencies = [
|
|
|
13
13
|
"rtyaml>=1.0.0",
|
|
14
14
|
"semantic-version>=2.10.0",
|
|
15
15
|
]
|
|
16
|
+
|
|
16
17
|
dynamic = ["version"]
|
|
17
18
|
classifiers = [
|
|
18
19
|
"Development Status :: 4 - Beta",
|
|
@@ -40,6 +41,10 @@ Homepage = "https://github.com/davidbrownell/AutoGitSemVer"
|
|
|
40
41
|
Documentation = "https://github.com/davidbrownell/AutoGitSemVer"
|
|
41
42
|
Repository = "https://github.com/davidbrownell/AutoGitSemVer"
|
|
42
43
|
|
|
44
|
+
[project.scripts]
|
|
45
|
+
AutoGitSemVer = "AutoGitSemVer:EntryPoint.app"
|
|
46
|
+
autogitsemver = "AutoGitSemVer:EntryPoint.app"
|
|
47
|
+
|
|
43
48
|
[build-system]
|
|
44
49
|
requires = ["hatchling"]
|
|
45
50
|
build-backend = "hatchling.build"
|
|
@@ -48,16 +53,17 @@ build-backend = "hatchling.build"
|
|
|
48
53
|
dev = [
|
|
49
54
|
"dbrownell-commitemojis>=0.1.1",
|
|
50
55
|
"pre-commit>=4.2.0",
|
|
51
|
-
"
|
|
52
|
-
"pytest
|
|
53
|
-
"
|
|
56
|
+
"py-minisign>=0.12.0",
|
|
57
|
+
"pytest>=8.4.1",
|
|
58
|
+
"pytest-cov>=6.2.1",
|
|
59
|
+
"ruff>=0.12.3",
|
|
54
60
|
]
|
|
55
61
|
|
|
56
62
|
[tool.hatch.version]
|
|
57
63
|
path = "src/AutoGitSemVer/__init__.py"
|
|
58
64
|
|
|
59
65
|
[tool.pytest.ini_options]
|
|
60
|
-
addopts = "--verbose -vv --capture=no --cov=AutoGitSemVer --cov-fail-under=90.0"
|
|
66
|
+
addopts = "--verbose -vv --capture=no --cov=AutoGitSemVer --cov-report term --cov-report xml:coverage.xml --cov-fail-under=90.0"
|
|
61
67
|
python_files = [
|
|
62
68
|
"**/*Test.py",
|
|
63
69
|
]
|
|
@@ -73,12 +79,21 @@ ignore = [
|
|
|
73
79
|
"ANN003", # Missing type annotation for `**kwargs`
|
|
74
80
|
"BLE001", # Do not catch blind exception: `Exception`
|
|
75
81
|
"COM812", # Trailing comma missing
|
|
82
|
+
"D105", # Missing docstring in magic method
|
|
83
|
+
"D107", # Missing docstring in `__init__` method
|
|
76
84
|
"D202", # No blank lines allowed after function docstring
|
|
77
85
|
"E501", # Line too long
|
|
86
|
+
"FIX002", # Line contains TODO, consider resolving the issue
|
|
78
87
|
"I001", # Import block is un-sorted or un-formatted
|
|
79
88
|
"N802", # Function name `xxx` should be lowercase
|
|
80
89
|
"N999", # Invalid module name
|
|
90
|
+
"RSE102", # Unnecessary parentheses on raise exception
|
|
81
91
|
"S101", # Use of assert detected
|
|
92
|
+
"TC006", # Add quotes to type expression in `typing.cast()`
|
|
93
|
+
"TD002", # Missing author in TODO
|
|
94
|
+
"TD003", # Missing issue link for this TODO
|
|
95
|
+
"TRY002", # Create your own exception
|
|
96
|
+
"TRY300", # Consider moving this statement to an `else` block
|
|
82
97
|
"UP032", # Use f-string instead of `format` call
|
|
83
98
|
]
|
|
84
99
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# noqa: D104
|
|
2
|
+
|
|
3
|
+
# Wheel names will be generated according to this value. Do not manually modify this value; instead
|
|
4
|
+
# update it according to committed changes by running this command from the root of the repository:
|
|
5
|
+
#
|
|
6
|
+
# uv run python -m AutoGitSemVer.scripts.UpdatePythonVersion ./src/AutoGitSemVer/__init__.py ./src
|
|
7
|
+
#
|
|
8
|
+
__version__ = "0.8.4"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
from .Lib import GenerateStyle, GetSemanticVersion, GetSemanticVersionResult
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
"GenerateStyle",
|
|
15
|
+
"GetSemanticVersion",
|
|
16
|
+
"GetSemanticVersionResult",
|
|
17
|
+
]
|