commitizen 4.13.10__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.10 → commitizen-4.14.0}/PKG-INFO +1 -1
- commitizen-4.14.0/commitizen/__version__.py +1 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/bump.py +5 -1
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/changelog.py +7 -2
- {commitizen-4.13.10 → commitizen-4.14.0}/pyproject.toml +1 -1
- commitizen-4.13.10/commitizen/__version__.py +0 -1
- {commitizen-4.13.10 → commitizen-4.14.0}/LICENSE +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/__main__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/bump.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cli.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cmd.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/check.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/commit.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/example.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/info.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/init.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/schema.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/commands/version.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/config/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/config/base_config.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/config/factory.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/config/json_config.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/base.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/cz/utils.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/defaults.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/exceptions.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/factory.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/git.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/hooks.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/out.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/project_info.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/py.typed +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/question.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/tags.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/commitizen/version_schemes.py +0 -0
- {commitizen-4.13.10 → commitizen-4.14.0}/docs/README.md +0 -0
|
@@ -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
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.13.10"
|
|
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.10 → 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
|
|
File without changes
|
|
File without changes
|