commitizen 4.16.0__tar.gz → 4.16.1__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.16.0 → commitizen-4.16.1}/PKG-INFO +1 -1
- commitizen-4.16.1/commitizen/__version__.py +1 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/customize/customize.py +29 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/pyproject.toml +1 -1
- commitizen-4.16.0/commitizen/__version__.py +0 -1
- {commitizen-4.16.0 → commitizen-4.16.1}/LICENSE +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/__main__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/bump.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cli.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cmd.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/bump.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/changelog.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/check.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/commit.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/example.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/info.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/init.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/schema.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/commands/version.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/config/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/config/base_config.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/config/factory.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/config/json_config.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/base.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/cz/utils.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/defaults.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/exceptions.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/factory.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/git.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/hooks.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/out.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/project_info.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/scm_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/py.typed +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/question.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/tags.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/version_increment.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/commitizen/version_schemes.py +0 -0
- {commitizen-4.16.0 → commitizen-4.16.1}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.16.1"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from collections import OrderedDict
|
|
3
4
|
from pathlib import Path
|
|
4
5
|
from typing import TYPE_CHECKING, Any
|
|
5
6
|
|
|
@@ -19,11 +20,29 @@ else:
|
|
|
19
20
|
|
|
20
21
|
from commitizen import defaults
|
|
21
22
|
from commitizen.cz.base import BaseCommitizen
|
|
23
|
+
from commitizen.defaults import MAJOR, MINOR
|
|
22
24
|
from commitizen.exceptions import MissingCzCustomizeConfigError
|
|
23
25
|
|
|
24
26
|
__all__ = ["CustomizeCommitsCz"]
|
|
25
27
|
|
|
26
28
|
|
|
29
|
+
def _derive_major_version_zero(
|
|
30
|
+
bump_map: Mapping[str, str],
|
|
31
|
+
) -> OrderedDict[str, str]:
|
|
32
|
+
"""Derive a ``bump_map_major_version_zero`` from a user-supplied
|
|
33
|
+
``bump_map`` by demoting any ``MAJOR`` rule to ``MINOR``.
|
|
34
|
+
|
|
35
|
+
See #1728: when a ``cz_customize`` user supplies ``bump_map`` but not
|
|
36
|
+
``bump_map_major_version_zero``, the latter previously fell through to
|
|
37
|
+
``defaults.BUMP_MAP_MAJOR_VERSION_ZERO``, silently overriding the
|
|
38
|
+
user's intent during ``major_version_zero = true`` bumps.
|
|
39
|
+
"""
|
|
40
|
+
return OrderedDict(
|
|
41
|
+
(pattern, MINOR if increment == MAJOR else increment)
|
|
42
|
+
for pattern, increment in bump_map.items()
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
27
46
|
class CustomizeCommitsCz(BaseCommitizen):
|
|
28
47
|
bump_pattern = defaults.BUMP_PATTERN
|
|
29
48
|
bump_map = defaults.BUMP_MAP
|
|
@@ -49,6 +68,16 @@ class CustomizeCommitsCz(BaseCommitizen):
|
|
|
49
68
|
if value := self.custom_settings.get(attr_name):
|
|
50
69
|
setattr(self, attr_name, value)
|
|
51
70
|
|
|
71
|
+
# When the user supplies a custom ``bump_map`` but no matching
|
|
72
|
+
# ``bump_map_major_version_zero``, derive the latter so that bumps
|
|
73
|
+
# under ``major_version_zero = true`` use the user's mapping rather
|
|
74
|
+
# than the (totally unrelated) ``defaults.BUMP_MAP_MAJOR_VERSION_ZERO``
|
|
75
|
+
# fallback. See #1728.
|
|
76
|
+
if self.custom_settings.get("bump_map") and not self.custom_settings.get(
|
|
77
|
+
"bump_map_major_version_zero"
|
|
78
|
+
):
|
|
79
|
+
self.bump_map_major_version_zero = _derive_major_version_zero(self.bump_map)
|
|
80
|
+
|
|
52
81
|
def questions(self) -> list[CzQuestion]:
|
|
53
82
|
return self.custom_settings.get("questions", [{}]) # type: ignore[return-value]
|
|
54
83
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.16.0"
|
|
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
|
{commitizen-4.16.0 → commitizen-4.16.1}/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
|