commitizen 4.19.1__tar.gz → 4.19.3__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.19.1 → commitizen-4.19.3}/PKG-INFO +1 -1
- commitizen-4.19.3/commitizen/__version__.py +1 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/scm_provider.py +7 -1
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/tags.py +5 -2
- {commitizen-4.19.1 → commitizen-4.19.3}/pyproject.toml +2 -2
- {commitizen-4.19.1 → commitizen-4.19.3}/pyproject.toml.orig +2 -2
- commitizen-4.19.1/commitizen/__version__.py +0 -1
- {commitizen-4.19.1 → commitizen-4.19.3}/LICENSE +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/__main__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/bump.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog_formats/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog_formats/asciidoc.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog_formats/base.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog_formats/markdown.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog_formats/restructuredtext.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/changelog_formats/textile.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cli.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cmd.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/bump.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/changelog.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/check.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/commit.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/example.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/info.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/init.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/list_cz.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/schema.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/commands/version.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/config/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/config/base_config.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/config/factory.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/config/json_config.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/config/toml_config.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/config/yaml_config.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/base.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/conventional_commits/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/customize/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/customize/customize.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/customize/customize_info.txt +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/exceptions.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/jira/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/jira/jira.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/jira/jira_info.txt +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/cz/utils.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/defaults.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/exceptions.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/factory.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/git.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/hooks.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/out.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/project_info.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/__init__.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/base_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/cargo_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/commitizen_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/composer_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/npm_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/pep621_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/poetry_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/providers/uv_provider.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/py.typed +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/question.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/templates/CHANGELOG.md.j2 +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/version_increment.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/commitizen/version_schemes.py +0 -0
- {commitizen-4.19.1 → commitizen-4.19.3}/docs/README.md +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.19.3"
|
|
@@ -18,7 +18,13 @@ class ScmProvider(VersionProvider):
|
|
|
18
18
|
rules = TagRules.from_settings(self.config.settings)
|
|
19
19
|
tags = get_tags(reachable_only=True)
|
|
20
20
|
version_tags = rules.get_version_tags(tags)
|
|
21
|
-
|
|
21
|
+
# Floating tags (e.g. `v1.0` next to `v1.0.0`) compare equal. Among equal
|
|
22
|
+
# versions, prefer the most specific (longest) spelling.
|
|
23
|
+
version = max(
|
|
24
|
+
(rules.extract_version(t) for t in version_tags),
|
|
25
|
+
key=lambda v: (v, len(str(v))),
|
|
26
|
+
default=None,
|
|
27
|
+
)
|
|
22
28
|
return str(version) if version is not None else "0.0.0"
|
|
23
29
|
|
|
24
30
|
def set_version(self, version: str) -> None:
|
|
@@ -127,15 +127,18 @@ class TagRules:
|
|
|
127
127
|
if `warn` is `True`, it will print a warning message if the tag is not a version tag.
|
|
128
128
|
"""
|
|
129
129
|
tag = tag.name if isinstance(tag, GitTag) else tag
|
|
130
|
+
if self.is_ignored_tag(tag):
|
|
131
|
+
return False
|
|
132
|
+
|
|
130
133
|
is_legit = any(regex.fullmatch(tag) for regex in self.version_regexes)
|
|
131
|
-
if warn and not is_legit
|
|
134
|
+
if warn and not is_legit:
|
|
132
135
|
out.warn(self._version_tag_error(tag))
|
|
133
136
|
return is_legit
|
|
134
137
|
|
|
135
138
|
def is_ignored_tag(self, tag: str | GitTag) -> bool:
|
|
136
139
|
"""True if a given tag can be ignored"""
|
|
137
140
|
tag = tag.name if isinstance(tag, GitTag) else tag
|
|
138
|
-
return any(regex.
|
|
141
|
+
return any(regex.fullmatch(tag) for regex in self.ignored_regexes)
|
|
139
142
|
|
|
140
143
|
def get_version_tags(
|
|
141
144
|
self, tags: Iterable[GitTag], warn: bool = False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.19.
|
|
3
|
+
version = "4.19.3"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
license-files = ["LICENSE"]
|
|
@@ -140,7 +140,7 @@ documentation = [
|
|
|
140
140
|
script = ["rich>=13.7.1"]
|
|
141
141
|
|
|
142
142
|
[build-system]
|
|
143
|
-
requires = ["uv_build >= 0.9.17, < 0.
|
|
143
|
+
requires = ["uv_build >= 0.9.17, < 0.14"]
|
|
144
144
|
build-backend = "uv_build"
|
|
145
145
|
|
|
146
146
|
[tool.commitizen]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "commitizen"
|
|
3
|
-
version = "4.19.
|
|
3
|
+
version = "4.19.3"
|
|
4
4
|
description = "Python commitizen client tool"
|
|
5
5
|
authors = [{ name = "Santiago Fraire", email = "santiwilly@gmail.com" }]
|
|
6
6
|
maintainers = [
|
|
@@ -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.14"]
|
|
137
137
|
build-backend = "uv_build"
|
|
138
138
|
|
|
139
139
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "4.19.1"
|
|
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.19.1 → commitizen-4.19.3}/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
|