commitizen 4.13.9__tar.gz → 4.14.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.
- {commitizen-4.13.9 → commitizen-4.14.0}/PKG-INFO +5 -25
- commitizen-4.14.0/commitizen/__version__.py +1 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/bump.py +5 -1
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/changelog.py +7 -2
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/exceptions.py +3 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/project_info.py +2 -2
- {commitizen-4.13.9 → commitizen-4.14.0}/pyproject.toml +7 -7
- commitizen-4.13.9/commitizen/__version__.py +0 -1
- {commitizen-4.13.9 → commitizen-4.14.0}/LICENSE +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/__main__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/bump.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cli.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cmd.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/check.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/commit.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/example.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/info.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/init.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/schema.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/commands/version.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/config/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/config/base_config.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/config/factory.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/config/json_config.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/base.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/utils.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/defaults.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/factory.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/git.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/hooks.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/out.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/py.typed +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/question.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/tags.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/commitizen/version_schemes.py +0 -0
- {commitizen-4.13.9 → commitizen-4.14.0}/docs/README.md +0 -0
|
@@ -1,31 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: commitizen
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.14.0
|
|
4
4
|
Summary: Python commitizen client tool
|
|
5
5
|
Keywords: commitizen,conventional,commits,git
|
|
6
6
|
Author: Santiago Fraire
|
|
7
7
|
Author-email: Santiago Fraire <santiwilly@gmail.com>
|
|
8
|
-
License: MIT
|
|
9
|
-
|
|
10
|
-
Copyright (c) 2017 Santiago
|
|
11
|
-
|
|
12
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
-
in the Software without restriction, including without limitation the rights
|
|
15
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
-
furnished to do so, subject to the following conditions:
|
|
18
|
-
|
|
19
|
-
The above copyright notice and this permission notice shall be included in all
|
|
20
|
-
copies or substantial portions of the Software.
|
|
21
|
-
|
|
22
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
-
SOFTWARE.
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
29
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
30
11
|
Classifier: Environment :: Console
|
|
31
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -39,13 +20,12 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
39
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
40
21
|
Classifier: Programming Language :: Python :: 3.14
|
|
41
22
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
42
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
43
23
|
Requires-Dist: questionary>=2.0,<3.0
|
|
44
24
|
Requires-Dist: prompt-toolkit!=3.0.52
|
|
45
25
|
Requires-Dist: decli>=0.6.0,<1.0
|
|
46
26
|
Requires-Dist: colorama>=0.4.1,<1.0
|
|
47
27
|
Requires-Dist: termcolor>=1.1.0,<4.0.0
|
|
48
|
-
Requires-Dist: packaging>=
|
|
28
|
+
Requires-Dist: packaging>=26
|
|
49
29
|
Requires-Dist: tomlkit>=0.8.0,<1.0.0
|
|
50
30
|
Requires-Dist: jinja2>=2.10.3
|
|
51
31
|
Requires-Dist: pyyaml>=3.8
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.14.0"
|
|
@@ -330,7 +330,11 @@ class Bump:
|
|
|
330
330
|
|
|
331
331
|
changelog_cmd = Changelog(
|
|
332
332
|
self.config,
|
|
333
|
-
{
|
|
333
|
+
{
|
|
334
|
+
**changelog_args, # type: ignore[typeddict-item]
|
|
335
|
+
"file_name": self.file_name,
|
|
336
|
+
"allow_no_commit": bool(self.arguments["allow_no_commit"]),
|
|
337
|
+
},
|
|
334
338
|
)
|
|
335
339
|
changelog_cmd()
|
|
336
340
|
changelog_file_name = changelog_cmd.file_name
|
|
@@ -43,6 +43,7 @@ class ChangelogArgs(TypedDict, total=False):
|
|
|
43
43
|
extras: dict[str, Any]
|
|
44
44
|
export_template: str
|
|
45
45
|
during_version_bump: bool | None
|
|
46
|
+
allow_no_commit: bool | None # Internal-only when invoked by bump.
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
class Changelog:
|
|
@@ -124,6 +125,8 @@ class Changelog:
|
|
|
124
125
|
self.export_template_to = arguments.get("export_template")
|
|
125
126
|
|
|
126
127
|
self.during_version_bump: bool = arguments.get("during_version_bump") or False
|
|
128
|
+
# Internal flag used when changelog is invoked from `cz bump --allow-no-commit`.
|
|
129
|
+
self.allow_no_commit: bool = bool(arguments.get("allow_no_commit"))
|
|
127
130
|
|
|
128
131
|
def _find_incremental_rev(self, latest_version: str, tags: Iterable[GitTag]) -> str:
|
|
129
132
|
"""Try to find the 'start_rev'.
|
|
@@ -255,8 +258,10 @@ class Changelog:
|
|
|
255
258
|
changelog_meta.unreleased_end = latest_full_release_info.index + 1
|
|
256
259
|
|
|
257
260
|
commits = git.get_commits(start=start_rev, end=end_rev, args="--topo-order")
|
|
258
|
-
if
|
|
259
|
-
|
|
261
|
+
if (
|
|
262
|
+
not self.allow_no_commit
|
|
263
|
+
and not commits
|
|
264
|
+
and (self.current_version is None or not self.current_version.is_prerelease)
|
|
260
265
|
):
|
|
261
266
|
raise NoCommitsFoundError("No commits found")
|
|
262
267
|
|
|
@@ -49,6 +49,9 @@ class ExitCode(IntEnum):
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
class CommitizenException(Exception):
|
|
52
|
+
exit_code: ExitCode
|
|
53
|
+
message: str
|
|
54
|
+
|
|
52
55
|
def __init__(self, *args: str, **kwargs: Any) -> None:
|
|
53
56
|
self.output_method = kwargs.get("output_method") or out.error
|
|
54
57
|
self.exit_code: ExitCode = self.__class__.exit_code
|
|
@@ -39,9 +39,9 @@ def get_default_config_filename() -> Literal["pyproject.toml", ".cz.toml"]:
|
|
|
39
39
|
return "pyproject.toml" if Path("pyproject.toml").is_file() else ".cz.toml"
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def get_default_version_scheme() -> Literal["pep440", "
|
|
42
|
+
def get_default_version_scheme() -> Literal["pep440", "semver2"]:
|
|
43
43
|
return (
|
|
44
44
|
"pep440"
|
|
45
45
|
if Path("pyproject.toml").is_file() or Path("setup.py").is_file()
|
|
46
|
-
else "
|
|
46
|
+
else "semver2"
|
|
47
47
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.14.0"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
authors = [{ name = "Santiago Fraire", email = "santiwilly@gmail.com" }]
|
|
6
6
|
maintainers = [
|
|
@@ -8,7 +8,8 @@ maintainers = [
|
|
|
8
8
|
{ name = "Axel H.", email = "noirbizarre@gmail.com" },
|
|
9
9
|
{ name = "Tim Hsiung", email = "bear890707@gmail.com" },
|
|
10
10
|
]
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
12
13
|
readme = "docs/README.md"
|
|
13
14
|
requires-python = ">=3.10,<4.0"
|
|
14
15
|
dependencies = [
|
|
@@ -18,7 +19,7 @@ dependencies = [
|
|
|
18
19
|
"decli (>=0.6.0,<1.0)",
|
|
19
20
|
"colorama (>=0.4.1,<1.0)",
|
|
20
21
|
"termcolor (>=1.1.0,<4.0.0)",
|
|
21
|
-
"packaging>=
|
|
22
|
+
"packaging>=26",
|
|
22
23
|
"tomlkit (>=0.8.0,<1.0.0)",
|
|
23
24
|
"jinja2>=2.10.3",
|
|
24
25
|
"pyyaml>=3.08",
|
|
@@ -45,7 +46,6 @@ classifiers = [
|
|
|
45
46
|
"Programming Language :: Python :: 3.13",
|
|
46
47
|
"Programming Language :: Python :: 3.14",
|
|
47
48
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
48
|
-
"License :: OSI Approved :: MIT License",
|
|
49
49
|
]
|
|
50
50
|
|
|
51
51
|
[project.urls]
|
|
@@ -122,7 +122,7 @@ linters = [
|
|
|
122
122
|
]
|
|
123
123
|
|
|
124
124
|
documentation = [
|
|
125
|
-
"mkdocs>=1.4.2",
|
|
125
|
+
"mkdocs>=1.4.2,<2",
|
|
126
126
|
"mkdocs-git-revision-date-localized-plugin>=1.5.0",
|
|
127
127
|
"mkdocs-material>=9.1.6",
|
|
128
128
|
]
|
|
@@ -133,7 +133,7 @@ script = [
|
|
|
133
133
|
]
|
|
134
134
|
|
|
135
135
|
[build-system]
|
|
136
|
-
requires = ["uv_build >= 0.9.17, <0.
|
|
136
|
+
requires = ["uv_build >= 0.9.17, <0.12"]
|
|
137
137
|
build-backend = "uv_build"
|
|
138
138
|
|
|
139
139
|
|
|
@@ -145,7 +145,7 @@ version_files = [
|
|
|
145
145
|
]
|
|
146
146
|
version_provider = "uv"
|
|
147
147
|
version_scheme = "pep440"
|
|
148
|
-
|
|
148
|
+
annotated_tag = true
|
|
149
149
|
|
|
150
150
|
[tool.uv.build-backend]
|
|
151
151
|
module-name = "commitizen"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.13.9"
|
|
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
|
|
File without changes
|
|
File without changes
|
{commitizen-4.13.9 → commitizen-4.14.0}/commitizen/cz/conventional_commits/conventional_commits.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|