commitizen 4.13.4__tar.gz → 4.13.6__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.4 → commitizen-4.13.6}/PKG-INFO +1 -1
- commitizen-4.13.6/commitizen/__version__.py +1 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/changelog.py +24 -7
- {commitizen-4.13.4 → commitizen-4.13.6}/pyproject.toml +2 -10
- commitizen-4.13.4/commitizen/__version__.py +0 -1
- {commitizen-4.13.4 → commitizen-4.13.6}/LICENSE +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/__main__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/bump.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cli.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cmd.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/bump.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/check.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/commit.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/example.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/info.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/init.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/schema.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/commands/version.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/config/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/config/base_config.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/config/factory.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/config/json_config.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/base.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/cz/utils.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/defaults.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/exceptions.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/factory.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/git.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/hooks.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/out.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/project_info.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/py.typed +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/question.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/tags.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/commitizen/version_schemes.py +0 -0
- {commitizen-4.13.4 → commitizen-4.13.6}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.13.6"
|
|
@@ -227,16 +227,32 @@ class Changelog:
|
|
|
227
227
|
latest_full_release_info = self.changelog_format.get_latest_full_release(
|
|
228
228
|
self.file_name
|
|
229
229
|
)
|
|
230
|
-
if
|
|
231
|
-
|
|
230
|
+
# Determine if there are prereleases to merge:
|
|
231
|
+
# - Only prereleases in changelog (no full release found), OR
|
|
232
|
+
# - First version in changelog is before first full release (prereleases exist)
|
|
233
|
+
if latest_full_release_info.index is not None and (
|
|
234
|
+
latest_full_release_info.name is None
|
|
235
|
+
or (
|
|
236
|
+
changelog_meta.latest_version_position is not None
|
|
237
|
+
and changelog_meta.latest_version_position
|
|
238
|
+
< latest_full_release_info.index
|
|
239
|
+
)
|
|
240
|
+
):
|
|
241
|
+
# Use the existing unreleased_start if available (from get_metadata()).
|
|
242
|
+
# Otherwise, use the position of the first version entry (prerelease)
|
|
243
|
+
# to preserve the changelog header.
|
|
244
|
+
if changelog_meta.unreleased_start is None:
|
|
245
|
+
changelog_meta.unreleased_start = (
|
|
246
|
+
changelog_meta.latest_version_position
|
|
247
|
+
)
|
|
232
248
|
changelog_meta.latest_version_position = latest_full_release_info.index
|
|
233
249
|
changelog_meta.unreleased_end = latest_full_release_info.index - 1
|
|
234
250
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
251
|
+
start_rev = latest_full_release_info.name or ""
|
|
252
|
+
if not start_rev:
|
|
253
|
+
# Only pre-releases in changelog
|
|
254
|
+
changelog_meta.latest_version_position = None
|
|
255
|
+
changelog_meta.unreleased_end = latest_full_release_info.index + 1
|
|
240
256
|
|
|
241
257
|
commits = git.get_commits(start=start_rev, end=end_rev, args="--topo-order")
|
|
242
258
|
if not commits and (
|
|
@@ -266,6 +282,7 @@ class Changelog:
|
|
|
266
282
|
self.cz.template_loader,
|
|
267
283
|
self.template,
|
|
268
284
|
**{
|
|
285
|
+
"incremental": self.incremental, # extra variable for the template
|
|
269
286
|
**self.cz.template_extras,
|
|
270
287
|
**self.config.settings["extras"],
|
|
271
288
|
**self.extras,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.13.
|
|
3
|
+
version = "4.13.6"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
authors = [{ name = "Santiago Fraire", email = "santiwilly@gmail.com" }]
|
|
6
6
|
maintainers = [
|
|
@@ -235,15 +235,7 @@ select = [
|
|
|
235
235
|
"TC005",
|
|
236
236
|
"TC006",
|
|
237
237
|
]
|
|
238
|
-
ignore = [
|
|
239
|
-
"E501",
|
|
240
|
-
"D1",
|
|
241
|
-
"D415",
|
|
242
|
-
"PT006", # TODO(bearomorphism): enable this rule
|
|
243
|
-
"PT007", # TODO(bearomorphism): enable this rule
|
|
244
|
-
"PT011", # TODO(bearomorphism): enable this rule
|
|
245
|
-
"PT022", # TODO(bearomorphism): enable this rule
|
|
246
|
-
]
|
|
238
|
+
ignore = ["E501", "D1", "D415"]
|
|
247
239
|
extend-safe-fixes = [
|
|
248
240
|
"TC", # Move imports inside/outside TYPE_CHECKING blocks
|
|
249
241
|
"UP", # Update syntaxes for current Python version recommendations
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.13.4"
|
|
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
|
{commitizen-4.13.4 → commitizen-4.13.6}/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
|